mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-03 22:56:58 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user