Skip to content

Fix unmount error when unmounting below a bind mount point

movie0125 requested to merge movie0125/gparted:master into master

The test steps are as follows:

  1. Have a bind mount point,like this
# /dev/sda4
UUID=xxxx      /data           xfs             rw,relatime,attr2,inode64,sunit=128,swidth=256,noquota  0 2
/data/home /home none defaults,bind 0 0
  1. Mount the disk to the subdirectory of the bind mount point,mount /dev/sdb /home/test

  2. Open the GParted graphics tool and umount /dev/sdb

  3. An error message will be displayed:

#umount -v '/home/test'
umount: /home/test: not mounted.

In bind mode, the gparted tool displays two mount points: /data/home/test and /home/test.

During the unmounting, two mount points will be umount in a circular manner. After the first mount point is successfully unmounted, the second mount point fails to be unmounted.

Edited by Mike Fleetwood

Merge request reports