diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2015-05-11 16:08:47 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-05-14 15:41:07 +0200 |
commit | 0c8b978881f8f5d2b15b7bf2ec5621500ec3858a (patch) | |
tree | 4a89621fec0972a11f79ef6d1fa738899e308e80 /ctree.h | |
parent | 92b020ee0487b34282169a55a91261cee3daa1fe (diff) |
btrfs-progs: Introduce change_header_uuid function
This function is used to change fsid and chunk_tree_uuid of a node/leaf.
The function does it without transaction protection.
This is the basis of offline uuid change.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -955,7 +955,9 @@ struct btrfs_device; struct btrfs_fs_devices; struct btrfs_fs_info { u8 fsid[BTRFS_FSID_SIZE]; + u8 *new_fsid; u8 chunk_tree_uuid[BTRFS_UUID_SIZE]; + u8 *new_chunk_tree_uuid; struct btrfs_root *fs_root; struct btrfs_root *extent_root; struct btrfs_root *tree_root; |