]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virfile: Rename virFileUnlink to virFileRemove
authorJohn Ferlan <jferlan@redhat.com>
Mon, 21 Sep 2015 11:36:55 +0000 (07:36 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 21 Sep 2015 12:24:16 +0000 (08:24 -0400)
commit1b046a68378262d42c80dfa317c27522b9385761
treeff47349959b81566e0bfa24e65d1ac4459a87e38
parent91c8e75f442dc0ad03722ec6a331aa3094e8dbfc
virfile: Rename virFileUnlink to virFileRemove

Similar to commit id '35847860', it's possible to attempt to create
a 'netfs' directory in an NFS root-squash environment which will cause
the 'vol-delete' command to fail.  It's also possible error paths from
the 'vol-create' would result in an error to remove a created directory
if the permissions were incorrect (and disallowed root access).

Thus rename the virFileUnlink to be virFileRemove to match the C API
functionality, adjust the code to following using rmdir or unlink
depending on the path type, and then use/call it for the VIR_STORAGE_VOL_DIR
src/libvirt_private.syms
src/storage/storage_backend_fs.c
src/util/virfile.c
src/util/virfile.h