* [PATCH dlm/next 1/2] dlm: fix format seq ops type 4
@ 2023-12-20 19:38 Alexander Aring
2023-12-20 19:38 ` [PATCH dlm/next 2/2] dlm: update format header reflect current format Alexander Aring
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Aring @ 2023-12-20 19:38 UTC (permalink / raw)
To: teigland; +Cc: gfs2, aahringo
This patch fixes to set the type 4 format ops in case of table_open4().
It got accidentially changed by commit 541adb0d4d10 ("fs: dlm: debugfs
for queued callbacks") and since them toss debug dumps the same format
as format 5 that are the queued ast callbacks for lkbs.
Fixes: 541adb0d4d10 ("fs: dlm: debugfs for queued callbacks")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
---
fs/dlm/debug_fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c
index ca65481df70d..87ec499777c5 100644
--- a/fs/dlm/debug_fs.c
+++ b/fs/dlm/debug_fs.c
@@ -748,7 +748,7 @@ static int table_open4(struct inode *inode, struct file *file)
struct seq_file *seq;
int ret;
- ret = seq_open(file, &format5_seq_ops);
+ ret = seq_open(file, &format4_seq_ops);
if (ret)
return ret;
--
2.39.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH dlm/next 2/2] dlm: update format header reflect current format
2023-12-20 19:38 [PATCH dlm/next 1/2] dlm: fix format seq ops type 4 Alexander Aring
@ 2023-12-20 19:38 ` Alexander Aring
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Aring @ 2023-12-20 19:38 UTC (permalink / raw)
To: teigland; +Cc: gfs2, aahringo
Over the time the dlm debugfs format string has been changed but the
header wasn't updated. This patch changes the first line dump header and
their meaning to reflect the current formats.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
---
fs/dlm/debug_fs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c
index 87ec499777c5..72bd72d07d66 100644
--- a/fs/dlm/debug_fs.c
+++ b/fs/dlm/debug_fs.c
@@ -443,14 +443,14 @@ static int table_seq_show(struct seq_file *seq, void *iter_ptr)
break;
case 3:
if (ri->header) {
- seq_puts(seq, "version rsb 1.1 lvb 1.1 lkb 1.1\n");
+ seq_puts(seq, "rsb ptr nodeid first_lkid flags !root_list_empty !recover_list_empty recover_locks_count len\n");
ri->header = 0;
}
print_format3(ri->rsb, seq);
break;
case 4:
if (ri->header) {
- seq_puts(seq, "version 4 rsb 2\n");
+ seq_puts(seq, "rsb ptr nodeid master_nodeid dir_nodeid our_nodeid toss_time flags len str|hex name\n");
ri->header = 0;
}
print_format4(ri->rsb, seq);
--
2.39.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-12-20 19:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-20 19:38 [PATCH dlm/next 1/2] dlm: fix format seq ops type 4 Alexander Aring
2023-12-20 19:38 ` [PATCH dlm/next 2/2] dlm: update format header reflect current format Alexander Aring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox