lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 5 Nov 2008 10:33:44 +0100
From:	Karel Zak <kzak@...hat.com>
To:	Andrey Borzenkov <arvidjaar@...l.ru>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: 2.6.28-rc3: kernel mounts the same device twice? Or
	/proc/mounts lies?

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@...hat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ