Whamcloud - gitweb
LU-15646 llog: correct llog FID and path output 30/48430/6
authorMikhail Pershin <mpershin@whamcloud.com>
Sat, 3 Sep 2022 07:31:38 +0000 (10:31 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Oct 2022 05:37:32 +0000 (05:37 +0000)
commite28f3ee185b2ef7bad8046f46444772fac214a40
tree0c563e89e5d60ec7967a3a5b808587ce97a9d3ba
parent29aaf679afac89359e1b116b8de0480f24b4e8ac
LU-15646 llog: correct llog FID and path output

- fix wrong LLOG_ID-to-FID convertion to output llog FID by
  introducing PLOGID macro to expand llog ID for DFID format
- stop printing lgl_ogen along with llog FID as it always zero
  since 2.3.51 and is not used anymore
- output correct path for update llog in llog_reader
- always print header info in llog_reader if available
- print llog flags in header info

Fixes: 5a8e47d0a1a7 ("LU-9153 llog: update llog print format to use FIDs")
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I7ba49e8101a67d2d80c204a5fc629bfd0bce89ad
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48430
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
12 files changed:
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/lod/lod_dev.c
lustre/lod/lod_sub_object.c
lustre/mdd/mdd_device.c
lustre/obdclass/llog.c
lustre/obdclass/llog_cat.c
lustre/obdclass/llog_ioctl.c
lustre/obdclass/llog_osd.c
lustre/obdclass/llog_swab.c
lustre/osp/osp_sync.c
lustre/target/update_trans.c
lustre/utils/llog_reader.c