Revision e687ec01 lib/backend.py
b/lib/backend.py | ||
---|---|---|
730 | 730 |
# we don't want to report such volumes as existing, since they |
731 | 731 |
# don't really hold data |
732 | 732 |
continue |
733 |
lvs[vg_name+"/"+name] = (size, inactive, online)
|
|
733 |
lvs[vg_name + "/" + name] = (size, inactive, online)
|
|
734 | 734 |
|
735 | 735 |
return lvs |
736 | 736 |
|
... | ... | |
2359 | 2359 |
config.set(constants.INISECT_INS, "nic%d_%s" % (nic_count, param), |
2360 | 2360 |
"%s" % nic.nicparams.get(param, None)) |
2361 | 2361 |
# TODO: redundant: on load can read nics until it doesn't exist |
2362 |
config.set(constants.INISECT_INS, "nic_count" , "%d" % nic_total)
|
|
2362 |
config.set(constants.INISECT_INS, "nic_count", "%d" % nic_total) |
|
2363 | 2363 |
|
2364 | 2364 |
disk_total = 0 |
2365 | 2365 |
for disk_count, disk in enumerate(snap_disks): |
... | ... | |
2372 | 2372 |
config.set(constants.INISECT_INS, "disk%d_size" % disk_count, |
2373 | 2373 |
("%d" % disk.size)) |
2374 | 2374 |
|
2375 |
config.set(constants.INISECT_INS, "disk_count" , "%d" % disk_total)
|
|
2375 |
config.set(constants.INISECT_INS, "disk_count", "%d" % disk_total) |
|
2376 | 2376 |
|
2377 | 2377 |
# New-style hypervisor/backend parameters |
2378 | 2378 |
|
... | ... | |
3378 | 3378 |
else: |
3379 | 3379 |
_Fail("Unknown hooks phase '%s'", phase) |
3380 | 3380 |
|
3381 |
|
|
3382 | 3381 |
subdir = "%s-%s.d" % (hpath, suffix) |
3383 | 3382 |
dir_name = utils.PathJoin(self._BASE_DIR, subdir) |
3384 | 3383 |
|
Also available in: Unified diff