]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
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 12:59:53 +0000 (08:59 -0400)
commit35847860f65f92e444db9730e00cdaef45198e0c
treede6830a083f690baa4762cf6ada592da7e6f07c9
parent1fafc1bc1cd5c18f36089ec697da08f72270b35c
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