diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-29 18:18:59 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:01 +0300 |
commit | 653693beea8ac93e57fc17afc7353bd158bcd5ff (patch) | |
tree | 491f81b1a48ef28e7fb117c9e96b0e2e606aae77 /fs/bcachefs/bcachefs_format.h | |
parent | 1c59b483a3d249e08f0dcff43d9b78851d216fc1 (diff) | |
download | linux-653693beea8ac93e57fc17afc7353bd158bcd5ff.tar.xz |
bcachefs: Add otime, parent to bch_subvolume
Add two new fields to bch_subvolume:
- otime: creation time
- parent: For snapshots, this is the id of the subvolume the snapshot
was created from
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs_format.h')
-rw-r--r-- | fs/bcachefs/bcachefs_format.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h index e9ac3aa6d91c..ad87cdff8544 100644 --- a/fs/bcachefs/bcachefs_format.h +++ b/fs/bcachefs/bcachefs_format.h @@ -254,6 +254,11 @@ struct bkey_packed { __u8 pad[sizeof(struct bkey) - 3]; } __packed __aligned(8); +typedef struct { + __le64 lo; + __le64 hi; +} bch_le128; + #define BKEY_U64s (sizeof(struct bkey) / sizeof(__u64)) #define BKEY_U64s_MAX U8_MAX #define BKEY_VAL_U64s_MAX (BKEY_U64s_MAX - BKEY_U64s) @@ -1106,6 +1111,9 @@ struct bch_subvolume { __le32 flags; __le32 snapshot; __le64 inode; + __le32 parent; + __le32 pad; + bch_le128 otime; }; LE32_BITMASK(BCH_SUBVOLUME_RO, struct bch_subvolume, flags, 0, 1) |