thin-provisioning-tools/unit-tests/test_utils.cc

12 lines
324 B
C++
Raw Normal View History

2013-04-26 20:25:45 +05:30
#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()));
}
//----------------------------------------------------------------