]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix directory removal in filesystem storage driver
authorSascha Peilicke <saschpe@suse.de>
Wed, 11 Jul 2012 15:34:58 +0000 (16:34 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 11 Jul 2012 15:42:06 +0000 (16:42 +0100)
commit5079a7b3e2daf6dab793978776ffff0b7cadef90
treec3d5571bd59f1330c8029bb0e87e2383a2316b2f
parent8a544719aa2fe92332756ea0483844b81d4d56ae
Fix directory removal in filesystem storage driver

Fix the virStorageBackendFileSystemVolDelete method to not use
unlink() unconditionally. It must use rmdir() for volumes which
are directories. It should also raise an error if given a volume
which has the network/block type.
AUTHORS
src/storage/storage_backend_fs.c