mkfs.f2fs: show the info of volume label only when specify it
authorTiezhu Yang <kernelpatch@126.com>
Mon, 8 Oct 2018 12:39:07 +0000 (20:39 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 21 Nov 2018 19:38:23 +0000 (11:38 -0800)
commit3b65c5771a00577051a5ed841d09be21d3969c4c
tree2e1c2aa43de17dc72c23451b8e73eb1b07b1d244
parent83c64019e8e03147e8768240bfdb0b5f4e30fe9c
mkfs.f2fs: show the info of volume label only when specify it

Currently, when format disk used with mkfs.f2fs, even if the volume label
is not specified, it still shows the info of volume label with no content
due to the check condition is always true, this patch fixes it.

[root@localhost home]# mkfs.f2fs -f /dev/sdb1

F2FS-tools: mkfs.f2fs Ver: 1.12.0 (2018-10-08)

Info: Disable heap-based policy
Info: Debug level = 0
Info: Label =
Info: Trim is enabled

Signed-off-by: Tiezhu Yang <kernelpatch@126.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
mkfs/f2fs_format_main.c