mount and /proc/mounts disagrees
3.8.0+ #3
This happened after 'umount /btrfs' was interrupted by ctl-C
# mount | egrep btrfs /dev/mapper/mpathe on /btrfs type btrfs (rw,degraded)
# cat /etc/mtab | egrep btrfs /dev/mapper/mpathe /btrfs btrfs rw,degraded 0 0
# cat /proc/mounts | egrep btrfs # umount /btrfs umount: /btrfs: not mounted #
-Anand
Quoted 8 lines · anand jain
3.8.0+ #3
This happened after 'umount /btrfs' was interrupted by ctl-C
# mount | egrep btrfs /dev/mapper/mpathe on /btrfs type btrfs (rw,degraded)
Quoted 8 lines
# cat /etc/mtab | egrep btrfs /dev/mapper/mpathe /btrfs btrfs rw,degraded 0 0# cat /proc/mounts | egrep btrfs # umount /btrfs umount: /btrfs: not mounted #
That's because your mount still uses /etc/mtab for some reason, I thought it had stopped doing that and was using /proc/mounts? Anyway it's just because the entry made it into mtab, if umount and /proc/mounts says its not there then its not there. Thanks,
Josef