Activity log for bug #145523

Date Who What changed Old value New value Message
2007-09-27 10:06:49 SurJector bug added bug
2007-09-27 10:08:23 SurJector bug added attachment 'umountnfs-ubuntu.diff' (umountnfs-ubuntu.diff)
2007-09-27 10:09:36 SurJector description Binary package hint: initscripts When umounting NFS (or networked filesystem) dirs, other "dependent dirs" have to be unmounted as well. This includes all the dirs below an NFS dir and all dirs which are loops over files which are mounted below an NFS dir. The following patch attempts to correct somewhat the situation. It is not perfect because losetup does not show the complete filename of a loop device, but the filename that was indicated to the kernel at loop creation. (sorry for the borked patch, but I don't know how to attach) ----------------------------------------------- *** /etc/init.d/umountnfs.sh.orig 2007-09-27 11:18:53.000000000 +0200 --- /etc/init.d/umountnfs.sh 2007-09-27 11:31:12.000000000 +0200 *************** *** 59,64 **** --- 59,89 ---- proc|procfs|linprocfs|devfs|devpts|usbfs|usbdevfs|sysfs) DIRS="$MTPT $DIRS" ;; + *) + # + # We must unmount all dirs that are below NFS dirs + # and those that are loops of files on NFS dirs + # + loopfile="" + case "$DEV" in + /dev/loop*) + loopfile="`losetup $DEV|cut -f2- -d\(|sed s/\)$//`" + ;; + esac + for d in $DIRS + do + case "$loopfile" in + $d/*) + DIRS="$MTPT $DIRS" + ;; + esac + case "MTPT" in + $d/*) + DIRS="$MTPT $DIRS" + ;; + esac + done + ;; esac done Binary package hint: initscripts When umounting NFS (or networked filesystem) dirs, other "dependent dirs" have to be unmounted as well. This includes all the dirs below an NFS dir and all dirs which are loops over files which are mounted below an NFS dir. The following patch attempts to correct somewhat the situation. It is not perfect because losetup does not show the complete filename of a loop device, but the filename that was indicated to the kernel at loop creation.
2009-05-31 09:33:42 xteejx sysvinit (Ubuntu): importance Undecided Wishlist
2009-05-31 22:24:55 xteejx sysvinit (Ubuntu): status New Confirmed
2010-01-10 20:15:31 xteejx removed subscriber Teej
2011-06-05 08:45:43 Toni Spets bug added subscriber Toni Spets