[LU-15372] add projid to changelog Created: 15/Dec/21  Updated: 09/Dec/23

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: lad23dd, lug23dd, medium

Issue Links:
Duplicate
Related
is related to LU-12056 tar doesn't support project id Resolved
is related to LU-1996 Fine-grained job activity tracking us... Resolved
is related to LU-9727 Lustre Audit with Changelogs Resolved
is related to LU-15373 changelog improvements tracking Open
is related to LU-12480 add STATX_PROJID to upstream kernel Open
Rank (Obsolete): 9223372036854775807

 Description   

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;       /* FS_PROJINHERIT_FL and other ext4 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.



 Comments   
Comment by Gerrit Updater [ 21/Nov/23 ]

"Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/53190
Subject: LU-15372 mdd: Add projid CL support
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 1eed9804c49e498703bd403e139c62cce12dc7bd

Generated at Sat Feb 10 03:17:45 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.