Statistics
| Branch: | Tag: | Revision:

root / lib @ 28f34048

Name Size
  build
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
__init__.py 820 Bytes
asyncnotifier.py 5.1 kB
backend.py 94.2 kB
bdev.py 63.5 kB
bootstrap.py 22.7 kB
cli.py 75.3 kB
cmdlib.py 349 kB
compat.py 3.8 kB
config.py 48.2 kB
constants.py 25.3 kB
daemon.py 18.5 kB
errors.py 8.6 kB
jqueue.py 42 kB
jstore.py 3.6 kB
locking.py 39.9 kB
luxi.py 13.3 kB
mcpu.py 20.3 kB
objects.py 31.7 kB
opcodes.py 20.7 kB
rpc.py 41.1 kB
serializer.py 4.5 kB
ssconf.py 14.1 kB
ssh.py 7.9 kB
storage.py 12.5 kB
uidpool.py 11.8 kB
utils.py 105.6 kB
workerpool.py 8.9 kB

Latest revisions

# Date Author Comment
28f34048 06/14/2010 07:56 pm Michael Hanselmann

utils: Add function to validate service name

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Guido Trotter <>

560cbec1 06/14/2010 07:55 pm Michael Hanselmann

Handle ESRCH when sending signals

Upon sending signals, ESRCH can be reported when the target no
longer exists.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Guido Trotter <>

20571a26 06/11/2010 07:06 pm Guido Trotter

Cache a few bits of status in jqueue

Currently each time we submit a job we check the job queue size, and the
drained file. With this change we keep these pieces of information in
memory and don't read them from the filesystem each time.

Significant changes include:...

57d56130 06/11/2010 05:06 pm Guido Trotter

ListVisibleFiles: do optional sorting

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

c910bccb 06/11/2010 05:06 pm Guido Trotter

Fix a TODO in _QueuedJob

Rather than raising Exception use GenericError and explain a bit better
what happened.

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

69b03fd7 06/11/2010 05:06 pm Guido Trotter

Remove unused parameter from function

This also removes the relevant pylint disable.
No point in keeping unused parameters around: if/when we need them it's
easy to add it back.

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

85a1c57d 06/11/2010 05:06 pm Guido Trotter

Optimize _GetJobIDsUnlocked

Currently we sort the list of job queue files twice (once in
utils.ListVisibleFiles with sort and then later with NiceSort). We apply
the _RE_JOB_FILE regular expression twice (once in _ListJobFiles and
once in _ExtractJobID). This simplifies the code a little, and a couple...

a71f9c7d 06/11/2010 05:06 pm Guido Trotter

jqueue: Rename _queue_lock to _queue_filelock

The name clarifies the difference between this and the internal lock.
Also explain a bit better what it is.

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

6358dbc2 06/11/2010 05:06 pm Guido Trotter

jstore._ReadNumericFile: use utils.ReadFile

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

cdf158a8 06/11/2010 12:23 pm Guido Trotter

Remove locking._CountingCondition

This class is unused and untested. We must have forgot it around.

Signed-off-by: Guido Trotter <>
Reviewed-by: Michael Hanselmann <>

View revisions

Also available in: Atom