diff mbox series

[v5,1/7] btrfs-progs: add option for checksum type to mkfs

Message ID 20190925133728.18027-2-jthumshirn@suse.de (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: support xxhash64 checksums | expand

Commit Message

Johannes Thumshirn Sept. 25, 2019, 1:37 p.m. UTC
Add an option to mkfs to specify which checksum algorithm will be used for
the filesystem.

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

Comments

Johannes Thumshirn Sept. 25, 2019, 1:50 p.m. UTC | #1
On 25/09/2019 15:37, Johannes Thumshirn wrote:
> Add an option to mkfs to specify which checksum algorithm will be used for
> the filesystem.
> 
> Signed-off-by: Johannes Thumshirn <jthumshirn@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");
> 

This looks like it's a rebasing error. I'll investigate what went wrong
here.
Johannes Thumshirn Sept. 25, 2019, 2:01 p.m. UTC | #2
On 25/09/2019 15:50, Johannes Thumshirn wrote:
[...]
> This looks like it's a rebasing error. I'll investigate what went wrong
> here.

Yup that's a rebase error, please ignore this patch
David Sterba Sept. 25, 2019, 4:48 p.m. UTC | #3
On Wed, Sep 25, 2019 at 04:01:48PM +0200, Johannes Thumshirn wrote:
> On 25/09/2019 15:50, Johannes Thumshirn wrote:
> [...]
> > This looks like it's a rebasing error. I'll investigate what went wrong
> > here.
> 
> Yup that's a rebase error, please ignore this patch

No problem. I moved the option to the 'features' sections, so the rebase
on your side kept it in the 'creation' section.
diff mbox series

Patch

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");