diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-03 21:23:07 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-10 20:34:09 +0100 |
commit | 29223b5a555e90844fda741088831d06bb52b882 (patch) | |
tree | 254e2710355754e92989858ad211f9e9c037065d /fs/bcachefs/fs.c | |
parent | bcachefs: Switch to uuid_to_fsid() (diff) | |
download | linux-29223b5a555e90844fda741088831d06bb52b882.tar.xz linux-29223b5a555e90844fda741088831d06bb52b882.zip |
bcachefs: Initialize super_block->s_uuid
Need to fix this oversight for the new FS_IOC_(GET|SET)UUID ioctls.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fs.c')
-rw-r--r-- | fs/bcachefs/fs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index ec9cf4b8faf1..be0c059d70f0 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -1878,6 +1878,7 @@ got_sb: sb->s_time_gran = c->sb.nsec_per_time_unit; sb->s_time_min = div_s64(S64_MIN, c->sb.time_units_per_sec) + 1; sb->s_time_max = div_s64(S64_MAX, c->sb.time_units_per_sec); + sb->s_uuid = c->sb.user_uuid; c->vfs_sb = sb; strscpy(sb->s_id, c->name, sizeof(sb->s_id)); |