-
Notifications
You must be signed in to change notification settings - Fork 26
Improve umount flow tolerance #163
Improve umount flow tolerance #163
Conversation
Review status: 0 of 3 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. remote/mounter/block_device_utils/fs.go, line 90 at r1 (raw file):
Is it wise to count on specific error messages to return as text? I suggest 2 other options, either check the return code or check if it is mounted before running unmount (or after). What if the error message will change? For example, on mac you get "not currently mounted" which does not match your regexp. Comments from Reviewable |
…vice is not exist
…or msg (based Ran comment)
Review status: 0 of 8 files reviewed at latest revision, 1 unresolved discussion. remote/mounter/block_device_utils/fs.go, line 90 at r1 (raw file): Previously, ranhrl (Ran Harel) wrote…
Comments from Reviewable |
Review status: 0 of 8 files reviewed at latest revision, 1 unresolved discussion. remote/mounter/block_device_utils/fs.go, line 90 at r1 (raw file): Previously, shay-berman wrote…
Looks good to me. The only philosophical question I have is do we want to check if the mount point exists before umount every time or just if umount fails. Since most of the times we do expect it to be mounted, it might be wiser, what do you think? Comments from Reviewable |
Review status: 0 of 8 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. remote/mounter/block_device_utils/fs.go, line 90 at r1 (raw file): Previously, ranhrl (Ran Harel) wrote…
you are killing me :-) I think i agree with you on that. Please tell lior\Tzur to apply this change if u want. I have no time for this now. Comments from Reviewable |
…e try to see if it's already unmounted
Review status: 0 of 8 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. Comments from Reviewable |
This change is