diff --git a/src/blockstore_flush.cpp b/src/blockstore_flush.cpp index 4de301e64..dc94b2a35 100644 --- a/src/blockstore_flush.cpp +++ b/src/blockstore_flush.cpp @@ -783,6 +783,9 @@ void journal_flusher_co::update_clean_db() { auto clean_it = bs->clean_db.find(cur.oid); bs->clean_db.erase(clean_it); +#ifdef BLOCKSTORE_DEBUG + printf("Free block %lu (delete)\n", clean_loc >> bs->block_order); +#endif bs->data_alloc->set(clean_loc >> bs->block_order, false); clean_loc = UINT64_MAX; } diff --git a/src/blockstore_init.cpp b/src/blockstore_init.cpp index 07ff3cb1c..6f30435db 100644 --- a/src/blockstore_init.cpp +++ b/src/blockstore_init.cpp @@ -625,7 +625,11 @@ int blockstore_init_journal::handle_journal_part(void *buf, uint64_t done_pos, u .journal_sector = proc_pos, }); #ifdef BLOCKSTORE_DEBUG - printf("Allocate block %lu\n", je->big_write.location >> bs->block_order); + printf( + "Allocate block (journal) %lu: %lx:%lx v%lu\n", + je->big_write.location >> bs->block_order, + ov.oid.inode, ov.oid.stripe, ov.version + ); #endif bs->data_alloc->set(je->big_write.location >> bs->block_order, true); bs->journal.used_sectors[proc_pos]++; diff --git a/src/blockstore_write.cpp b/src/blockstore_write.cpp index 812b24d95..a2c62f6e3 100644 --- a/src/blockstore_write.cpp +++ b/src/blockstore_write.cpp @@ -224,7 +224,10 @@ int blockstore_impl_t::dequeue_write(blockstore_op_t *op) dirty_it->second.location = loc << block_order; dirty_it->second.state = (dirty_it->second.state & ~BS_ST_WORKFLOW_MASK) | BS_ST_SUBMITTED; #ifdef BLOCKSTORE_DEBUG - printf("Allocate block %lu\n", loc); + printf( + "Allocate block %lu for %lx:%lx v%lu\n", + loc, op->oid.inode, op->oid.stripe, op->version + ); #endif data_alloc->set(loc, true); uint64_t stripe_offset = (op->offset % bitmap_granularity);