This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/lvm: add flock-based lock around any lvm invocations
- Loading branch information
Does it makes sense to perform some sanity checks here? We could check that we can actually pull this lock (at least now) to exclude cases like
filepath=/foo/bar.lock
and/foo
not existing. I also wonder whether we should require an absolute path to prevent users from creating potentially useless locks in the working directory of just thiscsilvm
instance.