On 05/07/2013 04:29 AM, Osier Yang wrote: > If the volume is of a clustered volume group, and not active, the > related pool APIs fails on open /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 active/deactive the volume, s,active/deactive,activate/deactivate, > but it's not the work I want to touch currently. Volume status in > other status is just fine to skip. Yeah, nice ideas for future improvement, and not as important as fixing the bug now. > > 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> > --- > src/storage/storage_backend_logical.c | 29 +++++++++++++++++++---------- > 1 file changed, 19 insertions(+), 10 deletions(-) ACK. > int i, err, nextents, nvars, ret = -1; > + const char *attrs = groups[9]; > + > + /* Skip not active volume */ s/not active/inactive/ -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list