[Libguestfs] [PATCH 4/8] New API: btrfs_quota_disable

Richard W.M. Jones rjones at redhat.com
Tue Dec 9 09:05:16 UTC 2014


On Tue, Dec 09, 2014 at 02:54:28PM +0800, Hu Tao wrote:
> Okay, it's more neat. But I changed it into
> 
>   guestfs_btrfs_quota_enable (guestfs_h *g, const char *path, int enable)
> 
> BTW, why not generate bool for c from ocaml Bool?

The reason is historical - when we started out we generated 'int', and
C99 'bool' is not compatible with 'int' ('bool' is really a 'char') so
we cannot change it.

Also 'bool' is of dubious utility.  See Linus's comments here:

https://lkml.org/lkml/2013/8/31/138

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list