Re: [PATCH] close windows on unmount
- From: Ryan McDougall <ryan mcdougall telusplanet net>
- To: alexl redhat com
- Cc: Nautilus <nautilus-list gnome org>
- Subject: Re: [PATCH] close windows on unmount
- Date: Mon, 15 Mar 2004 22:52:48 -0700
On Mon, 2004-03-15 at 15:44 +0100, Alexander Larsson wrote:
> On Sat, 2004-03-13 at 04:27, Ryan McDougall wrote:
> > On Fri, 2004-03-12 at 09:50 +0100, Alexander Larsson wrote:
> > >
> > > And practically, how would you implement this on a unix machine?
> > Perhaps this is the point where you realize I'm in over my head,.
> > However, I do *not* suggest that we somehow change UNIX, rather I think
> > there is some place above the kernel/FS layer where this can be
> > implemented, specifically gnome-vfs.
> > I'm sorry I can't be more help, since I am unfamiliar with how nautilus
> > currently handles OS level things such as file descriptors.
> The reason i ask is because i know of no way to implement it. Nautilus
> handles file descriptors like any other unix app. Is there different
> ways to handle them?
I can't speak about how this are done (since my Unix skills are still
developing), but I can prattle on about how they should work. ;)
Frankly, if automount can't express transient data storage adequately
with traditional Unix semantics, then it deserves to go the way of the
Dodo. With USB keys, cameras, etc. becoming very common, in addition to
the networked file systems we've had for a while, one needs a more
flexible way of handling such devices. Thus we have sysfs, HAL, dbus,
etc coming down the pipe; which is probably the long term solution.
As for what *I* would decide if it was *me* making the decision and
can't wait for more sophistication at the kernel level: Assume every
volume is transient -- the ground beneath you is always moving.
Nautilus should always remain open, but should never prevent unmounts.
If a FS is unmounted underneath an open window, the window should be
shaded grayish to notify the user something is wrong. If the user clicks
on an object of the FS, Nautilus states that its has lost the
"connection" to the FS, and offers to re-mount it. If it fails to re-
mount the FS, say because the user doesn't have permission to mount that
volume, *then* Nautilus finally closes the window.
What do you think? Does it cover all cases? It shouldn't prevent
floppies from unmounting, it should allow automount to work properly,
and its fairly general to any transient FS.
] [Thread Prev