Whamcloud - gitweb
LU-1287 mountconf: write failover nid config correctly
authorLai Siyao <laisiyao@whamcloud.com>
Thu, 14 Jun 2012 10:21:00 +0000 (18:21 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 17 Dec 2012 06:32:51 +0000 (01:32 -0500)
commit3c6137d088196c6e46812b4fd24b0ac781c07ed7
tree7ac6485271f503b7bc65d77fdbfe05956522e6ef
parent7c4c8f922b383a0468ec0aab1815a46d86e67814
LU-1287 mountconf: write failover nid config correctly

Once OST starts before MDT, MDT needs steal OSC config from client
config, but both target nids and failover nids are stored as the
same type of config LCFG_ADD_UUID. To handle this correctly, all
LCFG_ADD_UUID before LCFG_SETUP is treated as target nids, while
after as failover nids. NB this implies that records should be
written into config file in fixed order.

Signed-off-by: Lai Siyao <laisiyao@whamcloud.com>
Change-Id: I42d014911edad1bc53bb1a66def160ee0da3e670
Reviewed-on: http://review.whamcloud.com/3107
Reviewed-by: Sebastien Buisson <sebastien.buisson@bull.net>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mgs/mgs_llog.c