-
Notifications
You must be signed in to change notification settings - Fork 279
cephfs: add support for cephfs snapdiff api #1186
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
Conversation
|
/cc @ansiwen @phlogistonjohn @nixpanic @anoopcs9 |
phlogistonjohn
left a comment
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.
Pretty interesting, thanks!
I have a few thoughts and thoughts about how to make the API a bit more idiomatic.
97cc2d3 to
b5d8835
Compare
Thanks for the quick review ! |
b5d8835 to
a286d4f
Compare
|
Rebased on top of latest branch commits |
b45a8bb to
6dc77ae
Compare
modified it.
added a line in doc comment for this :) PTAL |
6dc77ae to
a03620f
Compare
anoopcs9
left a comment
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.
Please fix the commit message rbd: add support for cephfs snapdiff api and PR title to replace rbd with cephfs.
aa838cb to
1a83013
Compare
Fixed this and renamed functions as suggested(ceph prefix is indeed redundant ) 👍 :) |
0a166e6 to
d0dff26
Compare
d0d30bd to
c087686
Compare
|
rebased on top of master branch |
anoopcs9
left a comment
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.
lgtm, thanks.
c087686 to
0c8a697
Compare
Pull request has been modified.
0c8a697 to
8fe601d
Compare
I fixed this too now 😅 Please provide ✅ again |
|
Hey @phlogistonjohn , Can you please review this pr again ? |
nixpanic
left a comment
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.
just a few nits to improve stability and maintenance a little
cephfs/snap_diff.go
Outdated
| func OpenSnapDiff(config SnapDiffConfig) (*SnapDiffInfo, error) { | ||
| if config.CMount == nil || config.RootPath == "" || config.RelPath == "" || | ||
| config.Snap1 == "" || config.Snap2 == "" { | ||
| return nil, fmt.Errorf("invalid arguments") |
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.
consider returning errInvalid
This commit adds support for cephfs snap diff APIs which gives a list of changed files between two snapshots. Signed-off-by: Rakshith R <rar@redhat.com>
8fe601d to
937a849
Compare
Pull request has been modified.
done, ptal. |
The pr is revised, and rebased. |
phlogistonjohn
left a comment
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.
lgtm, thanks
This commit adds support for cephfs snap diff
APIs which gives a list of changed files between
two snapshots.
Refer:
fixes #1087
Checklist
//go:build ceph_previewmake api-updateto record new APIsNew or infrequent contributors may want to review the go-ceph Developer's Guide including the section on how we track API Status and the API Stability Plan.
The go-ceph project uses mergify. View the mergify command guide for information on how to interact with mergify. Add a comment with
@Mergifyiorebaseto rebase your PR when github indicates that the PR is out of date with the base branch.