From: Kay Sievers Date: Wed, 29 Nov 2006 09:11:04 +0000 Subject: Re: [Patch] udev: new dasd_id tool Message-Id: <1164791464.3613.112.camel@pim.off.vrfy.org> List-Id: References: <20061127141551.406c28a1.sameske@de.ibm.com> In-Reply-To: <20061127141551.406c28a1.sameske@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Wed, 2006-11-29 at 07:55 +0100, Volker Sameske wrote: > > > > Well, we usually don't care about backwards compat in that=20 > direction. A > > > > udev version can simply require a minimal kernel version, and this > > > > should be fine. > > > >=20 > > > > But how do we handle people already using the current persistent=20 > links? > > > > Your new tool creates different names for the same devices on recent > > > > kernels, right? > > >=20 > > > Yes. If the new uid is available in a distribution dasd_id returns: > > >=20 > > > ID_BUS=CCw > > > ID_TYPE=3Ddisk > > > ID_SERIAL=3DIBM.75000000092461.4d00.34 > > >=20 > > > if not, you'll get: > > >=20 > > > ID_BUS=CCw > > > ID_TYPE=3Ddisk > > > ID_SERIAL=3D0X4D34 > >=20 > > So, how do we handle possible users who use the old name? Always create > > both links? Warn on update? >=20 > I see your point, but from my experiences changes like new sysfs=20 > attributes only come with new versions of a distribution or with > bigger updates, e.g. SUSE service packs or RedHat Updates. >=20 > I do not see a problem with new versions of distributions, > e.g. SLES9 -> SLES10. New distribution, new device nodes, new game. >=20 > If the change comes with a service pack within the lifetime of a > distribution it is a distributors decision what to do. > They could just change the device nodes and affected system tools=20 > (e.g. yast) and document that possibly some user tools needs to=20 > be adapted too. > Or the distributor decides do create both device nodes using two=20 > different udev rules. I could add a --old option to dasd_id which > always returns the old version. The current implementation decides=20 > itself which version to return. >=20 > But I would prefer the first approach. The old uid is not unique.=20 > So using these device nodes could lead in worst case to data loss. Well, for a distributor, which doesn't support the old names, there is no need for that tool at all then, because he can just rely on the sysfs attribute with the same result. :) You should probably add the old name to the --export switch, so udev can create both links if needed. Can the old version be computed from the sysfs value, or do we need to read it from the device? Kay ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel