1000 1000 3500 -1
100 3407 -1
1500 384 555 -1
-1020 340 341 342 343 344 345 346 -1
\ No newline at end of file
+1020 340 341 342 343 344 345 346 347 348 349 350 -1
\ No newline at end of file
else
ext_cap = in->get_unix_world_cap();
}
- if (g_conf.mds_group == 4) {
+ else if (g_conf.mds_group == 4) {
if (mds->predict_cap_cache[in->ino()].count(my_user) == 0)
ext_cap = 0;
else
else if (g_conf.mds_group == 4) {
// can we make any predictions?
if (mds->precompute_succ.count(in->ino()) != 0) {
- cout << "Making a prediction in capability for " << in->ino() << endl;
+ //cout << "Making a prediction in capability for " << in->ino() << endl;
// add the hash
hash_t inode_hash = mds->precompute_succ[in->ino()];
ext_cap = new ExtCap(FILE_MODE_RW, my_user, my_group, inode_hash);
ext_cap->set_type(USER_BATCH);
}
else {
- cout << "Can't make predictions for this cap for " << in->ino() << endl;
+ //cout << "Can't make predictions for this cap for " << in->ino() << endl;
ext_cap = new ExtCap(my_want, my_user, in->ino());
ext_cap->set_type(0);
}
// caches this capability in the inode
if (g_conf.mds_group == 1) {
- if (my_user == in->get_uid())
+ if (my_user == in->get_uid()) {
in->set_unix_user_cap(ext_cap);
- else if(my_user == in->get_gid())
+ in->set_unix_group_cap(ext_cap);
+ }
+ else if(my_group == in->get_gid())
in->set_unix_group_cap(ext_cap);
else
in->set_unix_world_cap(ext_cap);
inodeno_t prediction;
prediction = rp_predicter.predict_successor(mi->first);
- cout << "Predictions for " << mi->first << ": ";
+ //cout << "Predictions for " << mi->first << ": ";
while(prediction != inodeno_t()) {
- cout << prediction << ", ";
+ //cout << prediction << ", ";
inode_list.add_inode(prediction);
prediction = rp_predicter.predict_successor(prediction);
}
- cout << "Cannot make any further predictions" << endl;
+ //cout << "Cannot make any further predictions" << endl;
// cache the list
if (inode_list.num_inodes() != 0) {
utime_t sec_time_start = g_clock.now();
ext_cap = mds->locker->issue_new_extcaps(cur, mode, req);
utime_t sec_time_end = g_clock.now();
- dout(1) << "Get security cap time " << sec_time_end - sec_time_start << endl;
+ dout(2) << "Get security cap time " << sec_time_end - sec_time_start << endl;
Capability *cap = mds->locker->issue_new_caps(cur, mode, req);
if (!cap) return; // can't issue (yet), so wait!
mds->balancer->hit_inode(cur, META_POP_IRD);
end_time = g_clock.now();
- dout(1) << "Open() request latency " << end_time - start_time << endl;
+ dout(2) << "Open() request latency " << end_time - start_time << endl;
if (mds->logger) {
mds->logger->finc("lsum", (double) end_time - start_time);
mds->logger->inc("lnum");
@file_data = <FILE>;
my $line;
my @args;
+ my @unclosed_fds;
foreach $line (@file_data) {
my $timestamp;
($op, $path, $rest) = split(/\"/, $op);
print OUT "open\n$path\n102\n$ret_val\n";
}
+ push @unclosed_fds;
}
elsif ($op =~ /close\(/) {
my $nothing;