From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Date: Tue, 12 Oct 2004 10:24:44 +0000 Subject: Re: [2.6.9-rc4] USB && mass-storage && disconnect broken semantics Message-Id: <200410121224.44910.oliver@neukum.org> List-Id: References: <20041011120701.GA824@outpost.ds9a.nl> <416B9436.3010902@andrew.cmu.edu> In-Reply-To: <416B9436.3010902@andrew.cmu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: James Bruce Cc: bert hubert , Greg KH , linux-hotplug-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org > With *nix, most data only gets written at unmount, so the only way this > can "sanely" work is for mounts you haven't written to. That case is of This is not a law of nature. You can mount sync as well. That, of course, sucks in terms of performance and wear. A reasonable compromise would be to do sync on close. Supermount did this years ago. > course not currently handled very well, but writing would be damn near > impossible to unmount well. In order to keep the device consistent, the > only thing you can do is wait for the user to reinsert the device and > then clear your caches. However they might have modified the storage in You cannot. That's giving mlock() to everybody. [..] > Automated mounting with special fixed names can already be done, this > has little to do with forced dismounting. Use something like udev for > this part. Exactly. [..] > All I ever expect the kernel to eventually support is forced dismount of > devices that haven't been written to. I think from there its up to Devices break. You have to cope with devices going away suddenly. You are not required to ensure data integrity in all cases, but the system must not suffer. To allow that you must be able to get rid of the mounts even if users do not cooperate. Regards Oliver ------------------------------------------------------- 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