Closed shay-berman closed 6 years ago
Review status: 0 of 7 files reviewed at latest revision, all discussions resolved.
Comments from Reviewable
Review status: all files reviewed at latest revision, all discussions resolved.
Comments from Reviewable
This PR is for fixing a bug that @danare found in PR #196 (internal issue UB-1230).
Flex mount CLI must prevent mounting a device if the mountpoint is already in used by other device, in order to prevent double mounting on the same directory.
So this PR fix it and check during the mount flow if the given mountpoint is already in-used (already mounted by other device). If its already mounted to a different device, then error will be raised "[%s] directory is already a mountpoint but to unexpected devices=%#v (expected mountpoint only on device=[%s])"
How to test:
This change is