Whamcloud - gitweb
LU-3445 utils: make add_param() handle comma-separated values 86/6686/9
authorJian Yu <jian.yu@intel.com>
Wed, 7 Aug 2013 09:44:43 +0000 (17:44 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 13 Aug 2013 04:07:09 +0000 (04:07 +0000)
commit3917e62018878dfffac59ceed70f20b0419945d3
treec15f4f6c7968bbf09ee5dc30c784fbaf794583b6
parent4d107e91a5d5a7f50a46507dcb29a4610087158e
LU-3445 utils: make add_param() handle comma-separated values

Current mkfs.lustre supports comma-separated values in "--mgsnode",
"--failnode", etc. options. However, in mount.lustre, the values
are directly passed to mount() as options without prefixing with
Lustre parameter key for each one. This will make the values can
not be recognized by the backend filesystem and cause mount.lustre
fail with -EINVAL error.

This patch improves add_param() to extract values from the comma-
separated string and prefix Lustre parameter key to each value.

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I64c5cb6f61277a93f65f69f63050721e0070c450
Reviewed-on: http://review.whamcloud.com/6686
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/conf-sanity.sh
lustre/utils/mount_utils.c