Re: Bind mounts record fstype of none

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

 



> On October 30, 2013 at 4:59 PM Phillip Susi <psusi@xxxxxxxxxx> wrote:
> > On 10/30/2013 11:39 AM, Bernhard Voelker wrote:
> > yes, df(1) is from coreutils. ;-)
> >
> > However, latest df(1) will skip such bind mounts per default - but
> > now because of some 'bind' information (which is not available

typo: s/now/not/, of course.

> > anyway), but just because it skips "duplicates" based on the
> > device numbers. For the same device number, it will output that
> > with the shortest mount point name. You have to use -a to see all.
>
> So is mount wrong for recording the filesystem type as 'none' or not?

Where do you see 'none'?

$ df /home
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sdb        10321208 1233056   8563864  13% /home

$ mkdir /tmp/home

$ mount -o bind /home /tmp/home

$ df -a | grep home
/dev/sdb        10321208 1233056   8563864  13% /home
/dev/sdb        10321208 1233056   8563864  13% /tmp/home

$ mount | grep home
/dev/sdb on /home type ext4 (rw,relatime,data=ordered)
/dev/sdb on /tmp/home type ext4 (rw,relatime,data=ordered)

$ grep home /proc/mounts /proc/self/mountinfo /proc/self/mounts
/proc/mounts:/dev/sdb /home ext4 rw,relatime,data=ordered 0 0
/proc/mounts:/dev/sdb /tmp/home ext4 rw,relatime,data=ordered 0 0
/proc/self/mountinfo:40 21 8:16 / /home rw,relatime shared:24 - ext4 /dev/sdb
rw,data=ordered
/proc/self/mountinfo:109 21 8:16 / /tmp/home rw,relatime shared:24 - ext4
/dev/sdb rw,data=ordered
/proc/self/mounts:/dev/sdb /home ext4 rw,relatime,data=ordered 0 0
/proc/self/mounts:/dev/sdb /tmp/home ext4 rw,relatime,data=ordered 0 0

[That was on kernel 3.7.10 of openSUSE-12.3,
mount/df built from {util-linux,coreutils}.git]

Have a nice day,
Berny
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux