From: Karel Zak <kzak@redhat.com>
To: Andrey Borzenkov <arvidjaar@mail.ru>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.28-rc3: kernel mounts the same device twice? Or /proc/mounts lies?
Date: Wed, 5 Nov 2008 10:33:44 +0100 [thread overview]
Message-ID: <20081105093344.GA7791@nb.net.home> (raw)
In-Reply-To: <200811041213.07717.arvidjaar@mail.ru>
On Tue, Nov 04, 2008 at 12:13:07PM +0300, Andrey Borzenkov wrote:
> And according to /proc/mounts both are mounted at the same time:
>
> {pts/0}% cat /proc/mounts
> rootfs / rootfs rw 0 0
> /dev/root / reiserfs rw 0 0
> /dev /dev tmpfs rw 0 0
> /proc /proc proc rw 0 0
> /sys /sys sysfs rw 0 0
> /proc/bus/usb /proc/bus/usb usbfs rw,devgid=43,devmode=664 0 0
> none /dev/pts devpts rw,mode=620 0 0
> none /dev/shm tmpfs rw 0 0
> none /tmp tmpfs rw 0 0
> none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
> /dev/sda2 /media/hd reiserfs rw 0 0
> {pts/0}% ll /dev/root
> brw------- 1 root root 8, 2 2008-11-04 12:01 /dev/root
> {pts/0}% ll /dev/sda2
> brw-rw---- 1 root disk 8, 2 2008-11-04 12:01 /dev/sda2
>
> Bug or feature?
Feature. This is typical FAQ-like question.
# mount /dev/sda2 /mnt/test
# mount /dev/sda2 /mnt/test2
# df | grep sda2
/dev/sda2 14877092 168740 13940448 2% /mnt/test
/dev/sda2 14877092 168740 13940448 2% /mnt/test2
Karel
--
Karel Zak <kzak@redhat.com>
prev parent reply other threads:[~2008-11-05 9:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-04 9:13 Andrey Borzenkov
2008-11-05 9:05 ` Alexey Dobriyan
2008-11-05 9:33 ` Karel Zak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081105093344.GA7791@nb.net.home \
--to=kzak@redhat.com \
--cc=arvidjaar@mail.ru \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®