当我们执行此操作时(在linux 7.x上)umount: /grop/sdc: target is busy.useful info about processes that use我们可以看到,坐骑在繁忙的时候失败了重新挂载是否使用类似( umount -l )的选项?remount与umount/m
具体来说,我有一个脚本可以这样做:mount b ymount c zumount zumounty任何一个挂载,加上do_something本身,都可能失败。“命令,它就会在退出、传递或失败时(按相反顺序)执行该命令--但是没有成功设置的东西不会被清理掉(因为如果安装失败,清理可能不安全)。或者换个说法,如果一切都成功了,那么它就会按照这个顺序执行umo
man umount2说:
MNT\_EXPIRE (since Linux 2.6.8) Mark the mount point as expired.If a mount point is not currently in use, then an initial call to umount2() with thisA second umount2() call specifying MNT\_EXPIRE unmounts an expired moun