[Libguestfs] [PATCH 2/2] daemon: mkfs: allow setting labels for f2fs filesystems

Richard W.M. Jones rjones at redhat.com
Tue Jul 19 20:48:37 UTC 2016


On Tue, Jul 19, 2016 at 06:48:49PM +0200, Pino Toscano wrote:
> 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 cef3574..a0617a0 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);

ACK series.

Thanks,

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list