Whamcloud - gitweb
LU-9132 utils: tuning max_sectors_kb on mount 83/25483/4
authorNiu Yawei <yawei.niu@intel.com>
Thu, 16 Feb 2017 02:45:23 +0000 (21:45 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 1 Mar 2017 05:12:33 +0000 (05:12 +0000)
commit29c434b882ed11de968130492c14884d5942d9dd
treeea50d593a972135ef995a1b049f62e04ac0815f7
parent11eda8742fa4505bc62c6113b067a75687f171cc
LU-9132 utils: tuning max_sectors_kb on mount

Sometimes user doesn't want the max_sectors_kb being
overwritten on MDT/OST mount, we should provide a way for
user to have more control over this important parameter,
a new mount option 'max_sectors_kb' is introduced:

- When max_sectors_kb isn't specified on mount, change the
  max_sectors_kb to max_hw_sectors_kb, it's default behavior
  suited for most users;
- When max_sectors_kb is specified as zero, leave the old
  setting of max_sectors_kb untouched;
- When max_sectors_kb is specified as a positive number,
  change the max_sectors_kb to this number arbitrarily;

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: I251d75bbdf16d8cb6d503bbbfc69fb18993f7a3e
Reviewed-on: https://review.whamcloud.com/25483
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/doc/mount.lustre.8
lustre/utils/mount_lustre.c
lustre/utils/mount_utils.h
lustre/utils/mount_utils_ldiskfs.c