| Trees | Indices | Help |
|
|---|
|
|
|
|||
|
|||
|
|||
|
|||
| Integer |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
HARDLINK_FD = -2
|
|||
_quiet = False
|
|||
Imports: errno, os, stat, time, types, DirectoryNotFound, FileNotFound, InvalidData, TryAgain, portage_gid, writemsg, _
|
|||
Creates all dirs upto, the given dir. Creates a lockfile for the given directory as the file: directoryname+'.portage_lockfile'. |
|
Does the NFS, hardlink shuffle to ensure locking on the disk. We create a PRIVATE lockfile, that is just a placeholder on the disk. Then we HARDLINK the real lockfile to that private file. If our file can 2 references, then we have the lock. :) Otherwise we lather, rise, and repeat. We default to a 4 hour timeout. |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Sep 10 22:59:00 2008 | http://epydoc.sourceforge.net |