From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 16 Aug 2005 21:28:56 +0000 Subject: Re: +rule: query device inode by Major and Minor - am i inventing brand new bycicle ? Message-Id: <20050816212856.GA27757@kroah.com> List-Id: References: <4300318B.8040505@nm.ru> In-Reply-To: <4300318B.8040505@nm.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Aug 16, 2005 at 09:13:42PM +0400, Arioch wrote: > Kay Sievers ??????????: > > >What nodes exactly have the same major/minor? That setup may need to be > >fixed. > > Now i think that %M and %m macros are expanded somehow strangely: > > $ pwd > /dev/.lookup_by_numbers > > $for i in DUP/* ; do j=${i#*/}; h=${j%_*}; ls -l $h $i ; echo; done > > [... list skipped - there is longer and more detailed one below ...] > > > I was intrigued by duplicating of /dev/null. > Was this device created twice ??? > > > $ls -l ../ram3 ../nu* > crw-rw-rw- 1 root root 1, 3 ?????? 16 19:47 ../null > brw-rw---- 1 root disk 1, 3 ?????? 16 19:47 ../ram3 > > You see, it seems character and block devices with same major|minor can > easily co-exist! Of course they can. For further examples, see Documentation/devices.txt for all of the reserved major/minor numbers for character and block devices. Remember, character and block devices are totally separate "namespaces". The major/minor number is only unique within a character, or a block "namespace". thanks, greg k-h ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ 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