Skip to content

Commit

Permalink
os/bluestore/BlueFS: debug statements to check log_fnode size in supe…
Browse files Browse the repository at this point in the history
…r block

Signed-off-by: Varada Kari <varada.kari@sandisk.com>
  • Loading branch information
Varada Kari authored and liewegas committed Jun 30, 2016
1 parent 005efba commit 6a696a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/os/bluestore/BlueFS.cc
Expand Up @@ -403,6 +403,9 @@ int BlueFS::_write_super()
::encode(super, bl);
uint32_t crc = bl.crc32c(-1);
::encode(crc, bl);
dout(10) << __func__ << " super block length(encoded): " << bl.length() << dendl;
dout(10) << __func__ << " superblock " << super.version << dendl;
dout(10) << __func__ << " log_fnode " << super.log_fnode << dendl;
assert(bl.length() <= get_super_length());
bl.append_zero(get_super_length() - bl.length());

Expand Down Expand Up @@ -457,6 +460,7 @@ int BlueFS::_replay()

FileRef log_file = _get_file(1);
log_file->fnode = super.log_fnode;
dout(10) << __func__ << " log_fnode " << super.log_fnode << dendl;

FileReader *log_reader = new FileReader(
log_file, g_conf->bluefs_alloc_size,
Expand Down

0 comments on commit 6a696a6

Please sign in to comment.