Whamcloud - gitweb
LU-16029 utils: add options to lr_reader to parse raw files 88/47988/8
authorEtienne AUJAMES <etienne.aujames@cea.fr>
Tue, 19 Jul 2022 20:21:52 +0000 (22:21 +0200)
committerOleg Drokin <green@whamcloud.com>
Sat, 17 Sep 2022 06:23:56 +0000 (06:23 +0000)
commitaed829192a5ca07bdac15eb7ac69e7c341413e81
tree6601accbd834b084504d24d0a095021046defd19
parent3345a8a54e89c342a4ce2d8d4bcb04ee919bcd52
LU-16029 utils: add options to lr_reader to parse raw files

Add the following usages to lr_reader for post-mortem debuging:

debugfs -c -R "dump reply_data /tmp/reply_data" /dev/mapper/mds1
debugfs -c -R "dump last_rcvd /tmp/last_rcvd" /dev/mapper/mds1

lr_reader -cr -C /tmp/last_rcvd -R /tmp/reply_data
....

This patch attempts to re-refactoring lr_reader code.

It enable to use longer device name (by removing the limitation on
the 128 bytes buffer of debugfs command).

Signed-off-by: Etienne AUJAMES <etienne.aujames@cea.fr>
Change-Id: I6a5f945134d4235ac467ba2274eb05f71b468cd8
Reviewed-on: https://review.whamcloud.com/47988
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: DELBARY Gael <gael.delbary@cea.fr>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lr_reader.c