On Thu, Feb 1, 2024 at 10:35 PM Stefan Berger <stefanb@xxxxxxxxxxxxx> wrote:
and your suggested change to this patch :
- struct inode *inode = d_real_inode(dentry);
+ struct inode *inode = d_inode(d_real(dentry, false));;
In the new version I change the API to use an enum instead of bool, e.g.:
struct inode *inode = d_inode(d_real(dentry, D_REAL_METADATA));
This catches in build time and in run time, callers that were not converted
to the new API.
The test cases are now passing with and without metacopy enabled. Yay!
Too soon to be happy.
I guess you are missing a test for the following case:
1. file was meta copied up (change is detected)
2. the lower file that contains the data is being changed (change is
not detected)