]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fs/9p: Don't use O_TRUNC flag in TOPEN and TLOPEN request
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 5 Feb 2013 05:56:28 +0000 (11:26 +0530)
committerEric Van Hensbergen <ericvh@gmail.com>
Sun, 10 Feb 2013 22:29:47 +0000 (16:29 -0600)
commit03f0e022736d123bc42907a958535f4f10d0c4c3
tree05ae373874c365c4f71b709a412e1fcafd58ec76
parent7ffdea7ea36cd1efebab65d1b221f05deaab00cd
fs/9p: Don't use O_TRUNC flag in TOPEN and TLOPEN request

We do the truncate via setattr request, hence don't pass the O_TRUNC flag in
open request. Without this patch we end up sending zero sized write request
to server when we try to truncate. Some servers (VirtFS) were not handling that
properly.

Reported-by: M. Mohan Kumar <mohan@in.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_file.c
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c