Revision c914b39f lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
1149 | 1149 |
if needs_boot_flag and disk_type != constants.HT_DISK_IDE: |
1150 | 1150 |
boot_val = ",boot=on" |
1151 | 1151 |
|
1152 |
if cfdev.params[constants.LDP_ACCESS] == constants.DISK_USERSPACE: |
|
1152 |
access_mode = cfdev.params.get( |
|
1153 |
constants.LDP_ACCESS, |
|
1154 |
constants.DISK_LD_DEFAULTS[constants.DT_RBD][constants.LDP_ACCESS] |
|
1155 |
) |
|
1156 |
if access_mode == constants.DISK_USERSPACE: |
|
1153 | 1157 |
drive_uri = device.GetUserspaceAccessUri(constants.HT_KVM) |
1154 | 1158 |
else: |
1155 | 1159 |
drive_uri = dev_path |
Also available in: Unified diff