[Libguestfs] [PATCH 3/5] New API: btrfs_filesystem_get_label

Pino Toscano ptoscano at redhat.com
Wed Jan 7 10:23:29 UTC 2015


In data martedì 6 gennaio 2015 09:30:19, Hu Tao ha scritto:
> > > diff --git a/generator/actions.ml b/generator/actions.ml
> > > index c328319..5223eb8 100644
> > > --- a/generator/actions.ml
> > > +++ b/generator/actions.ml
> > > @@ -12281,6 +12281,21 @@ corrupt data." };
> > >      longdesc = "\
> > >  Check or repair a btrfs filesystem offline." };
> > >  
> > > +  { defaults with
> > > +    name = "btrfs_filesystem_get_label";
> > > +    style = RString "label", [Pathname "path"], [];
> > > +    proc_nr = Some 437;
> > > +    optional = Some "btrfs"; camel_name = "BTRFSFilesystemGetLabel";
> > > +    tests = [
> > > +      InitPartition, Always, TestResultString (
> > > +        [["mkfs_btrfs"; "/dev/sda1"; ""; ""; "NOARG"; ""; "label"; "NOARG"; ""; ""];
> > > +         ["mount"; "/dev/sda1"; "/"];
> > > +         ["btrfs_filesystem_get_label"; "/";]], "label\n"), [];
> > > +    ];
> > 
> > This test bit would be good to be added to the tests of vfs_label,
> > just with s/Always/IfAvailable "btrfs"/ so it is run only when btrfs
> > is available.

Feel free to send this bit (updated) anyway, also for patch 5.

Thanks,
-- 
Pino Toscano




More information about the Libguestfs mailing list