summaryrefslogtreecommitdiff
path: root/hasher.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-05-14 14:13:27 +0300
committerDavid Sterba <dsterba@suse.com>2018-06-07 16:37:39 +0200
commit04be0e4b19627e9e4d7295d89c58ca08f6a04f9f (patch)
treea17e6e8fbe958d4ed103e112f13f635b1c9a96f5 /hasher.c
parent12087e6d75279d0e912764728d2540e8709978fe (diff)
btrfs-progs: corrupt-block: Correctly handle -r when passing -I
The documentation for the -I option (corrupt an item) states: An item to corrupt (must also specify the field to corrupt and a root+key for the item) The code on the other hand doesn't check whether -r is in fact passed, and even if it is it's not handled at all. This means presently -I is possible to corrupt items only in the root tree. Fix this by correctly checking -r is passed and fail otherwise and passing the correct root to corrupt_btrfs_item. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'hasher.c')
0 files changed, 0 insertions, 0 deletions