Whamcloud - gitweb
LU-8824 nodemap: load nodemap definitions first 49/23849/2
authorKit Westneat <kit.westneat@gmail.com>
Wed, 16 Nov 2016 16:31:35 +0000 (11:31 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 23 Nov 2016 04:19:07 +0000 (04:19 +0000)
commit89ce9d5b125762f39339916f14c01242107739ed
tree3db90daa4c95bae8a3b9f005ec33ec888df5d951
parent300739c76abdaec738c63237249d88097c595cc8
LU-8824 nodemap: load nodemap definitions first

ZFS index files return keys in hash order instead of key numerical
order. This means that nodemap definitions could be returned after
the ID mapping and range definitions, causing the load code to break.
This change loads the config in two passes, ensuring that the nodemap
creation would occur first.

Test-Parameters: envdefinitions=SLOW=yes testlist=sanity-sec
Test-Parameters: envdefinitions=SLOW=yes mdtfilesystemtype=zfs mdsfilesystemtype=zfs ostfilesystemtype=zfs testlist=sanity-sec
Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Change-Id: I97dac2e8fb2e7f2e0a0a6bd07f743d3379178890
Reviewed-on: http://review.whamcloud.com/23849
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/mgc/mgc_request.c
lustre/ptlrpc/nodemap_storage.c