From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Sun, 09 Nov 2003 19:50:16 +0000 Subject: Re: Accessing device information in REMOVE agent Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sun, Nov 09, 2003 at 01:06:13PM +0300, Andrey Borzenkov wrote: > > I'd like to (try to) replace current synchronous media change checks in > supermount by mounting device on insert and releasing it on remove. For those > cases when it makes sense of course, USB sticks in the first place. > > But users are free to use any names or links for their device names i.e. they > can do > > ln -s sda /de/myflash > mount /dev/myflash > > and on remove it is rather hard to match this name against DEVPATH. But I can > save (major,minor) when mounting and use it to match mounted filesystem on > remove. You might want to look into what devlabel does, as it sounds like it does much the same thing of what you are wanting to do. Good luck, greg k-h ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ 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