Whamcloud - gitweb
LU-5690 mount: fix lmd_parse() to handle commas in expr_list 36/17036/6
authorJian Yu <jian.yu@intel.com>
Fri, 20 Nov 2015 19:13:18 +0000 (11:13 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 13 Dec 2015 20:57:23 +0000 (20:57 +0000)
commit9e21c0c82f20514c1435d465deaf90620aba12af
tree0de9a9a452b0da199ce48b01404c94175d123848
parente667cd00c8312258453f0a081c51cf2e6233999a
LU-5690 mount: fix lmd_parse() to handle commas in expr_list

The lmd_parse() function parses mount options with comma as
delimiter without considering commas in expr_list as follows
is a valid LNET nid range syntax:

<expr_list>  :== '[' <range_expr> [ ',' <range_expr>] ']'

This patch fixes the above issue by using cfs_parse_nidlist()
to parse nid range list instead of using class_parse_nid_quiet()
to parse only one nid.

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: I8ba6ee6eb31b4bb078a83d9db213cfca27b0fe66
Reviewed-on: http://review.whamcloud.com/17036
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/obd_mount.c
lustre/tests/conf-sanity.sh