]> xenbits.xensource.com Git - libvirt.git/commit
storage: Disallow wiping an extended disk partition
authorJohn Ferlan <jferlan@redhat.com>
Tue, 9 Jun 2015 22:15:39 +0000 (18:15 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 15 Jun 2015 11:45:06 +0000 (07:45 -0400)
commit84020f9a398f739ee2cf7588a7cf3b4b0c077984
tree06f235742a30b982364b4004e4e620e27dce2894
parent243bbcc5dbce4e9fea863f1d59c2d22b1e1156b4
storage: Disallow wiping an extended disk partition

https://bugzilla.redhat.com/show_bug.cgi?id=1225694

Check if the disk partition to be wiped is the extended partition, if
so then disallow it. Do this via changing the wipeVol backend to check
the volume before passing to the common virStorageBackendVolWipeLocal
src/storage/storage_backend_disk.c