mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-11 05:07:51 +00:00
btrfs-progs: mkfs: store creation time of the toplevel subvolume
For unkonwn reasons, the creation time of the toplevel subvolume inode item hasn't been set. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
5d43dfd344
commit
5c4d53450b
2
utils.c
2
utils.c
@ -1866,7 +1866,7 @@ int btrfs_make_root_dir(struct btrfs_trans_handle *trans,
|
||||
btrfs_set_stack_timespec_nsec(&inode_item.ctime, 0);
|
||||
btrfs_set_stack_timespec_sec(&inode_item.mtime, now);
|
||||
btrfs_set_stack_timespec_nsec(&inode_item.mtime, 0);
|
||||
btrfs_set_stack_timespec_sec(&inode_item.otime, 0);
|
||||
btrfs_set_stack_timespec_sec(&inode_item.otime, now);
|
||||
btrfs_set_stack_timespec_nsec(&inode_item.otime, 0);
|
||||
|
||||
if (root->fs_info->tree_root == root)
|
||||
|
Loading…
Reference in New Issue
Block a user