]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Add param to check whether we can write a disk label
authorJohn Ferlan <jferlan@redhat.com>
Thu, 1 Oct 2015 13:30:28 +0000 (09:30 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 5 Oct 2015 12:14:44 +0000 (08:14 -0400)
commit05c46f5c2267a52a2011d5ce0cd4fce1f5334761
tree159374ab8e76c225656ad9ab74103d34a4bb48f0
parent2f177c5a41de50143453aba333774f3023e946b7
storage: Add param to check whether we can write a disk label

Modify virStorageBackendDiskValidLabel to add a 'writelabel' parameter.
While initially for the purpose of determining whether the label should
be written during DiskBuild, a future use during DiskStart could determine
whether the pool should be started using the label found. Augment the
error messages also to give a hint as to what someone may need to do
or why the command failed.
src/storage/storage_backend_disk.c