diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2015-05-11 16:08:45 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2015-05-14 15:41:07 +0200 |
commit | 2259f03439bd697b64efdb09dfc75638f24c4b48 (patch) | |
tree | 4eb36a6e415975ba4412a273c2f378fd508ae3f2 /disk-io.h | |
parent | 9ae2b8b52fe18efc0aab16ac3a5d1286a495b347 (diff) |
btrfs-progs: Add open_ctree check for uuid changing
Now open_ctree will exit if it found the superblock is marked
CHANGING_FSID, except given IGNORE_FSID open ctree flags.
Kernel will do the same thing later.
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
[removed the chunk tree flag, reworded the error message]
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'disk-io.h')
-rw-r--r-- | disk-io.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -49,6 +49,8 @@ enum btrfs_open_ctree_flags { * tree bits. * Like split PARTIAL into SKIP_CSUM/SKIP_EXTENT */ + + OPEN_CTREE_IGNORE_FSID_MISMATCH = (1 << 10) }; static inline u64 btrfs_sb_offset(int mirror) |