]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
storage: Ignore block devices that fail format detection
authorJohn Ferlan <jferlan@redhat.com>
Fri, 30 Oct 2015 14:29:46 +0000 (10:29 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 9 Dec 2015 21:31:15 +0000 (16:31 -0500)
commita523770c32f5beff7faa63b5b685d9a2a9a04878
treea741ddd54f8d80ba3be562a6b2937104c842fbee
parentb3df72c4dd1a35e4e2ac4eaa5e044e49084973c4
storage: Ignore block devices that fail format detection

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

Prior to commit id '98322052' failure to saferead the block device would
cause an error to be logged and the device to be skipped while attempting
to discover/create a stable target path for a new LUN (NPIV).

This was because virStorageBackendSCSIFindLUs ignored errors from
processLU and virStorageBackendSCSINewLun.

Ignoring the failure allowed a multipath device with an "active" and
"ghost" to be present on the host with the "ghost" block device being
ignored. This patch will return a -2 to the caller indicating the desire
to ignore the block device since it cannot be used directly rather than
fail the pool startup.
src/storage/storage_backend_scsi.c