[PATCH v5 4/7] btrfs-progs: also print checksum type when running mkfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As mkfs will grow new checksums, print the used checksum in it's versbose
output.

Signed-off-by: Johannes Thumshirn <jthumshirn@xxxxxxx>
---
 mkfs/main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mkfs/main.c b/mkfs/main.c
index 61184c8e7525..04509e788a52 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -1380,7 +1380,9 @@ raid_groups:
 			pretty_size(allocation.system));
 		printf("SSD detected:       %s\n", ssd ? "yes" : "no");
 		btrfs_parse_features_to_string(features_buf, features);
-		printf("Incompat features:  %s", features_buf);
+		printf("Incompat features:  %s\n", features_buf);
+		printf("Checksum:           %s",
+		       btrfs_super_csum_name(mkfs_cfg.csum_type));
 		printf("\n");
 
 		list_all_devices(root);
-- 
2.16.4




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux