Re: PROBLEM: umountfs and shutting down linux 2.3.99-pre5

From: Keith Owens (kaos@ocs.com.au)
Date: Sun Apr 23 2000 - 18:55:26 EST


On 23 Apr 2000 18:13:55 +0200,
"Juan J. Quintela" <quintela@fi.udc.es> wrote:
>>>>>> "hadmut" == Hadmut Danisch <hadmut@danisch.de> writes:
>
>hadmut> 1. Local filesystems not properly unmounted when halting a 2.3.99-pre5
>
>This problem has been solved (at least here) with the patch from Al
>Viro, they are included in 2.3.99-pre6-5 (and I am not sure if they
>are also included in 2.3.99-pre6-4).

Even with 2.3.99-pre6-5, file systems do not unmount correctly, it
turned out to be a user space problem. /etc/rc.d/init.d/halt (Redhat)
excludes some tasks from the kill list. Either devfs or shmfs changed
the filter criteria, with the old init.d/halt, the shutdown task gets
killed before it has a chance to do a clean unmount.

--- /etc/rc.d/init.d/halt.orig Tue Sep 21 04:42:10 1999
+++ /etc/rc.d/init.d/halt Mon Apr 24 09:47:39 2000
@@ -65,7 +65,7 @@
 # Unmount file systems, killing processes if we have to.
 sig=
 retry=3
-remaining=`awk '!/(^#|proc|^none|^\/dev\/root)/ {print $2}' /proc/mounts`
+remaining=`awk '!/(^#|proc|^none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts`
 while [ -n "$remaining" -a "$retry" -gt 0 ]
 do
         if [ "$retry" -lt 3 ]; then
@@ -74,7 +74,7 @@
                 runcmd "Unmounting file systems" umount -a -f -t noproc
         fi
         sleep 2
- remaining=`awk '!/(^#|proc|^none|^\/dev\/root)/ {print $2}' /proc/mounts`
+ remaining=`awk '!/(^#|proc|none|^\/dev\/root| \/ )/ {print $2}' /proc/mounts`
         [ -z "$remaining" ] && break
         /sbin/fuser -k -m $sig $remaining >/dev/null
         sleep 5

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



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:22 EST