4 Dec
2011
4 Dec
'11
12:29 p.m.
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=0d229484... http://git.annexia.org/?p=libguestfs.git;a=blob;f=daemon/swap.c;h=51dbbe483f...
Thank a lot Rich. I'll work out a patch and test it tomorrow. -Wanlong Gao
Rich.