public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: umount
@ 2005-11-29  2:13 Steve French
  0 siblings, 0 replies; 11+ messages in thread
From: Steve French @ 2005-11-29  2:13 UTC (permalink / raw)
  To: linux-kernel

> >>>> drive is unplugged without unmounting, it you
> >>>> get a pop up dialog on screen telling you that data may be lost, etc.
> >>>> while under any of the main environments I've tried under Linux
> >>>> (Gnome, KDE, fluxbox) there are no such messages to the user. 

I get somewhat similar feedback from users who would like to see more informative 
user notification when other types of "removeable media" e.g a network mount
are temporarily or permanently unavailable.   An interesting example which can be
quite damaging is the case of password expiration when a user is mounted from
two systems ... if the session to the server ever drops from the other machine the reconnection
retries on machine one (with the bad password) silently cause the account to be locked on the server
if the user changed his password from the second machine.   There is no particularly good way to
tell the user "your password is expired or changed and I can't reconnect you to the server to 
write out this file until you tell me what the right password is" without some integration 
with the desktop.

Obviously MacOS, OS/2, Windows etc. had a head start on this kind of usability, but it would
be nice to talk with the KDE or Gnome people about what their needs are in this area - 
another example which comes up from time to time is that KDE and Gnome have no way on Linux
to detect or represent an "offline" file (ie a file which is on some HSM, such as a slow tape) 
that looks different from other files when browsing around in the standard file managers 
(this would be easy enough to do by query xattrs as XFS and JFS apparently stored information along
these lines in xattrs at one point).  These kinds of files show up with a different icon in 
other desktops and it is important for some types of users to be able to tell which files or directories
are "slow" to retrieve (offline).


^ permalink raw reply	[flat|nested] 11+ messages in thread
* umount
@ 2005-11-27 21:54 Andries.Brouwer
  2005-11-28  0:45 ` umount Grant Coady
  0 siblings, 1 reply; 11+ messages in thread
From: Andries.Brouwer @ 2005-11-27 21:54 UTC (permalink / raw)
  To: linux-kernel

Recently I have seen cases where I/O to a device with bad media
was never noticed (except in the syslog). I think that is bad.
The application writes, but the stuff written lives in buffers.
The close() still does not force file I/O.
But the umount() causes the I/O to happen. Writes fail and the
syslog is full of messages. But the user does not see any messages,
the umount returns without error, and there is no reason to suspect
that anything is wrong.

I am not sure about the correct solution.
Perhaps umount should return -EIO if it did the umount but
I/O errors happened?

Andries


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-11-29  1:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-29  2:13 umount Steve French
  -- strict thread matches above, loose matches on Subject: below --
2005-11-27 21:54 umount Andries.Brouwer
2005-11-28  0:45 ` umount Grant Coady
2005-11-28  1:42   ` umount Mark Knecht
2005-11-28  2:01     ` umount Patrick McFarland
2005-11-28  7:15       ` umount Jim Crilly
2005-11-28 17:20         ` umount Mark Knecht
2005-11-28 17:51           ` umount linux-os (Dick Johnson)
2005-11-28 21:11             ` umount Bill Davidsen
2005-11-28 21:16               ` umount linux-os (Dick Johnson)
2005-11-29  0:11             ` umount Mark Knecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox