Add Project ID support

Project IDs add a new field 'proj' to the inode struct.
In this patch we simply check if the feature is present
before we compile and if it is we allocate the field
within the parallel_restore inode and make sure this
value set in the restored inode. If it is not present
we ignore it.

Signed-off-by: Hunter Shaffer <hunter.shaffer@versity.com>
This commit is contained in:
Hunter Shaffer
2024-10-17 12:01:04 -07:00
committed by Auke Kok
parent 0d910eb7ab
commit d653c78504
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -826,6 +826,7 @@ static spr_err_t insert_inode_items(struct scoutfs_parallel_restore_writer *wri,
si->mtime.nsec = cpu_to_le32(inode->mtime.tv_nsec);
si->crtime.sec = cpu_to_le64(inode->crtime.tv_sec);
si->crtime.nsec = cpu_to_le32(inode->crtime.tv_nsec);
si->proj = cpu_to_le64(inode->proj);
err = insert_inode_index_item(wri, SCOUTFS_INODE_INDEX_META_SEQ_TYPE,
le64_to_cpu(si->meta_seq), inode->ino);
+1
View File
@@ -50,6 +50,7 @@ struct scoutfs_parallel_restore_inode {
struct timespec ctime;
struct timespec mtime;
struct timespec crtime;
u64 proj;
/* regular files */
u64 data_version;