Whamcloud - gitweb
LU-8498 nodemap: new zfs index files not properly initialized 39/21939/8
authorKit Westneat <kit.westneat@gmail.com>
Tue, 16 Aug 2016 03:50:07 +0000 (23:50 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 8 Sep 2016 02:05:51 +0000 (02:05 +0000)
commitdd69c1da4ab22c66801df6a6e316d210ea71454d
tree4fe66d0a9fe77e25bc58b18c0724b2bf50161813
parentae2ccbc6da32def014463ee98fab76a93835d85d
LU-8498 nodemap: new zfs index files not properly initialized

Calling index ->next on a new zfs returns a non-zero RC, but ldiskfs
indexes start with a blank record. This change modifies the config
load code to always write the default nodemap to an empty index file.

Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Change-Id: I30a365f65463979889f09f7ad5ffcdacc83fa868
Reviewed-on: http://review.whamcloud.com/21939
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/nodemap_storage.c