Revision 77b0d264 lib/objects.py
b/lib/objects.py | ||
---|---|---|
831 | 831 |
self.params = {} |
832 | 832 |
# add here config upgrade for this disk |
833 | 833 |
|
834 |
# If the file driver is empty, fill it up with the default value |
|
835 |
if self.dev_type == constants.LD_FILE and self.physical_id[0] is None: |
|
836 |
self.physical_id[0] = constants.FD_DEFAULT |
|
837 |
|
|
834 | 838 |
@staticmethod |
835 | 839 |
def ComputeLDParams(disk_template, disk_params): |
836 | 840 |
"""Computes Logical Disk parameters from Disk Template parameters. |
Also available in: Unified diff