Whamcloud - gitweb
LU-15646 llog: correct llog FID and path output
authorMikhail Pershin <mpershin@whamcloud.com>
Mon, 17 Oct 2022 19:53:44 +0000 (12:53 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 27 Oct 2022 03:16:14 +0000 (03:16 +0000)
commitd32304769d0fca7b3d2cfda320800dd8754c4691
tree6c037017ff72d5ce10f94b27caf5044364ef792f
parent90bdf3efbdae5a3f0dc10d47480e2c2bd23e2fd3
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

Lustre-change: https://review.whamcloud.com/48430
Lustre-commit: e28f3ee185b2ef7bad8046f46444772fac214a40

Fixes: 5a8e47d0a1a7 ("LU-9153 llog: update llog print format to use FIDs")
Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I7ba49e8101a67d2d80c204a5fc629bfd0bce89ad
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/48896
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