Re: [PATCH] Add me_mountroot to mount_entry for linux machines

2015-08-28 Thread Pádraig Brady
On 28/08/15 21:41, Dave Chiluk wrote: > Add me_mountroot to mount_entry so linux machines based on > /proc/self/mountinfo can distinguish between bind mounts and original > mounts. In reality bind mounts aren't treated any different than > mountroot=/ mounts by the kernel, but this is still confusi

[PATCH] Add me_mountroot to mount_entry for linux machines

2015-08-28 Thread Dave Chiluk
Add me_mountroot to mount_entry so linux machines based on /proc/self/mountinfo can distinguish between bind mounts and original mounts. In reality bind mounts aren't treated any different than mountroot=/ mounts by the kernel, but this is still confusing to the user, and a change in behavior More

df prioritizes some bind mounts over root ones.

2015-08-28 Thread Dave Chiluk
With the recent move to /proc/self/mountinfo `df` now returns bind mounts instead of the original mount when the directory being bound to is shorter than the original mount destination. For example: * $ mount 192.168.1.2:/raid on /raid type nfs /dev/sdc5 on /data type ext4 (rw) $ mount -o bind