Skip to content

Commit

Permalink
Merge pull request #6853 from Abhishekvrshny/wip-13889-infernalis
Browse files Browse the repository at this point in the history
infernalis: Segmentation fault accessing file using fuse mount

Reviewed-by: Yan, Zheng <zyan@redhat.com>
  • Loading branch information
Loic Dachary committed Feb 10, 2016
2 parents 2bfc75a + a2644ed commit 4dc9791
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/client/Client.cc
Expand Up @@ -11291,21 +11291,21 @@ int Client::check_pool_perm(Inode *in, int need)
snprintf(oid_buf, sizeof(oid_buf), "%llx.00000000", (unsigned long long)in->ino);
object_t oid = oid_buf;

SnapContext nullsnapc;

C_SaferCond rd_cond;
ObjectOperation rd_op;
rd_op.stat(NULL, (utime_t*)NULL, NULL);

objecter->mutate(oid, OSDMap::file_to_object_locator(in->layout), rd_op,
in->snaprealm->get_snap_context(), ceph_clock_now(cct), 0,
&rd_cond, NULL);
nullsnapc, ceph_clock_now(cct), 0, &rd_cond, NULL);

C_SaferCond wr_cond;
ObjectOperation wr_op;
wr_op.create(true);

objecter->mutate(oid, OSDMap::file_to_object_locator(in->layout), wr_op,
in->snaprealm->get_snap_context(), ceph_clock_now(cct), 0,
&wr_cond, NULL);
nullsnapc, ceph_clock_now(cct), 0, &wr_cond, NULL);

client_lock.Unlock();
int rd_ret = rd_cond.wait();
Expand Down

0 comments on commit 4dc9791

Please sign in to comment.