Whamcloud - gitweb
LU-9104 obd: Ignore unknown config param while mounting 68/25368/15
authorRahul Deshmkuh <rahul.deshmukh@seagate.com>
Mon, 8 May 2017 17:03:41 +0000 (22:33 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:29:46 +0000 (03:29 +0000)
commit1385dbf8b9caedca7bb32f35db1529e4d5c52d4f
treeec701ab7d39f05c0182756e3035d8a24c838d0aa
parent647d9d34be28e53d72606030461d8516979e8590
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.

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-on: https://review.whamcloud.com/25368
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-zfs/osd_handler.c
lustre/tests/conf-sanity.sh [changed mode: 0755->0644]