From 02b30f1bd98a4db1b52ec7ed84a646ab85ce055e Mon Sep 17 00:00:00 2001 From: Mark D Horn Date: Thu, 12 Mar 2020 10:39:42 -0700 Subject: [PATCH] storage: f2fs uses lower case l for labels Fixes: #681 Signed-off-by: Mark D Horn --- storage/ops.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storage/ops.go b/storage/ops.go index cac842f9..645356e4 100644 --- a/storage/ops.go +++ b/storage/ops.go @@ -1083,6 +1083,10 @@ func getMakeFsLabel(bd *BlockDevice) []string { labelArg = "-n" } + if bd.FsType == "f2fs" { + labelArg = "-l" + } + if len(bd.Label) > maxLen { shortLabel := string(bd.Label[0:(maxLen - 1)]) log.Warning("Truncating file system label '%s' to %d character label '%s'",