Whamcloud - gitweb
LU-1203 mdt: map old params to new ones by using an array
authorYu Jian <yujian@whamcloud.com>
Fri, 7 Sep 2012 03:17:07 +0000 (11:17 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Oct 2012 23:06:33 +0000 (19:06 -0400)
commit1cd30e90fa4879ff40182c848bb04f388726b580
tree5f790e2a95195bf721a209b55132a542f2a14786
parentb9250b228d59e3e1172391c3b2baca96803abfc6
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: If7a79cfa20c7cb57246f115b4af71ff996b77d8d
Reviewed-on: http://review.whamcloud.com/3900
Tested-by: Hudson
Reviewed-by: Liang Zhen <liang@whamcloud.com>
Reviewed-by: Niu Yawei <niu@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