Re: discuss about commit 3b0f9ce: filter-mpath: get wwids from sysfs vpd_pg83

Demi Marie Obenour <[email protected]>
Newsgroups dev.linux.lists.linux-lvm
Message-ID <ZVfGLbjio7PEWG/L@itl-email>
On Fri, Nov 17, 2023 at 09:25:50AM -0600, David Teigland wrote:
> On Thu, Nov 16, 2023 at 08:47:22PM -0500, Demi Marie Obenour wrote:
> > > > commit 6c22392a3f903d6c086f7cc94978bdf8b072da6e
> > > > Author: David Teigland <[email protected]>
> > > > Date:   Tue Mar 16 09:52:13 2021 -0500
> > > > 
> > > >      config: change default use_devicesfile to 1
> > > > 
> > > > diff --git a/lib/config/defaults.h b/lib/config/defaults.h
> > > > index 66eece53aa33..a7a2a06df654 100644
> > > > --- a/lib/config/defaults.h
> > > > +++ b/lib/config/defaults.h
> > > > @@ -322,7 +322,7 @@
> > > >   #define DEFAULT_MD_COMPONENT_CHECKS "auto"
> > > > -#define DEFAULT_USE_DEVICES_FILE 0
> > > > +#define DEFAULT_USE_DEVICES_FILE 1
> > > >   #define DEFAULT_DEVICES_FILE "system.devices"
> > > > 
> > > > 
> > > > Later commits that removed DEFAULT_USE_DEVICES_FILE, and tried to replace
> > > > it with a configure option, was a failed attempt at building that lvm
> > > > source for RHEL8.  It's caused no end of problems and I plan to revert it
> > > > and restore define DEFAULT_USE_DEVICES_FILE 1.
> > > 
> > > 
> > > There is no problem with configuring DEFAULT_USE_DEVICES_FILE with
> > > 'configure --with-default-use-devices-file= 0/1' and thus no need to change
> > > anything here.
> > > 
> > > Current upstream has set this default value as 0  (in configure.ac)
> > > 
> > > RHEL builds use this setting as 1.  (Possibly even Fedora nowadays).
> > > 
> > > The major problem with turning this  to 1 is the distribution must be
> > > 'ready' with such relatively invasive change as it changes also requirements
> > > on how the boot image is created  (devicesfile must be copied to ramdisk).
> > > 
> > > So Suse  may try to set this setting  to 1  and see what all breaks.
> > > 
> > > 
> > > Zdenek
> > 
> > Does this mean that distributions *should* set this to 1 and update
> > their installers?
> 
> Yes, the devices file is intended to be a default feature of lvm since the
> commit above.

Could LVM issue a deprecation warning if DEFAULT_USE_DEVICES_FILE is set
to 0 or system.devices is not set at runtime?
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEdodNnxM2uiJZBxxxsoi1X/+cIsEFAmVXxi4ACgkQsoi1X/+c
IsHBVRAA3zWTMKNyMQJAIZNAEwA+tKHjk3jlblnoPpltuBtDPXDykh6uGUIDpFmM
xpS5jCJzocibbLrEyUVoS4256yjl+nVRxL31XRZi3ahp35J3/7t98s4oFWrDKXRe
FQHj3LJV7gYg1zQWPKMjjwCtxrBp61Ah+nhkBSgMgDA8cHAjbscJsYKCqeKLIoNY
QFooLH32+vqa2N3yRyJdkR2nEFUWbU69FrTdmGMJQR4NOqS22wdaIbh7LvnCE2cO
QfsY0SBRzpwsHR143SdsnvzrKZ0J3Nc0Sf723QLYiiL0H+CTORSyV3lPLrqav9In
44GYV64C0qd57xaBFJQJhf6MF82wchdh27lTJSYRP0u/L8XpLkagklT7TsmSd7/Z
DeAr8a1a8ExH2CXuN7TIWsYLQS/EsbGugi82IOqP08l2g7jgdD4Fudh6duipDQZo
yxCOurR2DAcReZd4BCemsUSyAH/3M03jXym9zxqAnIlnbI583ygkqvFYdXFQtIyG
/hrrzgp8cFgJxj8W+vi0wrChdL7yu3XUCV1NoCTUEVn1KbsLPvP46mrBYK8NZGIi
18zEQI+bQgyOIV3RdNOP8omQhWQscKrPTYStrB7IEyx5QKlLF+fmHayESUm9xy1J
AoNo4Mwc3Eekm4GzVY3SONS3RWewkT/UO1ppxl3GVM/GYixtRxE=
=kTmn
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.