Whamcloud - gitweb
LU-9104 obd: Ignore unknown config param while mounting 32/28232/2
authorRahul Deshmkuh <rahul.deshmukh@seagate.com>
Mon, 8 May 2017 17:03:41 +0000 (22:33 +0530)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 14 Sep 2017 20:06:03 +0000 (20:06 +0000)
commit542815f43c2fbbc29e528fc1de496e54851ca720
tree953fa491345330841a71620784939915234dcf0d
parentf0fbba5a8bfb4bf3b9160d884fdbd200a02c1ef6
LU-9104 obd: Ignore unknown config param while mounting

class_process_proc_param() returns positive value when it encounters
unknown parameters in order to have the below levels process them.
At the very bottom layer the positive value returned by
class_process_proc_param() needs to be dropped.osd_process_config()
missed that, which resulted in target mount failure.

Make sure that osd_process_config() does not return positive value
returned by class_process_proc_param().

Test case has been added to check processing of unknown config
parameters.

Lustre-change: https://review.whamcloud.com/25368
Lustre-commit: 1385dbf8b9caedca7bb32f35db1529e4d5c52d4f

Test-Parameters: testlist=conf-sanity
Signed-off-by: Parinay Kondekar <parinay.kondekar@seagate.com>
Signed-off-by: Rahul Deshmukh <rahul.deshmukh@seagate.com>
Seagate-bug-id: MRP-4162
Change-Id: I068b8f2aee4cee69629efc83745d7cb88aea268c
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/28232
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-zfs/osd_handler.c
lustre/tests/conf-sanity.sh [changed mode: 0755->0644]