tag 578856 confirmed
thanks

Rob Walker wrote:
> Here's the results of the commands you requested:
> 
> [...@makalu ~]$  df -P --type=ext2 --type=ext3 --type=ext4 --type=xfs
> Filesystem         1024-blocks      Used Available Capacity Mounted on
> /dev/sda1            307663800 229912116  74626000      76% /mnt/disk
> /dev/sda1            307663800 229912116  74626000      76% /srv
> /dev/sda1            307663800 229912116  74626000      76% /usr
> /dev/sda1            307663800 229912116  74626000      76% /var
> 
> [...@makalu ~]$ grep '/mnt' /proc/mounts
> /dev/sda1 /mnt/disk ext3 rw,noatime,errors=continue,data=writeback 0 0
> 
> But /proc/mounts also contains:
> /dev/sda1 /srv ext3 rw,noatime,errors=continue,data=writeback 0 0
> /dev/sda1 /usr ext3 rw,noatime,errors=continue,data=writeback 0 0
> /dev/sda1 /var ext3 rw,noatime,errors=continue,data=writeback 0 0
> 
> So there's no distinction between the real mount and the bind mount....

Indeed, that is weird. I speculate that df's output can be traced back
to this. I don't know how I missed this during testing...

I'll use /etc/mtab instead, and it clearly shows bind mounts as bind
mount. There is the possibility of /etc/mtab not being up-to-date (eg.
mount -n), but there's really nothing we can do about this.


Thanks
Christian

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to