From owner-freebsd-stable Sat Jul 13 16: 2:14 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CED337B400 for ; Sat, 13 Jul 2002 16:02:12 -0700 (PDT) Received: from mail.soultwins.com (mail.soultwins.com [66.221.101.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 9E02443E5E for ; Sat, 13 Jul 2002 16:02:11 -0700 (PDT) (envelope-from yann@yann.us) Received: (qmail 26348 invoked from network); 13 Jul 2002 23:02:11 -0000 Received: from unknown (HELO yann) (63.103.152.39) by mail.soultwins.com with SMTP; 13 Jul 2002 23:02:11 -0000 From: "Yann Sommer" To: Subject: umount of a removed procfs? Date: Sat, 13 Jul 2002 17:58:45 -0500 Message-ID: <000501c22ac0$d847b260$5801a8c0@yann> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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