From 96c0d076fb056d118a14c63d9f49b702508c6181 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Thu, 19 Feb 2015 19:46:15 -0800 Subject: [PATCH] os: Add some logging used only by test code Signed-off-by: David Zafman --- src/os/FileJournal.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index 0d34be68da3cb..5087589afe24e 100644 --- a/src/os/FileJournal.cc +++ b/src/os/FileJournal.cc @@ -1958,6 +1958,7 @@ void FileJournal::get_header( off64_t next_pos = pos; bufferlist bl; uint64_t seq = 0; + dout(2) << __func__ << dendl; while (1) { bl.clear(); pos = next_pos; @@ -1983,6 +1984,7 @@ void FileJournal::corrupt( int wfd, off64_t corrupt_at) { + dout(2) << __func__ << dendl; if (corrupt_at >= header.max_size) corrupt_at = corrupt_at + get_top() - header.max_size; @@ -2005,6 +2007,7 @@ void FileJournal::corrupt_payload( int wfd, uint64_t seq) { + dout(2) << __func__ << dendl; off64_t pos = 0; entry_header_t h; get_header(seq, &pos, &h); @@ -2018,6 +2021,7 @@ void FileJournal::corrupt_footer_magic( int wfd, uint64_t seq) { + dout(2) << __func__ << dendl; off64_t pos = 0; entry_header_t h; get_header(seq, &pos, &h); @@ -2033,6 +2037,7 @@ void FileJournal::corrupt_header_magic( int wfd, uint64_t seq) { + dout(2) << __func__ << dendl; off64_t pos = 0; entry_header_t h; get_header(seq, &pos, &h); -- 2.39.5