Whamcloud - gitweb
LU-1203 mdt: map old params to new ones by using an array
authorYu Jian <yujian@whamcloud.com>
Fri, 31 Aug 2012 11:02:30 +0000 (19:02 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Sep 2012 18:21:41 +0000 (14:21 -0400)
commitbb761e8f5e2b3c810431e9937746ec97c523d640
treef2d5ecda2a029219884a82dd3e14622be0af1f3f
parent89b0ae09379b9856c46acf7ae32052a09eaab59b
LU-1203 mdt: map old params to new ones by using an array

This patch improves mdt_process_config() to use an array for
mapping old params to new ones.

The patch also adds a common function class_find_old_param()
to check whether a proc param is an old one or not, and return
new one if it's an old one.

Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: I122e4e83a3f4e84a3fdbd3fe6a69b7c1b5e08d3f
Reviewed-on: http://review.whamcloud.com/3836
Tested-by: Hudson
Reviewed-by: Niu Yawei <niu@whamcloud.com>
Reviewed-by: Liang Zhen <liang@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_param.h
lustre/mdt/mdt_handler.c
lustre/obdclass/obd_config.c