Purpose of this code: default linux mount doesn't checks if binded mount became broken. It can happen when mounted dir was removed and created again: bind is based on inode numbers, that will be changed for recreated dir, and bind will break silently. One should find and remount all bind mounts because of this. Script is reading content from /etc/mtab and for every mount with bind method checks that inodes of mounted dir and mount point are the same. If they're not, it does umount and mount dirs again.
-
Notifications
You must be signed in to change notification settings - Fork 0
paleale/fix-bind
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published