• J
    storage: On error unlink created file in virFileOpen{As|Forked} · 69556215
    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 doesn't need to distinguish between failed create
    or some other failure after create, just remove the volume we created.
    Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
    69556215
virfile.c 86.5 KB