From 4f94bcbfbc400e5f3e70133b126016f57f4dbc64 Mon Sep 17 00:00:00 2001 From: Sergey Cheremencev Date: Mon, 10 Sep 2018 22:41:37 +0300 Subject: [PATCH] LU-12642 ofd: change last_id output in proc Don't show IDIF 32:48 bits in sequence like below: lctl get_param obdfilter.lustre-OST0002.last_id 0x100020001:4295098401 The sequence should be the same with seq on MDS: lctl get_param osp.lustre-OST0002-osc-MDT0000.prealloc_last_seq 0x100020000 lctl get_param osp.lustre-OST0002-osc-MDT0000.prealloc_last_id 4295098401 Change-Id: Ie3b7db3d69305a26c06325869628e5b38196e5d7 Signed-off-by: Sergey Cheremencev Cray-bug-id: LUS-6454 Reviewed-on: https://es-gerrit.dev.cray.com/155308 Reviewed-by: Alexander Boyko Tested-by: Elena Gryaznova Reviewed-by: Alexander Zarochentsev Reviewed-on: https://review.whamcloud.com/35730 Reviewed-by: Alex Zhuravlev Tested-by: jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/ofd/lproc_ofd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/ofd/lproc_ofd.c b/lustre/ofd/lproc_ofd.c index 9593c3d..9d78009 100644 --- a/lustre/ofd/lproc_ofd.c +++ b/lustre/ofd/lproc_ofd.c @@ -172,8 +172,8 @@ static int ofd_last_id_seq_show(struct seq_file *m, void *data) seq = ostid_seq(&oseq->os_oi) == 0 ? fid_idif_seq(ostid_id(&oseq->os_oi), - ofd->ofd_lut.lut_lsd.lsd_osd_index) : - ostid_seq(&oseq->os_oi); + ofd->ofd_lut.lut_lsd.lsd_osd_index) & ~0xFFFF : + ostid_seq(&oseq->os_oi); seq_printf(m, DOSTID"\n", seq, ostid_id(&oseq->os_oi)); } read_unlock(&ofd->ofd_seq_list_lock); -- 1.8.3.1