lkml.org 
[lkml]   [2002]   [Apr]   [26]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 26 Apr 2002 02:32:23 -0400 (EDT)
FromAlexander Viro <>
SubjectRe: 2.4.19-pre7: rootfs mounted twice

On Fri, 26 Apr 2002, Michael Dreher wrote:

> dreher@karpfen:~ > df
> Filesystem           1k-blocks      Used Available Use% Mounted on
> rootfs                 7060308   6276188    425472  94% /

df(1) is wrong.  There is (see /proc/mounts below) rootfs mounted as
root (ramfs, actually) and ext3 mounted over it.  df sees two entries
in /etc/mtab (on your box - /proc/mounts) with mountpoint "/" and
does statfs("/", &buf); for both.  Surprise, surprise, results of
two calls of statf2(2) are identical - what with arguments being
the same both times - and refer to the filesystem where your "/"
lives.  I.e. to ext3.

> /dev/root              7060308   6276188    425472  94% /
> /dev/hda4              3794936   3042316    559840  84% /home
> 
> dreher@karpfen:~ > cat /proc/mounts
> rootfs / rootfs rw 0 0
> /dev/root / ext3 rw,noatime,nodiratime 0 0
> proc /proc proc rw 0 0
> /dev/hda4 /home ext3 rw,noatime,nodiratime 0 0
> usbdevfs /proc/bus/usb usbdevfs rw 0 0
> devpts /dev/pts devpts rw 0 0


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:25    [W:1.834 / U:0.410 seconds]
©2003-2008 Jasper Spaans