On 12/04/2011 08:09 PM, Richard W.M. Jones wrote:
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=0d229...
http://git.annexia.org/?p=libguestfs.git;a=blob;f=daemon/swap.c;h=51dbbe4...
Thank a lot Rich.
I'll work out a patch and test it tomorrow.
-Wanlong Gao
Rich.