]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Fix any VolLookupByPath if we have an empty logical pool
authorCole Robinson <crobinso@redhat.com>
Wed, 25 Jan 2012 17:07:14 +0000 (12:07 -0500)
committerCole Robinson <crobinso@redhat.com>
Wed, 25 Jan 2012 18:15:35 +0000 (13:15 -0500)
commit275155f664614fd32bcf5e963488e6f97b66dae4
treefa37a2dbc153f20e31aa43ea523269df75dab411
parent16dc4ade7a2c83f166c7e8b8560a5fd42e662b53
storage: Fix any VolLookupByPath if we have an empty logical pool

On F16 at least, empty volume groups don't have a directory under /dev.
The directory only appears once a logical volume is created.

This tickles some behavior in BackendStablePath which ends with
libvirt sleeping for 5 seconds while waiting for the directory to appear.
This causes all sorts of problems for the virStorageVolLookupByPath API
which virtinst uses, even if trying to resolve a path that is independent
of the logical pool.

In reality we don't even need to do that checking since logical pools
always have a stable target path. Short circuit the polling in that
case.

Fixes bug 782261
src/storage/storage_backend.c