diff options
author | David Sterba <dsterba@suse.com> | 2018-04-06 18:37:30 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-04-11 15:37:36 +0200 |
commit | 22d39a9e0f048b9241b0fc22e6ef2151da07cfb4 (patch) | |
tree | 33d9c80682d68f92f3c25e4d67dcc704aecdcb39 | |
parent | b5e0ca64a44722b61657a0afdc153d48ec2919b9 (diff) | |
download | btrfs-progs-22d39a9e0f048b9241b0fc22e6ef2151da07cfb4.tar.gz btrfs-progs-22d39a9e0f048b9241b0fc22e6ef2151da07cfb4.tar.bz2 btrfs-progs-22d39a9e0f048b9241b0fc22e6ef2151da07cfb4.zip |
btrfs-progs: sb-mod: add csum_type
Let SET and GET work on superblock::csum_type.
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | btrfs-sb-mod.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/btrfs-sb-mod.c b/btrfs-sb-mod.c index 017049f8..ccefc98c 100644 --- a/btrfs-sb-mod.c +++ b/btrfs-sb-mod.c @@ -124,6 +124,7 @@ struct sb_field { { .name = "chunk_root_generation", .type = TYPE_U64 }, { .name = "cache_generation", .type = TYPE_U64 }, { .name = "uuid_tree_generation", .type = TYPE_U64 }, + { .name = "csum_type", .type = TYPE_U16 }, }; #define MOD_FIELD_XX(fname, set, val, bits, f_dec, f_hex, f_type) \ @@ -168,6 +169,7 @@ static void mod_field_by_name(struct btrfs_super_block *sb, int set, const char MOD_FIELD(chunk_root_generation, set, val) MOD_FIELD(cache_generation, set, val) MOD_FIELD(uuid_tree_generation, set, val) + MOD_FIELD16(csum_type, set, val) else { printf("ERROR: unhandled field: %s\n", name); exit(1); |