summaryrefslogtreecommitdiff
path: root/disk-io.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-05-11 16:08:45 +0800
committerDavid Sterba <dsterba@suse.cz>2015-05-14 15:41:07 +0200
commit2259f03439bd697b64efdb09dfc75638f24c4b48 (patch)
tree4eb36a6e415975ba4412a273c2f378fd508ae3f2 /disk-io.h
parent9ae2b8b52fe18efc0aab16ac3a5d1286a495b347 (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.h2
1 files changed, 2 insertions, 0 deletions
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)