mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: mkfs: allow setting labels for f2fs filesystems
Pass -L $LABEL to set the label of a f2fs filesystem when creating it.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user