From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tansi.org (ns.km10532-04.keymachine.de [87.118.102.195]) by mail.saout.de (Postfix) with ESMTP for ; Wed, 13 Jan 2010 14:12:57 +0100 (CET) Received: from gatewagner.dyndns.org (84-74-164-239.dclient.hispeed.ch [84.74.164.239]) by tansi.org (Postfix) with ESMTP id 21D264250002 for ; Wed, 13 Jan 2010 14:12:57 +0100 (CET) Date: Wed, 13 Jan 2010 14:13:20 +0100 From: Arno Wagner Message-ID: <20100113131320.GA3993@tansi.org> References: <20100110151659.GA2635@tansi.org> <20100110194904.GA5194@tansi.org> <4B4A3989.7050004@redhat.com> <20100113070157.GA13730@maude.comedia.it> <1263378036.3529.3.camel@Koma-Station.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1263378036.3529.3.camel@Koma-Station.localdomain> Subject: Re: [dm-crypt] renaming of device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Having had a bit of time to think about it, it seems that it would indeed be necessary to store the device name. A possible alternative is to traverse all of /dev/ and report all devices that match major/minor. This may be the solution causing the least effort, as cryptsetup is doing something like it already, just that it currently stops after the first match. In fact, I think I prefer for it to report all devices that match. Arno On Wed, Jan 13, 2010 at 11:20:36AM +0100, Sven Eschenberg wrote: > Hi Luca, > > I doubt this is possible. The only possible thing would be: Modify DM, > when a device name is passed in, to keep the passed in name alongside > the actual major:minor and provide an IOCTL, to access the information. > > Regards > > -Sven > > > On Wed, 2010-01-13 at 08:01 +0100, Luca Berra wrote: > > On Sun, Jan 10, 2010 at 09:33:13PM +0100, Milan Broz wrote: > > >The algorithm is very simple (and was probably written before > > >udev was used so these special links in /dev did not exist). > > > > > >So it need to add some preferred names and not print the first entry. > > > > > >Please can you add an issue to project pages to not forget about this? > > >Probably good idea to fix it in next minor release. > > it could be useful to have the functionality in device-mapper itself, > > instead of duplicating in dm-crypt, lvm, dmraid, whatever ? > > > > Regards, > > L. > > > > > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > http://www.saout.de/mailman/listinfo/dm-crypt > -- Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F ---- Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans If it's in the news, don't worry about it. The very definition of "news" is "something that hardly ever happens." -- Bruce Schneier