Revision 77b0d264
b/lib/cmdlib/instance.py | ||
---|---|---|
408 | 408 |
if (not self.op.file_driver and |
409 | 409 |
self.op.disk_template in [constants.DT_FILE, |
410 | 410 |
constants.DT_SHARED_FILE]): |
411 |
self.op.file_driver = constants.FD_LOOP
|
|
411 |
self.op.file_driver = constants.FD_DEFAULT
|
|
412 | 412 |
|
413 | 413 |
if self.op.disk_template == constants.DT_FILE: |
414 | 414 |
opcodes.RequireFileStorage() |
b/lib/constants.py | ||
---|---|---|
615 | 615 |
# file backend driver |
616 | 616 |
FD_LOOP = "loop" |
617 | 617 |
FD_BLKTAP = "blktap" |
618 |
FD_DEFAULT = FD_LOOP |
|
618 | 619 |
|
619 | 620 |
# the set of drbd-like disk types |
620 | 621 |
LDS_DRBD = compat.UniqueFrozenset([LD_DRBD8]) |
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