Revision 6b0d45b7
b/lib/constants.py | ||
---|---|---|
1479 | 1479 |
|
1480 | 1480 |
MAX_UDP_DATA_SIZE = _constants.MAX_UDP_DATA_SIZE |
1481 | 1481 |
|
1482 |
# User-id pool minimum/maximum acceptable user-ids. |
|
1483 |
UIDPOOL_UID_MIN = 0 |
|
1484 |
UIDPOOL_UID_MAX = 2 ** 32 - 1 # Assuming 32 bit user-ids |
|
1482 |
UIDPOOL_UID_MIN = _constants.UIDPOOL_UID_MIN |
|
1483 |
UIDPOOL_UID_MAX = _constants.UIDPOOL_UID_MAX |
|
1485 | 1484 |
|
1486 | 1485 |
# Name or path of the pgrep command |
1487 | 1486 |
PGREP = "pgrep" |
b/src/Ganeti/HsConstants.hs | ||
---|---|---|
1 |
{-# OPTIONS -fno-warn-type-defaults #-} |
|
1 | 2 |
{-| HsConstants contains the Haskell constants |
2 | 3 |
|
3 | 4 |
This is a transitional module complementary to 'Ganeti.Constants'. It |
... | ... | |
3622 | 3623 |
maxUdpDataSize :: Int |
3623 | 3624 |
maxUdpDataSize = 61440 |
3624 | 3625 |
|
3626 |
-- * User-id pool minimum/maximum acceptable user-ids |
|
3627 |
|
|
3628 |
uidpoolUidMin :: Int |
|
3629 |
uidpoolUidMin = 0 |
|
3630 |
|
|
3631 |
-- | Assuming 32 bit user-ids |
|
3632 |
uidpoolUidMax :: Integer |
|
3633 |
uidpoolUidMax = 2 ^ 32 - 1 |
|
3634 |
|
|
3625 | 3635 |
-- * Possible values for NodeGroup.alloc_policy |
3626 | 3636 |
|
3627 | 3637 |
allocPolicyLastResort :: String |
b/src/Ganeti/PyValueInstances.hs | ||
---|---|---|
42 | 42 |
|
43 | 43 |
instance PyValue Bool |
44 | 44 |
instance PyValue Int |
45 |
instance PyValue Integer |
|
45 | 46 |
instance PyValue Double |
46 | 47 |
instance PyValue Char |
47 | 48 |
|
Also available in: Unified diff