Statistics
| Branch: | Tag: | Revision:

root / lib @ 1d3dfa29

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.2 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
1d3dfa29 06/14/2010 07:57 pm Michael Hanselmann

import/export daemon: Add support for a magic prefix

This “magic” value will be used to ensure that we don't accidentially
connect to the wrong daemon (e.g. due to a bug), comparable to DRBD's
per-disk secret. Just depending on the SSL certificate isn't enough...

fbb6b864 06/14/2010 07:56 pm Michael Hanselmann

import/export daemon: Simplify command building

Instead of appending strings, stage parts in a list. Building the "dd"
command is moved to a separate function.

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

0559f745 06/14/2010 07:56 pm Michael Hanselmann

import/export: Limit max length of socat options

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

acd65a16 06/14/2010 07:56 pm Michael Hanselmann

import/export: Validate remote host/port

The hostname and port received from the remote cluster should
be validated, just in case.

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

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:...

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 <>

View revisions

Also available in: Atom