thin-provisioning-tools/unit-tests/test_utils.cc
2013-04-26 15:55:45 +01:00

12 lines
324 B
C++

#include "test_utils.h"
//----------------------------------------------------------------
void test::zero_block(block_manager<>::ptr bm, block_address b)
{
block_manager<>::write_ref wr = bm->write_lock(b);
memset(&wr.data(), 0, sizeof(wr.data()));
}
//----------------------------------------------------------------