summaryrefslogtreecommitdiff
path: root/btrfs-sb-mod.c
Commit message (Collapse)AuthorAge
* btrfs-progs: sb-mod: add compat bit to the recognized fieldsDavid Sterba2018-04-11
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: sb-mod: add csum_typeDavid Sterba2018-04-11
| | | | | | Let SET and GET work on superblock::csum_type. Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: sb-mod: add preliminary support for non-u64 typesDavid Sterba2018-04-11
| | | | Signed-off-by: David Sterba <dsterba@suse.com>
* btrfs-progs: add tool to edit super blocksDavid Sterba2018-03-30
$ make btrfs-sb-mod $ ./btrfs-sb-mod image field1 operation1 ... Fields (only u64 supported for now): * total_bytes * root * generation * chunk_root * chunk_root_generation * cache_generation * uuid_tree_generation Operations: * read value ?0 * set value =NUMBER * add to +NUMBER * subtract from value -NUMBER * xor with value ^NUMBER * byteswap (u64) @0 Use with care! Signed-off-by: David Sterba <dsterba@suse.com>