Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233726
b: refs/heads/master
c: 8d56add
h: refs/heads/master
v: v3
  • Loading branch information
Miklos Szeredi committed Feb 25, 2011
1 parent 1cde11a commit 6a37df4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a18ec176c934ca1bc9dc61580a5e0e90a9b5733
refs/heads/master: 8d56addd70c7c0626502569e22cc8fce49ae39f5
7 changes: 5 additions & 2 deletions trunk/fs/fuse/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1283,8 +1283,11 @@ static int fuse_do_setattr(struct dentry *entry, struct iattr *attr,
if (err)
return err;

if ((attr->ia_valid & ATTR_OPEN) && fc->atomic_o_trunc)
return 0;
if (attr->ia_valid & ATTR_OPEN) {
if (fc->atomic_o_trunc)
return 0;
file = NULL;
}

if (attr->ia_valid & ATTR_SIZE)
is_truncate = true;
Expand Down

0 comments on commit 6a37df4

Please sign in to comment.