Whamcloud - gitweb
LU-5888 utils: limit max_sectors_kb tunable setting 23/12723/2
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 14 Nov 2014 19:48:39 +0000 (12:48 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Nov 2014 23:41:00 +0000 (23:41 +0000)
commit73bd456e8965e3c3e7ccab0f7850fc50355d9cec
tree7362e0379917e5de1f1a14d25405e32323e79a91
parenta98690be9057f409b7840dc15c75f28d2c861c92
LU-5888 utils: limit max_sectors_kb tunable setting

Limit the value set by mount.lustre set_blockdev_tunables() to a
reasonable 32MB instead of the maximum possible amount, since the
parsing of max_hw_sectors_kb might be bad, or it just returns a
value much larger than we need.

Also quiet the printing of the max_sectors_kb tunable that was added
in commit 9813961151e (http://review.whamcloud.com/9865) so that it
only prints something when the value is actually changed, instead of
printing it for every tunable even if the value is the same.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I648c2d8484ae5cef59ab62421cd01bc0ed02fcd6
Reviewed-on: http://review.whamcloud.com/12723
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Blake Caldwell <blakec@ornl.gov>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/mount_utils_ldiskfs.c