-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[curvefs] Clean up resources after failing to create fs #2043
Comments
Hello, I want to participate |
@wpy-321 Are you having some trouble? If so, please let us know so that we can communicate together |
Some rough ideas:
|
cc @wpy-321 Due to no reply for a long time, cancel the assignment first. Welcome to continue to join if you have time! |
you can use MetaserverClient::DeleteInode to delete root inode. root inode is 1, but you should not use 1 directly. You can use |
Thx a lot! I will continue to it, assign me plz :). |
@Ziy1-Tan just do it |
curve文件系统在CreateFs时,会创建一些资源,包括创建一个fsinfo,创建partition,创建root inode等。当后面的步骤失败了,需要清理掉前面步骤创建的资源。当前的代码实现中,有一些资源在执行失败的时候没有删除,希望这些资源能够被清理。
When the curve file system creates Fs, it will create some resources, including creating a fsinfo, creating a partition, creating a root inode, etc. When the later steps fail, the resources created in the previous steps need to be cleaned up. In the current code implementation, some resources are not deleted when the execution fails, and it is hoped that these resources can be cleaned up.
CreateFs的代码在:
the code is here:
https://github.com/opencurve/curve/blob/master/curvefs/src/mds/fs_manager.cpp
The text was updated successfully, but these errors were encountered: