]> xenbits.xensource.com Git - libvirt.git/commit
storage: Add writelabel bool for virStorageBackendDeviceProbe
authorJohn Ferlan <jferlan@redhat.com>
Wed, 14 Dec 2016 23:03:20 +0000 (18:03 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 10 Jan 2017 13:44:50 +0000 (08:44 -0500)
commit19ced38f1c198a603fd4ca7385736829505c0e32
tree382f1e341f481c05347e5f8e9dab554b66589ea1
parenta22e1a00326500bdeeb3e58c69ef8496dba791cc
storage: Add writelabel bool for virStorageBackendDeviceProbe

It's possible that the API could be called from a startup path in
order to check whether the label on the device matches what our
format is. In order to handle that condition, add a 'writelabel'
boolean to the API in order to indicate whether a write or just
read is about to happen.

This alters two "error" conditions that would care about knowing.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_backend.c
src/storage/storage_backend.h
src/storage/storage_backend_fs.c