Date: Sat, 13 Jul 2002 17:58:45 -0500 From: "Yann Sommer" <yann@yann.us> To: <stable@freebsd.org> Subject: umount of a removed procfs? Message-ID: <000501c22ac0$d847b260$5801a8c0@yann>
next in thread | raw e-mail | index | archive | help
Heya, After creating a jail, mounting it's /proc, and renaming it's directory structure in the host environment as follows: # mkdir -p /jails/a/proc # mount_procfs proc /jails/a/proc # mv /jails/a /jails/b ...the following happens: # mount |tail -n 1 procfs on /jails/a/proc (procfs, local) # umount -f /jails/a/proc umount: unmount of /jails/a/proc failed: No such file or directory # mkdir -p /jails/a/proc # umount -f /jails/a/proc umount: unmount of /jails/a/proc failed: Invalid argument # mount|tail -n 1 procfs on /jails/a/proc (procfs, local) There are currently only two ways known to me to remove the (now invalidly) mounted procfs, either by renaming the new structure to it's original, or by rebooting. Usually when using mv, a check is conducted for mount-points: # mv proc pro mv: cannot rename a mount point Apparently, this check does not traverse subdirectories, allowing the above bug(?) to occur. -yann yann@yann.us To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000501c22ac0$d847b260$5801a8c0>