]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Fix autostart of pool with "fc_host" type adapter
authorOsier Yang <jyang@redhat.com>
Mon, 6 Jan 2014 10:19:34 +0000 (18:19 +0800)
committerOsier Yang <jyang@redhat.com>
Thu, 23 Jan 2014 09:50:29 +0000 (17:50 +0800)
commit2340f0196f6339f95274f73699d54e0b5e07c362
treeccfe07a3312af0705daf04e65f38dd6acf7081ca
parent2310e631cd05b1f5b7421c43ca46f377fd8aa87a
storage: Fix autostart of pool with "fc_host" type adapter

The "checkPool" is a bit different for pool with "fc_host"
type source adapter, since the vHBA it's based on might be
not created yet (it's created by "startPool", which is
involked after "checkPool" in storageDriverAutostart). So it
should not fail, otherwise the "autostart" of the pool will
fail either.

The problem is easy to reproduce:
    * Enable "autostart" for the pool
    * Restart libvirtd service
    * Check the pool's state
src/storage/storage_backend_scsi.c