Google luky.org euqset.org

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

the umount() saga for regular linux desktop users


Hi

I am a linux desktop user. I love linux and all the wonderfull 
open-source/free software that comes with it... blah, blah, blah :). The 
following comments and suggestions about umount() stem from personal 
experience and are meant as friendly feedback for all you clever people. (I 
wish I understook how the kernel works)

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.

In order to help solve this problem is it possible to modify the behaviour of 
the linux kernel.

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:

1) if the device containing the filesystem (for local filesystems) is no 
longer physicaly attached to the system: revoke all process access to the 
filesystem and umount. Notify umount that the filesystem was not cleanly 
umounted.

2) notify all processes attached to the filesystem that they must release 
control of it.

3) the processes may respond to the notifications and request time to clean up 
in order to read/write any remaining data.

4) processes that do not respond within a given time-frame should have their 
filesystem access revoked.

5) once all the clean up has finnished...  umount the filesystem.....

I am not subscribed to the list so please email me on wh@xxxxxxxxxxxxxx

Kind Regards
      William Heyland

the new "a umount() should NEVER fail" campaign launched by me on december the 
31 of 2004.  Just in time for new year ;-)

PS:  I am currently teaching myself about kernels in general and am hoping to 
start contributing to linux soon. But until then... if the kernel can't 
handle a umount() then nothing in userspace can do any better... rant, rant, 
rant, ...  make umount() smarter.... Please?
-
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: