diff mbox

[v2,01/13] btrfs-progs: Add CHANGIND_FSID and CHANGING_CHUNK_TREE_ID super flags.

Message ID 1431331734-11714-2-git-send-email-quwenruo@cn.fujitsu.com (mailing list archive)
State Accepted
Headers show

Commit Message

Qu Wenruo May 11, 2015, 8:08 a.m. UTC
Add these super flags to info kernel not to mount such unfinished
fsid/chunk tree id changing.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
---
v2:
  Newly introduced.
---
 ctree.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

David Sterba May 13, 2015, 1:57 p.m. UTC | #1
On Mon, May 11, 2015 at 04:08:42PM +0800, Qu Wenruo wrote:
> @@ -307,6 +307,8 @@ static inline unsigned long btrfs_chunk_item_size(int num_stripes)
>  
>  #define BTRFS_HEADER_FLAG_WRITTEN		(1ULL << 0)
>  #define BTRFS_HEADER_FLAG_RELOC			(1ULL << 1)
> +#define BTRFS_SUPER_FLAG_CHANGING_FSID		(1ULL << 30)
> +#define BTRFS_SUPER_FLAG_CHANGING_CHUNK_TREE_ID	(1ULL << 31)

Seems that the values should continue from the end of the sequence, ie.
1 << 35, I'll change that.

>  #define BTRFS_SUPER_FLAG_SEEDING		(1ULL << 32)
>  #define BTRFS_SUPER_FLAG_METADUMP		(1ULL << 33)
>  #define BTRFS_SUPER_FLAG_METADUMP_V2		(1ULL << 34)
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/ctree.h b/ctree.h
index 10dc838..8dc70a5 100644
--- a/ctree.h
+++ b/ctree.h
@@ -307,6 +307,8 @@  static inline unsigned long btrfs_chunk_item_size(int num_stripes)
 
 #define BTRFS_HEADER_FLAG_WRITTEN		(1ULL << 0)
 #define BTRFS_HEADER_FLAG_RELOC			(1ULL << 1)
+#define BTRFS_SUPER_FLAG_CHANGING_FSID		(1ULL << 30)
+#define BTRFS_SUPER_FLAG_CHANGING_CHUNK_TREE_ID	(1ULL << 31)
 #define BTRFS_SUPER_FLAG_SEEDING		(1ULL << 32)
 #define BTRFS_SUPER_FLAG_METADUMP		(1ULL << 33)
 #define BTRFS_SUPER_FLAG_METADUMP_V2		(1ULL << 34)