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=0d229484... http://git.annexia.org/?p=libguestfs.git;a=blob;f=daemon/swap.c;h=51dbbe483f... 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