]> git.pld-linux.org Git - packages/nfs-utils.git/commitdiff
- limit retries on unmount
authorankry <ankry@pld-linux.org>
Thu, 12 Feb 2004 09:38:00 +0000 (09:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nfsfs.init -> 1.16

nfsfs.init

index 30c3ed51902253b84b5494497473160eb0ff14e2..68bc4d981df0e27ab313e2d31c0f0504b158ab4d 100644 (file)
@@ -52,13 +52,15 @@ case "$1" in
 
        show "Unmounting NFS filesystems"
        busy
+       retry=3
        remaining=$(awk '$3 == "nfs" {print $2}' $fsfile)
-       while [ -n "$remaining" -a 3 -gt 0 ]; do
+       while [ -n "$remaining" -a $retry -gt 0 ]; do
                fuser -msk -TERM `awk '$3 == "nfs" {print $2}' < $fsfile`
                sleep 2
                fuser -msk -KILL `awk '$3 == "nfs" {print $2}' < $fsfile`
                umount -a -f -t nfs
                remaining=$(awk '$3 == "nfs" {print $2}' $fsfile)
+               retry=$(($retry-1))
        done
        ok
        rm -f /var/lock/subsys/nfsfs
This page took 0.085542 seconds and 4 git commands to generate.