[Libvir] Repository for work-in-progress storage patches

Jim Meyering jim at meyering.net
Sat Jan 19 19:05:37 UTC 2008


"Daniel P. Berrange" <berrange at redhat.com> wrote:
> Actually that's OK - the contract of the 'volCreate' method in the backend
> does not require free'ing of the 'vol' object upon failure. Becaue 'vol'
> is passed in pre-allocated, it is the caller's responsibilty to release
> the 'vol' object upon failure. So the cleanup code in the loop driver
> only needs to cleanup mess it made itself - eg releasing the loop device
> and closing the fd.

Ah... got it, now.
Thanks.




More information about the libvir-list mailing list