Skip to content

Commit

Permalink
storage: f2fs uses lower case l for labels
Browse files Browse the repository at this point in the history
Fixes: #681

Signed-off-by: Mark D Horn <[email protected]>
  • Loading branch information
mdhorn committed Mar 12, 2020
1 parent 35a93e4 commit 02b30f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage/ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down

0 comments on commit 02b30f1

Please sign in to comment.