From 08a7c5c47be6f4fd7ff1a133b4acdd606cb2d536 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 19 Jul 2016 18:42:23 +0200 Subject: [PATCH] daemon: mkfs: allow setting labels for f2fs filesystems Pass -L $LABEL to set the label of a f2fs filesystem when creating it. --- daemon/mkfs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/mkfs.c b/daemon/mkfs.c index cef3574a8..a0617a074 100644 --- a/daemon/mkfs.c +++ b/daemon/mkfs.c @@ -228,6 +228,10 @@ do_mkfs (const char *fstype, const char *device, int blocksize, ADD_ARG (argv, i, "-L"); ADD_ARG (argv, i, label); } + else if (STREQ (fstype, "f2fs")) { + ADD_ARG (argv, i, "-l"); + ADD_ARG (argv, i, label); + } else { reply_with_error ("don't know how to set the label for '%s' filesystems", fstype);