[Libguestfs] [PATCH 3/5] New API: btrfs_filesystem_get_label
Hu Tao
hutao at cn.fujitsu.com
Mon Jan 12 01:22:15 UTC 2015
On Wed, Jan 07, 2015 at 11:23:29AM +0100, Pino Toscano wrote:
> 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.
Yeah, I'm planning to update the bit for all btrfs-related patches.
Thank you for reminding!
Regards,
Hu
More information about the Libguestfs
mailing list