-
Notifications
You must be signed in to change notification settings - Fork 6k
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
mds: support export pinning on directories #14598
Merged
Merged
Changes from 8 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
c3e0aba
mds: order MDBalancer header
batrick a10cd1f
mds: remove unimplemented function
batrick 36f3bc0
mds: organize Migrator headers
batrick 2d2b387
mds: simplify loops to range-for
batrick 9285b02
mds: add comment for subtrees MDCache member
batrick 4bc458c
messages: add missing header to MMDSLoadTargets
batrick 615f342
mds: organize headers
batrick efb11c6
mds: use uint64_t for sum of exported inodes
batrick 5f49379
common/DecayCounter: remove redundant qualifiers
batrick b2f53b8
common/DecayCounter: add delta to value for ::get
batrick 26a08f3
mds: check projected parent to avoid unsafe access
batrick 3cfd46f
mds: dispatch export request
batrick 89e990b
common: assoc. DecayRate with DecayCounter
batrick 082e86c
mds: unify export_targets handling for all exports
batrick 0b420be
mds: add export_pin feature
batrick df340e8
mds: prevent export of pinned inodes
batrick aebc1ca
mds: use projected parent to avoid unsafe access
batrick 91952aa
mds: break ancestor walk if node is export_pinned
batrick 0d6d320
mds: create auxiliary subtree inside auth subtree
ukernel 649b38e
mds: simplify auxiliary subtrees when sending subtree resolve
ukernel 7a76ea5
Revert "mds: prevent export of pinned inodes"
batrick 6bd58fe
mds: use aux subtrees for export pinned inodes
batrick 9ac8e2a
mds: handle imported directory that is pinned
batrick f1508ca
mds: use clearer name for export pin cont
batrick 9755119
mds: cleanup aux subtree pin debug
batrick 63cbe33
qa: remove errant mount requirement
batrick 4cd4782
mds: check export_pin on dirfrag load
batrick 41a44ae
mds: remove unnecessary check for parent pins
batrick 3880c6d
mds: do not try to export pin special directories
batrick 9552efd
qa: improve time handling for test_exports test
batrick 383d521
mds: handle export pin on unjournaled directory
batrick 048abc3
mds: call maybe_export_pin on all fetched dirfrags
batrick 26dd9e8
mds: handle aux subtree when splitting/merging dirfrag
ukernel 0c9c294
mds: check mdsdir against dest
batrick 88e6db1
mds: update export targets even when not active
batrick 6bdd9e7
mds: properly cleanup export states
ukernel 68adc96
mds: fix dir auth calculation in CDir::merge
ukernel b6ba30b
mds: delay export until dir is stable
batrick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank to the dirfrag size and MExportDir message size limitation, it's unlikely to overflow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay to leave it as uint64_t?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes