Whamcloud - gitweb
LU-6442 utils: "-G <value>" can be passed through mkfs options 00/14400/8
authorArtem Blagodarenko <artem_blagodarenko@xyratex.com>
Wed, 8 Apr 2015 12:52:53 +0000 (15:52 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 21 Jul 2015 16:22:22 +0000 (16:22 +0000)
commit26870a369ffb4e8fde49fcf283f588f7bf3fa3b4
tree526ac54111f8b1c92a61f767c601fecf7c9d76ad
parent935d49c9c19edb8a71d281bbbca2c8e801cb81af
LU-6442 utils: "-G <value>" can be passed through mkfs options

mkfs.lustre util checks if parametrs already contain "flex_bg"
option (number of block groups that will be packed together
to create a larger virtual block group)  and adds this option
if it doesn't exists. But second parameter "-G" (number of block
groups that will be packed together to create a larger virtual
block group) can be added twice: one passed through mkfs options
and another one - default value. In this case this parameter
is not changed actually and default value is applied.

This patch adds extra check. Default option "-G" is added
only if no "-G" option passed through mkfs options.

Xyratex-bug-id: MRP-2046
Signed-off-by: Artem Blagodarenko <artem_blagodarenko@xyratex.com>
Reviewed-by: Sergey Cheremencev <sergey_cheremencev@xyratex.com>
Tested-by: Elena Gryaznova <elena.gryaznova@seagate.com>
Reviewed-by: Vitaly Fertman <vitaly.fertman@seagate.com>
Change-Id: I14fb5f8d10fa369428efcbbcb4f638f388979818
Reviewed-on: http://review.whamcloud.com/14400
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/conf-sanity.sh
lustre/utils/mount_utils_ldiskfs.c