Revision 8e4aacdc
b/lib/cmdlib/common.py | ||
---|---|---|
1212 | 1212 |
return True |
1213 | 1213 |
|
1214 | 1214 |
if (hv == constants.HT_KVM and |
1215 |
disk_template == constants.DT_RBD and
|
|
1215 |
disk_template in constants.DTS_HAVE_ACCESS and
|
|
1216 | 1216 |
mode == constants.DISK_USERSPACE): |
1217 | 1217 |
return True |
1218 | 1218 |
|
b/man/gnt-instance.rst | ||
---|---|---|
81 | 81 |
access |
82 | 82 |
If 'userspace', instance will access this disk directly without going |
83 | 83 |
through a block device, avoiding expensive context switches with |
84 |
kernel space. This options works only for RBD and Gluster devices. If
|
|
85 |
not specified, the default access of the node-group (possibly |
|
84 |
kernel space. This option works only for RBD, Gluster and ExtStorage
|
|
85 |
devices. If not specified, the default access of the node-group (possibly
|
|
86 | 86 |
inherited from the cluster-wide settings) will be used. |
87 | 87 |
|
88 | 88 |
When creating ExtStorage disks, also arbitrary parameters can be passed, |
b/src/Ganeti/Constants.hs | ||
---|---|---|
892 | 892 |
dtsLvm :: FrozenSet String |
893 | 893 |
dtsLvm = diskTemplates `ConstantUtils.difference` dtsNotLvm |
894 | 894 |
|
895 |
-- | The set of lvm-based disk templates |
|
896 |
dtsHaveAccess :: FrozenSet String |
|
897 |
dtsHaveAccess = ConstantUtils.mkSet $ |
|
898 |
map Types.diskTemplateToRaw [DTRbd, DTExt] |
|
899 |
|
|
895 | 900 |
-- * Drbd |
896 | 901 |
|
897 | 902 |
drbdHmacAlg :: String |
... | ... | |
3769 | 3774 |
, (ldpProtocol, PyValueEx drbdDefaultNetProtocol) |
3770 | 3775 |
, (ldpResyncRate, PyValueEx classicDrbdSyncSpeed) |
3771 | 3776 |
]) |
3772 |
, (DTExt, Map.empty) |
|
3777 |
, (DTExt, Map.fromList |
|
3778 |
[ (ldpAccess, PyValueEx diskKernelspace) |
|
3779 |
]) |
|
3773 | 3780 |
, (DTFile, Map.empty) |
3774 | 3781 |
, (DTPlain, Map.fromList [(ldpStripes, PyValueEx lvmStripecount)]) |
3775 | 3782 |
, (DTRbd, Map.fromList |
... | ... | |
3801 | 3808 |
, (drbdProtocol, PyValueEx drbdDefaultNetProtocol) |
3802 | 3809 |
, (drbdResyncRate, PyValueEx classicDrbdSyncSpeed) |
3803 | 3810 |
]) |
3804 |
, (DTExt, Map.empty) |
|
3811 |
, (DTExt, Map.fromList |
|
3812 |
[ (rbdAccess, PyValueEx diskKernelspace) |
|
3813 |
]) |
|
3805 | 3814 |
, (DTFile, Map.empty) |
3806 | 3815 |
, (DTPlain, Map.fromList [(lvStripes, PyValueEx lvmStripecount)]) |
3807 | 3816 |
, (DTRbd, Map.fromList |
Also available in: Unified diff