const uint64_t max_stride_size;
AttrGenerator attr_gen;
const bool no_omap;
+ const bool no_sparse;
bool pool_snaps;
bool write_fadvise_dontneed;
int snapname_num;
uint64_t min_stride_size,
uint64_t max_stride_size,
bool no_omap,
+ bool no_sparse,
bool pool_snaps,
bool write_fadvise_dontneed,
const char *id = 0) :
min_stride_size(min_stride_size), max_stride_size(max_stride_size),
attr_gen(2000, 20000),
no_omap(no_omap),
+ no_sparse(no_sparse),
pool_snaps(pool_snaps),
write_fadvise_dontneed(write_fadvise_dontneed),
snapname_num(0)
uint64_t len = 0;
if (old_value.has_contents())
len = old_value.most_recent_gen()->get_length(old_value.most_recent());
- if (rand() % 2) {
+ if (context->no_sparse || rand() % 2) {
is_sparse_read[index] = false;
read_op.read(0,
len,
string pool_name = "rbd";
bool ec_pool = false;
bool no_omap = false;
+ bool no_sparse = false;
bool balance_reads = false;
for (int i = 1; i < argc; ++i) {
max_stride_size = atoi(argv[++i]);
else if (strcmp(argv[i], "--no-omap") == 0)
no_omap = true;
+ else if (strcmp(argv[i], "--no-sparse") == 0)
+ no_sparse = true;
else if (strcmp(argv[i], "--balance_reads") == 0)
balance_reads = true;
else if (strcmp(argv[i], "--pool-snaps") == 0)
}
ec_pool = true;
no_omap = true;
+ no_sparse = true;
} else if (strcmp(argv[i], "--op") == 0) {
i++;
if (i == argc) {
min_stride_size,
max_stride_size,
no_omap,
+ no_sparse,
pool_snaps,
write_fadvise_dontneed,
id);