Repository navigation
cephfs/snapdiff: introduce mask param for file attr changes - #68054
Conversation
Generally speaking that's for the sake of better flexibility. It's hard to predict what exact attribute change one might want to track. While tracking any attribute (e.g. atime/ctime) might result in redundant output. Hence providing the control to the caller |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
unstale |
vshankar
left a comment
There was a problem hiding this comment.
LGTM. I will add a commit on top of this to bump up libcephfs minor version. We have started to follow this lately for API changes.
|
This PR has been added to main integration testing by vshankar started 2026-07-21-10:48. |
This breaks ABI for consumers like go-ceph (ceph/go-ceph#1309) that use dlsym with locally defined copies of the struct/function signature. Both the new |
Would checking the libcephfs version number suffice for go-ceph? (as discussed)? |
I've settled on the check |
|
I'm going to push back here... we should not be working around this on go-ceph. You are not just making a breaking change for go-ceph after all but other consumers of this api too. |
| << dendl; | ||
| unsigned res_mask = 0; | ||
| if (before.meta_differs(in, diff_mask, res_mask) ) { | ||
| dout(0) << __func__ << " attrs changed " << dn->get_name() << " " |
There was a problem hiding this comment.
Was flooding the MDS log with "attrs (not) changed" entries intended? This used to be logged at 30.
There was a problem hiding this comment.
Probably a left over debug bit.
Fair. Lesson learnt here. We have acted somewhat relaxed when it comes to introducing changes like this under the assumption that such APIs are used by tools we maintain ourselves. I will fix it up and also I think it's time I write up a document (that lives in ceph repo) that acts as a checklist for anyone reviewing API/ABI changes. |
Fixes: https://tracker.ceph.com/issues/75705
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.