[libvirt] [PATCH] Add APIs for obtaining the unique ID of LVM & SCSI volumes

Doug Goldstein cardoe at gentoo.org
Fri Aug 3 04:32:14 UTC 2012


On Thu, Aug 2, 2012 at 8:09 AM, Daniel P. Berrange <berrange at redhat.com> wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> Both LVM volumes and SCSI LUNs have a globally unique
> identifier associated with them. It is useful to be able
> to query this identifier to then perform disk locking,
> rather than try to figure out a stable pathname.
> --

Would it not be better to call methods from within libdevmapper and
libblkid than relying on a callout? Its also worth noting that iSCSI
provides a GUID for the volume as well.

-- 
Doug Goldstein




More information about the libvir-list mailing list