libvirt/src/storage
Osier Yang 59750ed6ea storage: Skip inactive lv volumes
If the volume is of a clustered volume group, and not active, the
related pool APIs fails on opening /dev/vg/lv. If the volume is
suspended, it hangs on open(2) the volume.

Though the best solution is to expose the volume status in volume
XML, and even better to provide API to activate/deactivate the volume,
but it's not the work I want to touch currently. Volume status in
other status is just fine to skip.

About the 5th field of lv_attr (from man lvs[8])
<quote>
 5 State: (a)ctive, (s)uspended, (I)nvalid snapshot, invalid
   (S)uspended snapshot, snapshot (m)erge failed,suspended
   snapshot (M)erge failed, mapped (d)evice present without
   tables,  mapped device present with (i)nactive table
</quote>
2013-05-08 12:12:14 +08:00
..
parthelper.c storage: Add coverity[dead_error_condition] to avoid error 2013-01-22 16:59:46 +01:00
storage_backend_disk.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
storage_backend_disk.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_fs.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
storage_backend_fs.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_iscsi.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
storage_backend_iscsi.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_logical.c storage: Skip inactive lv volumes 2013-05-08 12:12:14 +08:00
storage_backend_logical.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_mpath.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
storage_backend_mpath.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_rbd.c util: fix compile errors caused by moving string functions 2013-05-02 13:27:19 -04:00
storage_backend_rbd.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_scsi.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
storage_backend_scsi.h storage: Move virStorageBackendSCSIGetHostNumber into iscsi backend 2013-04-08 18:41:06 +08:00
storage_backend_sheepdog.c build: avoid useless virAsprintf 2013-05-02 13:35:26 -06:00
storage_backend_sheepdog.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
storage_backend.h storage: separate qemu-img command generation and execution 2013-02-24 18:11:40 +01:00
storage_driver.c virutil: Move string related functions to virstring.c 2013-05-02 16:56:55 +02:00
storage_driver.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00