Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2003 16:34:50 -0800
From:      Tim Kientzle <kientzle@acm.org>
To:        Robert Watson <rwatson@FreeBSD.ORG>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: umount of procfs fails
Message-ID:  <3E347EAA.8050409@acm.org>
References:  <Pine.NEB.3.96L.1030126163022.24134K-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Robert Watson wrote:

> First, could you
> identify the version of FreeBSD you're running?


This is on -CURRENT as of a few days ago.

> Second, can you include
> script output of the shell session in which you mount /proc, /mnt, run
> mount to confirm they are both mounted, then umount one, run mount to show
> the wrong one unmounted?


The following demonstrates the problem.
I've included a final 'ls' to show that
it's not just a reporting problem with 'mount';
the wrong filesystem is really getting unmounted.

big# /sbin/mount
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad0s1g on /home (ufs, local, acls)
/dev/ad0s1f on /tmp (ufs, local, soft-updates)
/dev/ad0s1h on /usr (ufs, local, soft-updates)
/dev/ad0s1e on /var (ufs, local, soft-updates)
big# /sbin/mount -t procfs proc /proc

big# /sbin/mount -t procfs proc /mnt
big# mount
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad0s1g on /home (ufs, local, acls)
/dev/ad0s1f on /tmp (ufs, local, soft-updates)
/dev/ad0s1h on /usr (ufs, local, soft-updates)
/dev/ad0s1e on /var (ufs, local, soft-updates)
procfs on /proc (procfs, local)
procfs on /mnt (procfs, local)
big# /sbin/umount /mnt
big# mount
/dev/ad0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/ad0s1g on /home (ufs, local, acls)
/dev/ad0s1f on /tmp (ufs, local, soft-updates)
/dev/ad0s1h on /usr (ufs, local, soft-updates)
/dev/ad0s1e on /var (ufs, local, soft-updates)
procfs on /mnt (procfs, local)
big# ls /proc
big# ls /mnt
0       1156    18      24      30      378     436     509     531     9
1       1173    19      25      31      38      44      520     532     curproc
10      12      2       26      32      39      441     521     537
11      13      20      27      33      4       444     522     6
1151    14      21      28      34      40      468     523     624
1153    15      22      280     35      41      470     524     625
1154    16      226     29      36      42      478     525     7
1155    17      23      3       37      43      5       529     8



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E347EAA.8050409>