Revision c41eea6e lib/backend.py
b/lib/backend.py | ||
---|---|---|
279 | 279 |
from the cluster. |
280 | 280 |
|
281 | 281 |
If processing is successful, then it raises an |
282 |
L{errors.GanetiQuitException} which is used as a special case to
|
|
282 |
L{errors.QuitGanetiException} which is used as a special case to
|
|
283 | 283 |
shutdown the node daemon. |
284 | 284 |
|
285 | 285 |
""" |
... | ... | |
970 | 970 |
|
971 | 971 |
@note: This is intended to be called recursively. |
972 | 972 |
|
973 |
@type disk: L{objects.disk}
|
|
973 |
@type disk: L{objects.Disk}
|
|
974 | 974 |
@param disk: the disk object we should remove |
975 | 975 |
@rtype: boolean |
976 | 976 |
@return: the success of the operation |
... | ... | |
1069 | 1069 |
def ShutdownBlockDevice(disk): |
1070 | 1070 |
"""Shut down a block device. |
1071 | 1071 |
|
1072 |
First, if the device is assembled (can L{Attach()}), then the device |
|
1073 |
is shutdown. Then the children of the device are shutdown. |
|
1072 |
First, if the device is assembled (Attach() is successfull), then |
|
1073 |
the device is shutdown. Then the children of the device are |
|
1074 |
shutdown. |
|
1074 | 1075 |
|
1075 | 1076 |
This function is called recursively. Note that we don't cache the |
1076 | 1077 |
children or such, as oppossed to assemble, shutdown of different |
... | ... | |
1161 | 1162 |
@rtype: disk |
1162 | 1163 |
@return: |
1163 | 1164 |
a list of (mirror_done, estimated_time) tuples, which |
1164 |
are the result of L{bdev.BlockDevice.CombinedSyncStatus}
|
|
1165 |
are the result of L{bdev.BlockDev.CombinedSyncStatus} |
|
1165 | 1166 |
@raise errors.BlockDeviceError: if any of the disks cannot be |
1166 | 1167 |
found |
1167 | 1168 |
|
... | ... | |
1981 | 1982 |
def JobQueueRename(old, new): |
1982 | 1983 |
"""Renames a job queue file. |
1983 | 1984 |
|
1984 |
This is just a wrapper over L{os.rename} with proper checking.
|
|
1985 |
This is just a wrapper over os.rename with proper checking.
|
|
1985 | 1986 |
|
1986 | 1987 |
@type old: str |
1987 | 1988 |
@param old: the old (actual) file name |
... | ... | |
2305 | 2306 |
node nor not |
2306 | 2307 |
@type iv_name: str |
2307 | 2308 |
@param iv_name: the instance-visible name of the |
2308 |
device, as in L{objects.Disk.iv_name}
|
|
2309 |
device, as in objects.Disk.iv_name
|
|
2309 | 2310 |
|
2310 | 2311 |
@rtype: None |
2311 | 2312 |
|
Also available in: Unified diff