Bug 10546 - umount block device always unmount block device mounted on top
Summary: umount block device always unmount block device mounted on top
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.26.x
Hardware: All Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-05 15:22 UTC by sven
Modified: 2017-12-05 15:22 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sven 2017-12-05 15:22:53 UTC
If I mount multiple block devices on the same mountpoint and try to unmount on of the block devices not on top, busybox unmount the top block device and return 0.

$ busybox mount /dev/sdb1 /mnt                                                                                                                                      
$ busybox mount /dev/sdb2 /mnt                                                                                                                                       
$ busybox mount | grep ^/dev/sdb                                                                                                                                     
/dev/sdb1 on /mnt type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048)
/dev/sdb2 on /mnt type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
$ busybox umount /dev/sdb1                                                                                                                                           
$ busybox mount | grep ^/dev/sdb                                                                                                                                     
/dev/sdb1 on /mnt type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048)