mount/fuse: Derive fd from the file handle for setattr
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 146 (Add setattr FOP) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
This commit is contained in:
parent
b4dd753400
commit
6bfbcf7326
@ -1057,7 +1057,9 @@ fuse_setattr (xlator_t *this, fuse_in_header_t *finh, void *msg)
|
||||
state->callcount = 2;
|
||||
}
|
||||
|
||||
state->fd = fd_lookup (state->loc.inode, finh->pid);
|
||||
if (fsi->valid & FATTR_FH) {
|
||||
state->fd = FH_TO_FD (fsi->fh);
|
||||
}
|
||||
|
||||
if (fsi->valid & FATTR_SIZE) {
|
||||
fuse_do_truncate (state, fsi);
|
||||
|
Loading…
x
Reference in New Issue
Block a user