Google luky.org euqset.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: the umount() saga for regular linux desktop users


On Friday 31 December 2004 12:48, Ush wrote:
>On Fri, 31 Dec 2004 17:41:02 +0000, William <wh@xxxxxxxxxxxxxx> 
wrote:
>> Regularly, when attempting to umount() a filesystem I receive
>> 'device is busy' errors. The only way (that I have found) to solve
>> these problems is to go on a journey into processland and kill all
>> the guilty ones that have tied themselves to the filesystem
>> concerned.
>
>Even a lazy umount doesn't work?  "umount -l <filesystem-name>"
>
>> In my opinion, in order for linux to be trully user friendly, "a
>> umount() should NEVER fail" (even if the device containing the
>> filesystem is no longuer attached to the system). The kernel
>> should do it's best to satisfy the umount request and cleanup.
>> Maybe the kernel could try some of the following:
>
>Would it be user-friendly if this forcible umount caused the user to
> lose data?

No, it wouldn't be user friendly, but it would sure be user 
educational when he asked why his resume dissappeared.

Let me toss this out for discussion.

There are some times when the usual 5 second flush schedule should be 
tossed out the window, and the data written immediately.  A quickly 
unpluggable usb memory dongle is a prime candidate to bite the user 
precisely where it hurts.  Floppies also fit this same scenario, I 
don't know at the times I've written an image with dd, got up out of 
my chair and went to the machine and slapped the eject button to 
discover to my horror, that when my hand came away from the button 
with disk in hand, the frigging access led was now on that wasn't 
when I tapped the button.

Usually just re-inserting the disk allows the write to continue and 
nothing is lost.  But I've learned to do a couple of sync's and the 
umount before pulling the disk.  But theres a whole lot more protocol 
to doing that with a usb device.

Thats one of the things that could be done to improve the user 
friendliness of linux.  Really Old Hands are used to those limits, 
but newbies just coming in from the dark side are not impressed when 
its something like that as nearly their first exposure to linux.

>Oisin
>-
>To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.31% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


$B$3$N>pJs$,$"$J$?$NC5$7$F$$?$b$N$+$I$&$+A*Br$7$F$/$@$5$!#(B
yes/$B$^$5$K$3$l$@!*(B   no/$B0c$&$J$!(B   part/$B0lIt8+$D$+$C$?(B   try/$B$3$l$G;n$7$F$_$k(B

$B$"$J$?$,C5$7$F$$?>pJs$O$I$N$h$&$J$3$H$+!"$4<+M3$K5-F~2<$5$!#FC$K!V$^$5$K$3$l$@!*!W$H8@$&>l9g$O5-F~$r$*4j$$7$^$9!#(B
$BNc(B:$B!VJ#?t$N%^%7%s$+$i(BCATV$B7PM3$G(Bipmasquerade$B$rMxMQ$7$F(BWeb$B$r;2>H$7$?$>l9g$N@_Dj$K$D$$F!W(B
Follow-Ups: References: