Re: [libvirt] [PATCH 05/12] storage: On error unlink created file in virFileOpen{As|Forked}

2015-10-13 Thread Peter Krempa
On Fri, Oct 09, 2015 at 09:34:04 -0400, John Ferlan wrote: > After a successful creation of a file, if some other call results > in returning a failure, let's unlink the file we created to prevent > another round trip or confusion in the caller. In particular, this > function can be called during

[libvirt] [PATCH 05/12] storage: On error unlink created file in virFileOpen{As|Forked}

2015-10-09 Thread John Ferlan
After a successful creation of a file, if some other call results in returning a failure, let's unlink the file we created to prevent another round trip or confusion in the caller. In particular, this function can be called during a storage backend buildVol, so in order to ensure that caller