From 2259f03439bd697b64efdb09dfc75638f24c4b48 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Mon, 11 May 2015 16:08:45 +0800 Subject: 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 [removed the chunk tree flag, reworded the error message] Signed-off-by: David Sterba --- disk-io.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'disk-io.h') diff --git a/disk-io.h b/disk-io.h index 4caebeb1..19f333ed 100644 --- a/disk-io.h +++ b/disk-io.h @@ -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) -- cgit v1.2.3