Skip to content
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: add quota support for s3 client using mds #2836

Merged
merged 6 commits into from
Oct 25, 2023
Merged

curvefs: add quota support for s3 client using mds #2836

merged 6 commits into from
Oct 25, 2023

Conversation

h0hmj
Copy link
Contributor

@h0hmj h0hmj commented Oct 24, 2023

  1. client send delta update to mds
  2. mds update usage both cache and etcd and response latest to client
  3. client do quota check when operate

@h0hmj h0hmj marked this pull request as ready for review October 24, 2023 14:14
@h0hmj h0hmj closed this Oct 25, 2023
@h0hmj h0hmj reopened this Oct 25, 2023
Signed-off-by: h0hmj <h0hmjcn@gmail.com>
@h0hmj h0hmj changed the title curvefs: add quota support for s3 using mds curvefs: add quota support for s3 client using mds Oct 25, 2023
curvefs/src/client/rpcclient/fsquota_checker.cpp Outdated Show resolved Hide resolved
curvefs/src/mds/fs_storage.cpp Outdated Show resolved Hide resolved
FsUsage fsUsage;
auto ret = GetFsUsage(fsInfo.fsname(), &fsUsage, false);
if (ret == FSStatusCode::NOT_FOUND) {
SetFsUsage(fsInfo.fsname(), fsUsage);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any tool that can calculate the usage of existing file systems?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

planned

curvefs/src/mds/fs_manager.cpp Show resolved Hide resolved
curvefs/src/client/fuse_client.cpp Show resolved Hide resolved
curvefs/src/mds/codec/codec.cpp Outdated Show resolved Hide resolved
curvefs/src/mds/fs_storage.cpp Outdated Show resolved Hide resolved
h0hmj added 5 commits October 25, 2023 11:01
Signed-off-by: h0hmj <h0hmjcn@gmail.com>
Signed-off-by: h0hmj <h0hmjcn@gmail.com>
Signed-off-by: h0hmj <h0hmjcn@gmail.com>
@h0hmj
Copy link
Contributor Author

h0hmj commented Oct 25, 2023

cicheck

1 similar comment
@h0hmj
Copy link
Contributor Author

h0hmj commented Oct 25, 2023

cicheck

@h0hmj h0hmj merged commit 7f4a097 into opencurve:master Oct 25, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants