md_config_t g_conf = {
num_mds: 13,
num_osd: 10,
- num_client: 50,
+ num_client: 1,
osd_cow: false, // crashy? true,
client_cache_size: 100,
client_cache_mid: .5,
- client_requests: 100,
+ client_requests: 10000,
client_deterministic: false,
log_messages: true,
fake_clock: true,
fakemessenger_serialize: false,
- debug: 10,
+ debug: 15,
mdcache_size: MDS_CACHE_SIZE,
mdcache_mid: .8,
client_op_readdir: true,
client_op_mknod: true,
client_op_link: false,
- client_op_unlink: true,
+ client_op_unlink: false,
client_op_rename: false,
- client_op_mkdir: true,
+ client_op_mkdir: false,//true, // note: corrupts osddata if we don't shut down & flush logs cleanly
client_op_rmdir: false,
client_op_symlink: true,
assert(in.get_replica_nonce() >= 0);
}
+ if (in.is_symlink()) out << " symlink";
+
out << " hard=" << in.hardlock;
out << " soft=" << in.softlock;
char fn2[100];
char *get_filename_nopid(int osd, object_t oid)
{
- sprintf(fn, "%s/%d/%d", osd_base_path, osd, oid);
+ sprintf(fn, "%s/%d/%lld", osd_base_path, osd, oid);
return fn;
}
char *get_filename(int osd, object_t oid)
if (!g_conf.osd_cow)
return get_filename_nopid(osd,oid);
- sprintf(fn, "%s/%d/%d.%d", osd_base_path, osd, oid, getpid());
+ sprintf(fn, "%s/%d/%lld.%d", osd_base_path, osd, oid, getpid());
return fn;
}
char *get_filename2(int osd, object_t oid)
{
- sprintf(fn2, "%s/%d/%d.tmp", osd_base_path, osd, oid);
+ sprintf(fn2, "%s/%d/%lld.tmp", osd_base_path, osd, oid);
return fn2;
}