aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2020-11-09 10:03:06 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2020-12-07 09:25:14 -0800
commit31d30f0c49b210996dc9bfdf5623b08ff91ccd55 (patch)
tree87160bd454f362d20ecd12f2de09baaf86ab152e
parent1d4c7e7ce572bce53043777a7f07012cbda54d1f (diff)
downloadf2fs-tools-31d30f0c49b210996dc9bfdf5623b08ff91ccd55.tar.gz
mkfs.f2fs: show a message when compression is enabled
This patch adds a message when formatting the disk with compression. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--mkfs/f2fs_format_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkfs/f2fs_format_main.c b/mkfs/f2fs_format_main.c
index b14d735..03eb748 100644
--- a/mkfs/f2fs_format_main.c
+++ b/mkfs/f2fs_format_main.c
@@ -98,6 +98,9 @@ static void f2fs_show_info()
f2fs_encoding2str(c.s_encoding));
if (c.feature & le32_to_cpu(F2FS_FEATURE_PRJQUOTA))
MSG(0, "Info: Enable Project quota\n");
+
+ if (c.feature & le32_to_cpu(F2FS_FEATURE_COMPRESSION))
+ MSG(0, "Info: Enable Compression\n");
}
static void add_default_options(void)