You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address PR feedback: proper exit codes and error classification for mount lock
- Add TryAcquireLock(out Exception) to FileBasedLock so callers can
pattern-match on exception type to distinguish lock contention
(IOException/sharing violation) from permission or I/O errors.
- Replace bare return with FailMountAndExit() when lock acquisition
fails, so the process exits with a non-zero exit code.
- Add ReturnCode.MountAlreadyRunning (8) for the lock contention case,
keeping GenericError (3) for unexpected lock failures.
- Add FailMountAndExit(ReturnCode, ...) overload to support per-call
exit codes while preserving existing callers.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments