[lvm-devel] [LVM2 RFCv1 4/5] lib: locking: Parse PV list for IDM locking

Leo Yan leo.yan at linaro.org
Thu Apr 29 03:36:10 UTC 2021


On Thu, Apr 29, 2021 at 11:12:09AM +0800, Leo Yan wrote:

[...]

> > > +	/*
> > > +	 * Create the VG's PV list when start the VG, the PV list
> > > +	 * is passed to lvmlockd, and the the PVs path will be used
> > > +	 * to send SCSI commands for idm locking scheme.
> > > +	 */
> > 
> > if vg->lock_type is IDM before creating pv_list?
> 
> Yes, IIUC, when start the VG, "vg->lock_type" has been assigned to the
> locking scheme which it's using; for IDM locking scheme, "vg->lock_type"
> is "idm" before creating pv_list.

No sure if I understand your question or not.  But I think you are
suggesting to check "vg->lock_type" is IDM and then create pv_list for
IDM type.  Will refine code for this.

Thanks,
Leo




More information about the lvm-devel mailing list