[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



"Daniel P. Berrange" <berrange 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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]