Re: [Libguestfs] [PATCH 6/8] New API: btrfs_qgroup_limit

Richard W.M. Jones
Fri, 05 Dec 2014 12:34:42 -0000

On Tue, Dec 02, 2014 at 05:33:36PM +0800, Hu Tao wrote:
> btrfs_qgroup_limit limits the size of a qgroup.
> +    style = RErr, [Pathname "subvolume"; String
"size"], [];
> +    proc_nr = Some 430;
> +    optional = Some "btrfs"; camel_name =
"BTRFSQgroupLimit";
> +    shortdesc = "limit the size of a subvolume";
> +    longdesc = "\
> +Limit the size of a subvolume which's path is C<subvolume>.
C<size>
> +can have suffix of G, M, or K. " };

Oh dear no.

Pass size as an 'Int64'.

'guestfish' will magically allow people to use size qualifiers.

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.