]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os: Add some logging used only by test code
authorDavid Zafman <dzafman@redhat.com>
Fri, 20 Feb 2015 03:46:15 +0000 (19:46 -0800)
committerDavid Zafman <dzafman@redhat.com>
Wed, 13 May 2015 20:09:12 +0000 (13:09 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/os/FileJournal.cc

index 0d34be68da3cb32b1724afd1dc378cb863adc868..5087589afe24ee92a41ac83add2b70343ad9f446 100644 (file)
@@ -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);