Skip to content

Commit

Permalink
fix curvefs release read return Bad File Description
Browse files Browse the repository at this point in the history
  • Loading branch information
cw123 committed Mar 30, 2022
1 parent d85ef9c commit 0f1a454
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions curvefs/src/client/curve_fuse_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,7 @@ void FuseOpRead(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
return;
}

struct fuse_bufvec bufvec;
bufvec.count = 1;
bufvec.off = 0;
bufvec.idx = 0;
bufvec.buf[0].size = rSize;
struct fuse_bufvec bufvec = FUSE_BUFVEC_INIT(rSize);
bufvec.buf[0].mem = buffer.get();

fuse_reply_data(req, &bufvec, FUSE_BUF_SPLICE_MOVE);
Expand Down

0 comments on commit 0f1a454

Please sign in to comment.