aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMiklos Szeredi <[email protected]>2011-02-25 13:44:58 +0000
committerMiklos Szeredi <[email protected]>2011-02-25 13:44:58 +0000
commit8d56addd70c7c0626502569e22cc8fce49ae39f5 (patch)
tree43e5e51dfa7a1b7e566cb235d44d5991e0c806d0 /net/unix/af_unix.c
parentfuse: fix hang of single threaded fuseblk filesystem (diff)
downloadkernel-8d56addd70c7c0626502569e22cc8fce49ae39f5.tar.gz
kernel-8d56addd70c7c0626502569e22cc8fce49ae39f5.zip
fuse: fix truncate after open
Commit e1181ee6 "vfs: pass struct file to do_truncate on O_TRUNC opens" broke the behavior of open(O_TRUNC|O_RDONLY) in fuse. Fuse assumed that when called from open, a truncate() will be done, not an ftruncate(). Fix by restoring the old behavior, based on the ATTR_OPEN flag. Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions