virfile: Introduce virFileUnlink
authorJohn Ferlan <jferlan@redhat.com>
Mon, 24 Aug 2015 21:00:02 +0000 (17:00 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 2 Sep 2015 17:11:30 +0000 (13:11 -0400)
commit454cb7c40dbcff84192094963d71369ac7d94546
treef7e370eaa30aceccd4a65434fc5a974d5a4fc9de
parentc814a546f206a99ef0fcbc9c7de3c88b60daf54a
virfile: Introduce virFileUnlink

In an NFS root-squashed environment the 'vol-delete' command will fail to
'unlink' the target volume since it was created under a different uid:gid.

This code continues the concepts introduced in virFileOpenForked and
virDirCreate[NoFork] with respect to running the unlink command under
the uid/gid of the child. Unlike the other two, don't retry on EACCES
(that's why we're here doing this now).
src/libvirt_private.syms
src/storage/storage_backend_fs.c
src/util/virfile.c
src/util/virfile.h