Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProbeMountLock ¶
ProbeMountLock tests whether a mount lock is currently held without acquiring it. Returns busy=true when another process holds the lock. The returned pid is best-effort (read from the lock file content) and may be 0.
Types ¶
type FileLock ¶
type FileLock struct {
// contains filtered or unexported fields
}
FileLock is a POSIX advisory file lock held via flock(2).
func AcquireMountLock ¶
AcquireMountLock acquires one of the v1 locks for a mount (daemon.lock or job.lock).
Click to show internal directories.
Click to hide internal directories.