[Libguestfs] [PATCH V4] virt-sysprep:add logging feature

Wanlong Gao gaowanlong at cn.fujitsu.com
Wed Apr 11 12:05:29 UTC 2012


On 04/11/2012 06:12 PM, Richard W.M. Jones wrote:

> On Wed, Apr 11, 2012 at 02:27:49PM +0800, Wanlong Gao wrote:
>> Hi Rich,
>>
>> I did with your suggestions, please help reviewing.
>>
>> I got a compiling error,
>> -
>> File "sysprep_operation.mli", line 23, characters 17-19:
>> Error: Unbound type parameter 'a
>> make: *** [sysprep_operation.cmi] Error 2
>> make: Leaving directory `/work/git/libguestfs/sysprep'
>> -
> 
> It turns out that it's hard to make the types work out properly with
> this method of passing the 'debug' function around.  We would need to
> use some feature of OCaml 3.12, which then wouldn't be compatible with
> RHEL 6.
> 
> Try the attached patch instead, which is in any case much simpler.
> 
> I'm still a bit confused about the purpose of adding logging.  How is
> this better than using the -x option?


I thinks users often want to know what is virt-sysprep doing on his
guest, if silence, I don't know if the process is running or already
hang up. So, I also think that showing simple logging for users should
be made default.

Above all, I think keep silently when running for a bit long time is
not a good idea, do you think so?

Thanks,
Wanlong Gao

> 
> Rich.
> 





More information about the Libguestfs mailing list