From 6fd6ce45e25c2236c708129ead288e241b346b9d Mon Sep 17 00:00:00 2001 From: wangdi Date: Thu, 2 Jan 2014 01:10:05 -0800 Subject: [PATCH 1/1] LU-2960 lmv: typo fix for output of "lfs mdts" Using ltd_idx(in lmv_tgt_descs) directly for the output of lctl get_params lustre.lmv.*-clilmv-*.target_obd. Signed-off-by: wang di Change-Id: I6a4ff4b82e4d413baf1f36f85764d3c11cd82435 Reviewed-on: http://review.whamcloud.com/5782 Tested-by: Hudson Reviewed-by: Li Wei Reviewed-by: Andreas Dilger Reviewed-by: Mike Pershin Tested-by: Maloo --- lustre/lmv/lproc_lmv.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lustre/lmv/lproc_lmv.c b/lustre/lmv/lproc_lmv.c index 65d1bd2..bde45c6 100644 --- a/lustre/lmv/lproc_lmv.c +++ b/lustre/lmv/lproc_lmv.c @@ -179,14 +179,11 @@ static void *lmv_tgt_seq_next(struct seq_file *p, void *v, loff_t *pos) static int lmv_tgt_seq_show(struct seq_file *p, void *v) { struct lmv_tgt_desc *tgt = v; - struct obd_device *dev = p->private; - struct lmv_obd *lmv = &dev->u.lmv; - int idx = tgt - lmv->tgts[0]; if (tgt == NULL) return 0; - return seq_printf(p, "%d: %s %sACTIVE\n", idx, tgt->ltd_uuid.uuid, - tgt->ltd_active ? "" : "IN"); + return seq_printf(p, "%d: %s %sACTIVE\n", tgt->ltd_idx, + tgt->ltd_uuid.uuid, tgt->ltd_active ? "" : "IN"); } struct seq_operations lmv_tgt_sops = { -- 1.8.3.1