Skip to contentSkip to conversation

mkfs.f2fs: show a message when compression is enabled

PATCH In review Jaegeuk Kim 2 participants 2 messages Nov 9, 2020 – Nov 10, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mkfs.f2fs: show a message when compression is enabled

This patch adds a message when formatting the disk with compression.

---
 mkfs/f2fs_format_main.c | 3 +++
 1 file changed, 3 insertions(+)
mkfs/f2fs_format_main.c +3 -0
index b14d7359f786..03eb748170ad 100644
@@ -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)
Signature · 8 lines
2.29.2.222.g5d2a92d10f8-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel