From 3ee0fc5b77a86a0fcb2474793a3b60224ca43934 Mon Sep 17 00:00:00 2001 From: jcl Date: Tue, 2 Apr 2013 00:42:01 +0200 Subject: [PATCH] LU-3083 lmv: swap layout & DNE If DNE is on, swap layout RPC must be send to the right MDT and not always to MDT0 Signed-off-by: JC Lafoucriere Change-Id: If57ef688c7628bb15a06e1ba6905d3154a204c8d Reviewed-on: http://review.whamcloud.com/5912 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Jinshan Xiong Reviewed-by: Johann Lombardi --- lustre/lmv/lmv_obd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index e55f4a0..15aa738 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -947,11 +947,11 @@ static int lmv_iocontrol(unsigned int cmd, struct obd_export *exp, if ((tgt1->ltd_exp == NULL) || (tgt2->ltd_exp == NULL)) RETURN(-EINVAL); - /* only files on same MDT can be have their layouts swapped */ + /* only files on same MDT can have their layouts swapped */ if (tgt1->ltd_idx != tgt2->ltd_idx) RETURN(-EPERM); - rc = obd_iocontrol(cmd, lmv->tgts[0]->ltd_exp, len, karg, uarg); + rc = obd_iocontrol(cmd, tgt1->ltd_exp, len, karg, uarg); break; } default: -- 1.8.3.1