Add an option to mkfs to specify which checksum algorithm will be used for
the filesystem.

Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de>
---
 mkfs/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mkfs/main.c b/mkfs/main.c
index 7a7b6417a947..61184c8e7525 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -354,6 +354,7 @@ static void print_usage(int ret)
        printf("\t--shrink                (with --rootdir) shrink the filled 
filesystem to minimal size\n");
        printf("\t-K|--nodiscard          do not perform whole device TRIM\n");
        printf("\t-f|--force              force overwrite of existing 
filesystem\n");
+       printf("\t--checksum              checksum algorithm to use (default: 
crc32c)\n");
        printf("  general:\n");
        printf("\t-q|--quiet              no messages except errors\n");
        printf("\t-V|--version            print the mkfs.btrfs version and 
exit\n");
-- 
2.16.4

Reply via email to