From 35614d8a64dc020822fa0e2b7eb2d00f6b4b27d6 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 19 Oct 2020 21:04:34 +0200 Subject: [PATCH] btrfs-progs: sb-mod: add syntax to the help text Reviewed-by: Anand Jain Signed-off-by: David Sterba --- btrfs-sb-mod.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/btrfs-sb-mod.c b/btrfs-sb-mod.c index 5102b2b2..28a85b0d 100644 --- a/btrfs-sb-mod.c +++ b/btrfs-sb-mod.c @@ -326,6 +326,16 @@ int main(int argc, char **argv) memset(spec, 0, sizeof(spec)); if (argc <= 2) { printf("Usage: %s image [fieldspec...]\n", argv[0]); + printf("Where fileldspec is: member op\n"); + printf(" member: name of the superblock member\n"); + printf(" op: single character optionally followed by a value\n"); + printf(" . read the member value (no value)\n"); + printf(" ? read the member value (no value)\n"); + printf(" = set member to the exact value (value required)\n"); + printf(" + add this value to member (value required)\n"); + printf(" - subtract this value from member (value required)\n"); + printf(" ^ xor member with this value (value required)\n"); + printf(" @ byteswap of the member (no value)\n"); exit(1); } fd = open(argv[1], O_RDWR | O_EXCL);