[Libguestfs] [PATCH v2] NEW API: add blkid command to print the attributes of the device
Richard W.M. Jones
rjones at redhat.com
Sun Dec 4 12:09:44 UTC 2011
On Sun, Dec 04, 2011 at 07:45:07PM +0800, Wanlong Gao wrote:
> So, for the future of *libguestfs*, can we add something to separate
> these disto? For example we can remove the features like *-p* from
> RHEL5 but add it to RHEL6 or some fedora distos?
I agree. To do this we need to detect at runtime if the -p and/or -i
options are supported, and add them as appropriate. See for example:
http://git.annexia.org/?p=libguestfs.git;a=blob;f=daemon/parted.c;h=0d229484276d677e9ccc27e89bda5004d09c4631;hb=HEAD#l278
http://git.annexia.org/?p=libguestfs.git;a=blob;f=daemon/swap.c;h=51dbbe483f6748ae0508a622d5998d6b38d6ff87;hb=HEAD#l36
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
More information about the Libguestfs
mailing list