From: bert hubert Date: Tue, 12 Oct 2004 05:54:18 +0000 Subject: Re: [2.6.9-rc4] USB && mass-storage && disconnect broken semantics Message-Id: <20041012055418.GA26074@outpost.ds9a.nl> List-Id: References: <20041011120701.GA824@outpost.ds9a.nl> <20041011153719.GA4118@vrfy.org> In-Reply-To: <20041011153719.GA4118@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Kay Sievers Cc: Greg KH , linux-hotplug-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org On Mon, Oct 11, 2004 at 05:37:19PM +0200, Kay Sievers wrote: > > The expected behaviour is that on forceably unplugging an USB memory stick, > > the created SCSI device should vanish, along with the mounts based on it. > > That is clearly bejond the scope of the kernel or hotplug. This policy > belongs to some other device management software. We are currently working on > HAL as one example, to make that happen. There is no way for userspace to do this. I thank you for your kneejerk 'it is a userspace problem' report though - somebody has to do it. Not very productive however. The kernel does not perform minimal services, and gets confused to boot. Now I'm all for offloading hotplug &c to userspace but when a device is gone, people expect the associated devices to vanish as well, not linger around generating invisible errors in dmesg. > Yes, we need to make the unplug of mounted devices more safe, especially > with sync mount, but don't expect the kernel or hotplug to do anything > like that. It's up to some policy software higher in the stack. Pray tell how I can do this from 'higher in the stack'. At least something needs to happen, because now there is the possibility of lingering devices, and I'm pretty sure we could get un-umountable mounts pointing there. Thanks. -- http://www.PowerDNS.com Open source, database driven DNS Software http://lartc.org Linux Advanced Routing & Traffic Control HOWTO ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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