Package ganeti :: Package utils :: Module filelock
[hide private]
[frames] | no frames]

Module filelock

source code

Utility functions for file-based locks.

Classes [hide private]
  FileLock
Utility class for file locks.
Functions [hide private]
 
LockFile(fd)
Locks a file using POSIX locks.
source code

Imports: fcntl, errno, os, logging, errors, retry


Function Details [hide private]

LockFile(fd)

source code 

Locks a file using POSIX locks.

Parameters:
  • fd (int) - the file descriptor we need to lock