Whamcloud - gitweb
LU-3445 utils: make add_param() handle comma-separated values 44/7344/2
authorJian Yu <jian.yu@intel.com>
Wed, 7 Aug 2013 09:44:43 +0000 (17:44 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 20 Aug 2013 03:14:29 +0000 (03:14 +0000)
commit5825e46e1d8b544be540dff4f02d5032e0c30a7f
tree7808b83b200d00e01c55186ceb0f8bbf72be8e47
parent4f98fa790c5f023aa44ebea58087a96e800ed8ca
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>
Reviewed-on: http://review.whamcloud.com/7344
lustre/tests/conf-sanity.sh
lustre/utils/mount_utils.c