btrfs: add support for SUPER_FLAG_CHANGING_FSID
authorAnand Jain <Anand.Jain@oracle.com>
Tue, 9 Jan 2018 01:05:42 +0000 (09:05 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:21 +0000 (16:08 +0100)
commit98820a7e244b17b8a4d9e9d1ff9d3b4e5bfca58b
tree0491ecaf46bf2f795944dcf18963d3e696243c86
parente2731e55884f2138a252b0a3d7b24d57e49c3c59
btrfs: add support for SUPER_FLAG_CHANGING_FSID

The UUID change by btrfstune sets SUPER_FLAG_CHANGING_FSID and resets it
only when changing fsid is complete. Its not a good idea to mount the
device anything in between, reading metadata blocks would fail with UUID
mismatch.

This patch doesn't add SUPER_FLAG_CHANGING_FSID into
BTRFS_SUPER_FLAG_SUPP list, so mount will fail (along with the fix in
the next patch) when SUPER_FLAG_CHANGING_FSID is set.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
include/uapi/linux/btrfs_tree.h