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:10 +0000 (14:21 -0400)
commitee0a545f1cb8dbc1950540d7889e5c7cb9a33d48
treec8282591bd53cdc2311428a688f6f088db85a418
parent80ad9c5cb2419899ed4bab8a5d6eb7fa58729073
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