Conversation
|
jenkins test make check |
|
@ifed01 I most likely have some unpublished comments in the other pr by @denisb-croit. I'll go through this anyway. |
|
jenkins test make check arm64 |
|
@vshankar - gentle reminder about the PR ;) |
ACK. |
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
|
@ifed01 - sorry for the delay. I have started reviewing and testing these changes starting last Friday - will let you know how things go. BTW, I'm planning to include these changes once quincy is branched off. I hope that is ok? |
|
|
@vshankar - any updates? ;) |
9a11e6e to
7bad085
Compare
src/include/cephfs/libcephfs.h
Outdated
| * is empty. This pointer should not be freed by the caller, and is only safe to | ||
| * access between return and the next call to ceph_readdir or ceph_closedir. | ||
| */ | ||
| int ceph_readdir_snapdiff(struct ceph_mount_info* cmount, |
There was a problem hiding this comment.
It's looks a bit unusual to pass in the snap-id of the other snapshot against which the delta has to be built. Could this be the snapshot name?
FWIW, this interface can accept two directory stream pointers (one for each snapshot) and a path for which the entries are to be built.
There was a problem hiding this comment.
@vshankar - I've reworked the API to accept snapshot root(!) dir stream pointer instead of snapid.
There is still a snapid returned by the function to distinguish removed and existing entries. Probably we can get rid off it as well and replace with an explicit bool flag... Do you think we need should do that?
There was a problem hiding this comment.
I think better would be to create an API for building a snapdiff stream. Something like:
snapdiff_result_t* opensnapdiff(snappath1, snappath2);
Do sanity checks like same dir inode. Save snapids.
int readdir_snapdiff(snapdiff_result_t*, snapid_t* res_snap);
What do you think?
There was a problem hiding this comment.
@batrick - I refactored this part a bit, please take a look. Is that what you suggested?
|
I'm talking about Denis's PR #42517 where I had some comments that Denis took care of. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
7bad085 to
8e38b9c
Compare
8e38b9c to
b317848
Compare
|
jenkins test make check |
It looks like those comments have been answered/resolved? Do you see anything still open for discussion there ? |
|
jenkins test make check |
|
jenkins test ceph windows tests |
|
jenkins test ceph windows |
|
jenkins test windows |
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
3661d13 to
3e88c6b
Compare
|
jenkins retest this please |
|
jenkins test windows |
|
I'm seeing some unrelated Windows test timeouts, will look into it. |
|
jenkins test windows |
|
Thanks for issuing a Windows recheck. For what is worth, the Windows job is currently failing due to an unrelated regression: #51043 |
OK, good to know. Thanks! |
Thx @petrutlucian94. Since the failure is unrelated, this is good to merge then :) |
Comments resolved
OK, I'm going ahead and merge.. Thanks a lot to everyone involved ;) |
cephfs: implement snapdiff Reviewed-by: Venky Shankar <vshankar@redhat.com>
* use a fixture for setup_test() * invoke test_cephfs.py with pytest Signed-off-by: Casey Bodley <cbodley@redhat.com> (cherry picked from commit 0bd813f) Conflicts: src/test/pybind/test_cephfs.py missing ceph#43546 missing ceph#46905
* use a fixture for setup_test() * invoke test_cephfs.py with pytest Signed-off-by: Casey Bodley <cbodley@redhat.com> (cherry picked from commit 0bd813f) Conflicts: src/test/pybind/test_cephfs.py missing ceph#43546 missing ceph#46905
* use a fixture for setup_test() * invoke test_cephfs.py with pytest Signed-off-by: Casey Bodley <cbodley@redhat.com> (cherry picked from commit 0bd813f) Conflicts: src/test/pybind/test_cephfs.py missing ceph#43546 missing ceph#46905
* use a fixture for setup_test() * invoke test_cephfs.py with pytest Signed-off-by: Casey Bodley <cbodley@redhat.com> (cherry picked from commit 0bd813f) Conflicts: src/test/pybind/test_cephfs.py missing ceph#43546 missing ceph#46905
* use a fixture for setup_test() * invoke test_cephfs.py with pytest Signed-off-by: Casey Bodley <cbodley@redhat.com> (cherry picked from commit 0bd813f) Conflicts: src/test/pybind/test_cephfs.py missing ceph#43546 missing ceph#46905
This patch supersedes both #42517 and #43328 and implements API to access snapshot delta (aka snapdiff) via
new libcephfs API method: readdir_snapdiff.
New test cases "LibCephFS.SnapDiff*" can serve as an example of new API calls.
Signed-off-by: Igor Fedotov igor.fedotov@croit.io
Signed-off-by: Denis Barahtanov denis.barahtanov@croit.io
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox