From 96345b82ff7179ea7ef85148cdd0e857b15bc897 Mon Sep 17 00:00:00 2001 From: wangxiyuan Date: Wed, 24 May 2017 16:59:39 +0800 Subject: [PATCH] LVM: update max_over_subscription_ratio help message If lvm_max_over_subscription_ratio is not set, it still has a default value. So the global config option max_over_subscription_ratio will be replaced as well. Update the help message to avoid misleading Change-Id: I94e18d04c39b930e48eeacfb4415c45d924d2f97 Closes-bug: #1602235 --- cinder/volume/drivers/lvm.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cinder/volume/drivers/lvm.py b/cinder/volume/drivers/lvm.py index 18407cc4f7c..d8d7e9ffaa6 100644 --- a/cinder/volume/drivers/lvm.py +++ b/cinder/volume/drivers/lvm.py @@ -66,9 +66,10 @@ volume_opts = [ # LVM driver which is different than the global default. default=1.0, help='max_over_subscription_ratio setting for the LVM ' - 'driver. If set, this takes precedence over the ' - 'general max_over_subscription_ratio option. If ' - 'None, the general option is used.'), + 'driver. This takes precedence over the general ' + 'max_over_subscription_ratio by default. If set ' + 'to None, the general max_over_subscription_ratio ' + 'is used.'), cfg.BoolOpt('lvm_suppress_fd_warnings', default=False, help='Suppress leaked file descriptor warnings in LVM '