btrfs-progs: sb-mod: add compat bit to the recognized fields
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
22d39a9e0f
commit
e3ada5752c
|
@ -124,6 +124,9 @@ struct sb_field {
|
||||||
{ .name = "chunk_root_generation", .type = TYPE_U64 },
|
{ .name = "chunk_root_generation", .type = TYPE_U64 },
|
||||||
{ .name = "cache_generation", .type = TYPE_U64 },
|
{ .name = "cache_generation", .type = TYPE_U64 },
|
||||||
{ .name = "uuid_tree_generation", .type = TYPE_U64 },
|
{ .name = "uuid_tree_generation", .type = TYPE_U64 },
|
||||||
|
{ .name = "compat_flags", .type = TYPE_U64 },
|
||||||
|
{ .name = "compat_ro_flags", .type = TYPE_U64 },
|
||||||
|
{ .name = "incompat_flags", .type = TYPE_U64 },
|
||||||
{ .name = "csum_type", .type = TYPE_U16 },
|
{ .name = "csum_type", .type = TYPE_U16 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -169,6 +172,9 @@ static void mod_field_by_name(struct btrfs_super_block *sb, int set, const char
|
||||||
MOD_FIELD(chunk_root_generation, set, val)
|
MOD_FIELD(chunk_root_generation, set, val)
|
||||||
MOD_FIELD(cache_generation, set, val)
|
MOD_FIELD(cache_generation, set, val)
|
||||||
MOD_FIELD(uuid_tree_generation, set, val)
|
MOD_FIELD(uuid_tree_generation, set, val)
|
||||||
|
MOD_FIELD(compat_flags, set, val)
|
||||||
|
MOD_FIELD(compat_ro_flags, set, val)
|
||||||
|
MOD_FIELD(incompat_flags, set, val)
|
||||||
MOD_FIELD16(csum_type, set, val)
|
MOD_FIELD16(csum_type, set, val)
|
||||||
else {
|
else {
|
||||||
printf("ERROR: unhandled field: %s\n", name);
|
printf("ERROR: unhandled field: %s\n", name);
|
||||||
|
|
Loading…
Reference in New Issue