View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017448 | CentOS-8 | -OTHER | public | 2020-06-11 13:49 | 2020-06-11 13:49 |
Reporter | Noord | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 8.1.1911 | ||||
Summary | 0017448: Mount --bind runs twice | ||||
Description | When running mount --bind /test /test2 it is listed one time in /proc/self/mountinfo but when running export total=0; for i in `lsns | grep mnt | awk -e '{print $4;}'`; do echo -en "PID: $i,\t# of mounts: "; echo -n `cat /proc/$i/mounts | wc -l`; echo -en ",\tcmdline: "; cat /proc/$i/cmdline; echo ""; done; i see that in the listed proc ids the mount is added twice if umount then both mounts are gone | ||||
Steps To Reproduce | mkdir /test /test2 mount --bind /test /test2 export total=0; for i in `lsns | grep mnt | awk -e '{print $4;}'`; do echo -en "PID: $i,\t# mounts: "; echo -n `cat /proc/$i/mounts | grep web1623`; echo -en ",\tcmdline: "; cat /proc/$i/cmdline; echo ""; done; | ||||
Additional Information | This is tested on multi centos 8 vps servers running on openvz7 | ||||
Tags | mount | ||||