Whamcloud - gitweb
LU-8508 nodemap: improve object handling in cache saving 04/22004/7
authorKit Westneat <kit.westneat@gmail.com>
Thu, 18 Aug 2016 15:00:35 +0000 (11:00 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 15 Sep 2016 23:31:40 +0000 (23:31 +0000)
commit45cb603b4352a73077dcc45ec2cdea403837a7ba
treeb4652c7881f27b15966305d2cb4327bb605ed734
parenta5a7890093ea2509db15f8aa8a8c9d9c86133209
LU-8508 nodemap: improve object handling in cache saving

Saving cache files requires that the old cache be removed. This means
that the config object reference needs to change to point to the new
file. Previously this was done in a number of different places and
was more opaque. This patch hopefully makes it more transparent.

This patch also fixes a problem on MDTs/OSTs when creating a new
config. Previously all initial config creates would assume an MGS
context. A side-effect of the improved object handling is that a
target context is handled correctly.

Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Change-Id: Iee33a423b76f30eba849288c746e6528ecefa7c6
Reviewed-on: http://review.whamcloud.com/22004
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_nodemap.h
lustre/mdd/mdd_device.c
lustre/mgs/mgs_fs.c
lustre/ofd/ofd_dev.c
lustre/ptlrpc/nodemap_storage.c