]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Refactor disk label checking
authorJohn Ferlan <jferlan@redhat.com>
Thu, 1 Oct 2015 12:07:35 +0000 (08:07 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 5 Oct 2015 12:14:44 +0000 (08:14 -0400)
commit2f177c5a41de50143453aba333774f3023e946b7
tree7c1baf19d7c4afc370e2b1e2fcf3f5840f36d0a0
parentfdda37608a6e22406fbdfe4ac0c573a96a8d0417
storage: Refactor disk label checking

Create a new function virStorageBackendDiskValidLabel to handle checking
whether there is a label on the device and whether it's valid or not.
While initially for the purpose of determining whether the label can be
overwritten during DiskBuild, a future use during DiskStart could determine
whether the pool should be started using the label found.
src/storage/storage_backend_disk.c