It would be useful to record the projid of a file into the Lustre Changelog, so that this can be used to identify files within a specific subdirectory tree. This would use:
struct changelog_ext_projid {
__u32 cr_projid;
__u32 cr_flags;
};
enum changelog_rec_extra_flags {
:
CLFE_PROJID = 0x0010,
};
It looks like there will be a bit of complexity when adding a record after changelog_ext_xattr because that structure sadly does not encode a length, but only a NUL-terminated string, so this should be rounded up to the next multiple of 4 bytes before the changelog_ext_projid record is stored.