}
TEST(BlueFS, mkfs) {
- uint64_t size = 1048476 * 128;
+ uint64_t size = 1048576 * 128;
string fn = get_temp_bdev(size);
uuid_d fsid;
BlueFS fs;
}
TEST(BlueFS, mkfs_mount) {
- uint64_t size = 1048476 * 128;
+ uint64_t size = 1048576 * 128;
string fn = get_temp_bdev(size);
BlueFS fs;
ASSERT_EQ(0, fs.add_block_device(BlueFS::BDEV_DB, fn));
}
TEST(BlueFS, write_read) {
- uint64_t size = 1048476 * 128;
+ uint64_t size = 1048576 * 128;
string fn = get_temp_bdev(size);
BlueFS fs;
ASSERT_EQ(0, fs.add_block_device(BlueFS::BDEV_DB, fn));
}
TEST(BlueFS, small_appends) {
- uint64_t size = 1048476 * 128;
+ uint64_t size = 1048576 * 128;
string fn = get_temp_bdev(size);
BlueFS fs;
ASSERT_EQ(0, fs.add_block_device(BlueFS::BDEV_DB, fn));
#define NUM_MULTIPLE_FILE_WRITERS 2
TEST(BlueFS, test_flush_1) {
- uint64_t size = 1048476 * 128;
+ uint64_t size = 1048576 * 128;
string fn = get_temp_bdev(size);
g_ceph_context->_conf->set_val(
"bluefs_alloc_size",
}
TEST(BlueFS, test_flush_2) {
- uint64_t size = 1048476 * 256;
+ uint64_t size = 1048576 * 256;
string fn = get_temp_bdev(size);
g_ceph_context->_conf->set_val(
"bluefs_alloc_size",
}
TEST(BlueFS, test_flush_3) {
- uint64_t size = 1048476 * 256;
+ uint64_t size = 1048576 * 256;
string fn = get_temp_bdev(size);
g_ceph_context->_conf->set_val(
"bluefs_alloc_size",
g_ceph_context->_conf->set_val(
"bluefs_compact_log_sync",
"true");
- uint64_t size = 1048476 * 128;
+ uint64_t size = 1048576 * 128;
string fn = get_temp_bdev(size);
BlueFS fs;
g_ceph_context->_conf->set_val(
"bluefs_compact_log_sync",
"false");
- uint64_t size = 1048476 * 128;
+ uint64_t size = 1048576 * 128;
string fn = get_temp_bdev(size);
BlueFS fs;
}
TEST(BlueFS, test_compaction_sync) {
- uint64_t size = 1048476 * 128;
+ uint64_t size = 1048576 * 128;
string fn = get_temp_bdev(size);
g_ceph_context->_conf->set_val(
"bluefs_alloc_size",
}
TEST(BlueFS, test_compaction_async) {
- uint64_t size = 1048476 * 128;
+ uint64_t size = 1048576 * 128;
string fn = get_temp_bdev(size);
g_ceph_context->_conf->set_val(
"bluefs_alloc_size",
}
TEST(BlueFS, test_replay) {
- uint64_t size = 1048476 * 128;
+ uint64_t size = 1048576 * 128;
string fn = get_temp_bdev(size);
g_ceph_context->_conf->set_val(
"bluefs_alloc_size",