int Client::open(const char *relpath, int flags, mode_t mode)
{
- dout(3) << "open enter(" << relpath << ", " << flags << ") = " << dendl;
+ dout(3) << "open enter(" << relpath << ", " << flags << "," << mode << ") = " << dendl;
Mutex::Locker lock(client_lock);
tout << "open" << std::endl;
tout << relpath << std::endl;
tout << flags << std::endl;
- dout(5) << "open(" << relpath << ", " << flags << ", " << mode << ")" << dendl;
-
Fh *fh = NULL;
filepath path(relpath);
trim_cache();
- dout(3) << "create(" << path << ", 0" << oct << mode << dec << ") = " << res << dendl;
+ dout(3) << "create(" << path << ", 0" << oct << mode << dec
+ << " layout " << file_stripe_unit
+ << ' ' << file_stripe_count
+ << ' ' << object_size
+ << ' ' << file_replication
+ << ' ' << preferred_pg
+ <<") = " << res << dendl;
return res;
}
void Client::set_default_preferred_pg(int pg)
{
if (pg >= 0)
- preferred_pg = pg;
+ preferred_pg = pg;
+ else
+ dout(5) << "Attempt to set preferred_pg " << pg << " < 0!" << dendl;
}
int Client::describe_layout(int fd, ceph_file_layout *lp)