Skip to contentSkip to conversation

btrfs-progs: corrupt-block: Fix description of 'r' option

PATCH Applied Nikolay Borisov 2 participants 2 messages Sep 11, 2019 – Sep 12, 2019 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs-progs: corrupt-block: Fix description of 'r' option

Since commit 04be0e4b1962 ("btrfs-progs: corrupt-block: Correctlyi handle -r when passing -I") the 'r' switch is used with both -I and -d options. So remove the wrong clarificatoin that -r is used only with -d option.

---
 btrfs-corrupt-block.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
btrfs-corrupt-block.c +1 -1
index bbef0c02e5d1..716439a5ea7c 100644
@@ -119,7 +119,7 @@ static void print_usage(int ret)
 	printf("\t-I <u64,u8,u64> Corrupt an item corresponding to the passed key triplet (must also specify the field to corrupt and root for the item)\n");
 	printf("\t-D <u64,u8,u64> Corrupt a dir item corresponding to the passed key triplet, must also specify a field\n");
 	printf("\t-d <u64,u8,u64> Delete item corresponding to passed key triplet\n");
-	printf("\t-r   Operate on this root (only works with -d)\n");
+	printf("\t-r   Operate on this root\n");
 	printf("\t-C   Delete a csum for the specified bytenr.  When used with -b it'll delete that many bytes, otherwise it's just sectorsize\n");
 	exit(ret);
 }
Signature · 1 line
2.7.4
Applied
#1 lore raw
Quoted 6 lines · Nikolay Borisov

Since commit 04be0e4b1962 ("btrfs-progs: corrupt-block: Correctlyi handle -r when passing -I") the 'r' switch is used with both -I and -d options. So remove the wrong clarificatoin that -r is used only with -d option.

Applied, thanks.