bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 8.0beta : missing umount at end of tests


From: Andreas Schwab
Subject: Re: 8.0beta : missing umount at end of tests
Date: Fri, 23 Oct 2009 20:10:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

"Gilles Espinasse" <address@hidden> writes:

> The problem could be shorten to
>> mount --bind /dev/shm/tmp10767 a/b
> ...
>> + umount /dev/shm/tmp10767
>> umount: /dev/shm/tmp10767: not mounted
>
> mount think a/b is mounted, not /dev/shm/tmp10767
>
>
> If that matter
> [chroot-i486] root:/usr/src/coreutils-8.0$ mount --version
> mount from util-linux-ng 2.16.1 (with libblkid support)
>
> [chroot-i486] root:/usr/src/coreutils-8.0$ ls -l /etc/mtab
> lrwxrwxrwx 1 root root 12 Oct 18 09:42 /etc/mtab -> /proc/mounts

/proc/mounts does not know that /dev/shm/tmp10767 is mounted, it only
knows that the filesystem containing /dev/shm/tmp10767 is mounted on
a/b.  That's one reason why linking /etc/mtab to /proc/mounts is a bad
idea, since the former still contains more information especially for
bind mounts.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]