Whamcloud - gitweb
LU-12642 ofd: change last_id output in proc 30/35730/5
authorSergey Cheremencev <c17829@cray.com>
Mon, 10 Sep 2018 19:41:37 +0000 (22:41 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 17 Mar 2020 03:40:22 +0000 (03:40 +0000)
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 <c17829@cray.com>
Cray-bug-id: LUS-6454
Reviewed-on: https://es-gerrit.dev.cray.com/155308
Reviewed-by: Alexander Boyko <c17825@cray.com>
Tested-by: Elena Gryaznova <c17455@cray.com>
Reviewed-by: Alexander Zarochentsev <c17826@cray.com>
Reviewed-on: https://review.whamcloud.com/35730
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ofd/lproc_ofd.c

index 9593c3d..9d78009 100644 (file)
@@ -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),
 
                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);
                seq_printf(m, DOSTID"\n", seq, ostid_id(&oseq->os_oi));
        }
        read_unlock(&ofd->ofd_seq_list_lock);