The Samba-Bugzilla – Attachment 4962 Details for
Bug 6898
Samba duplicates file content on appending
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
kernel patch -- don't send SMB_O_APPEND on O_APPEND opens
0001-cifs-don-t-send-SMB_O_APPEND-when-file-is-opened-wi.patch (text/plain), 1.12 KB, created by
Jeff Layton
on 2009-11-18 05:42:11 UTC
(
hide
)
Description:
kernel patch -- don't send SMB_O_APPEND on O_APPEND opens
Filename:
MIME Type:
Creator:
Jeff Layton
Created:
2009-11-18 05:42:11 UTC
Size:
1.12 KB
patch
obsolete
>From 78407338b104307ce5af3742e5d9161777b43263 Mon Sep 17 00:00:00 2001 >From: Jeff Layton <jlayton@redhat.com> >Date: Wed, 18 Nov 2009 06:38:16 -0500 >Subject: [PATCH] cifs: don't send SMB_O_APPEND when file is opened with O_APPEND > >The meaning of SMB_O_APPEND is a bit nebulous... > >SMB writes are sent with a starting offset and length. When the file is >opened with SMB_O_APPEND, does the offset mean the offset from the EOF >or does it mean an absolute offset? CIFS assumes the latter, which means >that the SMB_O_APPEND flag has no effect. Therefore, we shouldn't send >it in the first place. > >Signed-off-by: Jeff Layton <jlayton@redhat.com> >--- > fs/cifs/dir.c | 2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > >diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c >index 627a60a..6c1f02b 100644 >--- a/fs/cifs/dir.c >+++ b/fs/cifs/dir.c >@@ -214,8 +214,6 @@ int cifs_posix_open(char *full_path, struct inode **pinode, > posix_flags |= SMB_O_EXCL; > if (oflags & O_TRUNC) > posix_flags |= SMB_O_TRUNC; >- if (oflags & O_APPEND) >- posix_flags |= SMB_O_APPEND; > if (oflags & O_SYNC) > posix_flags |= SMB_O_SYNC; > if (oflags & O_DIRECTORY) >-- >1.5.5.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6898
:
4957
|
4958
|
4959
|
4960
| 4962 |
4982
|
4983
|
4984
|
4985
|
4987
|
4990