Whamcloud - gitweb
LU-10703 nodemap: save and clear fileset correctly
This patch is to fix the following two issues:
- When processing the nodemap_idx_type "NODEMAP_CLUSTER_IDX" in
nodemap_process_keyrec(), fileset should be saved, otherwise,
it will be changed to empty every time when client is notified
to fetch nodemap logs (mgc_process_recover_nodemap_log()->
nodemap_process_idx_pages()->nodemap_process_keyrec()).
- Allow 'fileset=clear' in addition to 'fileset=""' to clear
fileset because either 'lctl set_param -P *.*.fileset=""' or
'lctl nodemap_set_fileset --fileset ""' can only work on MGS,
while on other non-MGS servers, they both will invoke upcall
"/usr/sbin/lctl set_param nodemap.default.fileset=" by function
process_param2_config(), which will cause "no value" error and
won't clear fileset. 'fileset=""' is still kept for compatibility
reason.
Also, sanity-sec.sh test_27a is modified and test_27b is added to
verify this patch.
Change-Id: I23236a4f1b67ac555713d6b3f059df699fdc91dc
Signed-off-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-on: https://review.whamcloud.com/31450
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>