linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] cifs: clean up cifs_unlink and fix silly-renames (try #2)
@ 2008-09-16 18:05 Jeff Layton
  2008-09-16 18:05 ` [PATCH 1/4] cifs: clean up variables in cifs_unlink Jeff Layton
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Jeff Layton @ 2008-09-16 18:05 UTC (permalink / raw)
  To: smfrench; +Cc: linux-fsdevel, linux-cifs-client, smfrench

This is try #2 of the patchset to clean up cifs_unlink and fix up the
silly-rename scheme. The main difference between this one and the
original patchset is the renaming of some variables in cifs_unlink to
more closely match generic VFS code and kernel coding style. It also
fixes a bug -- misspelled flag name in the open flags in the third
patch.

This patchset is a cleanup of the cifs_unlink() code. It moves most of
the "silly-rename" logic into a helper function and has cifs_unlink call
it. It also fixes the silly-rename logic, which didn't work quite right
in some cases and also adds a new function to properly set the
DELETE_ON_CLOSE bit on files that already exist. With this patchset,
CIFS VFS can now pass the op_chmod test in the Connectathon test suite
when tested against a win2k3 server.

The patchset is a little larger than the resulting code. I attempted to
preserve bisectability with it, so I suggest applying them in order. If
everything looks OK, this patchset is probably appropriate for 2.6.28.

Jeff Layton (4):
  cifs: clean up variables in cifs_unlink
  cifs: use common code for turning off ATTR_READONLY in cifs_unlink
  cifs: move silly-rename logic into helper function
  cifs: add function to set file disposition

 fs/cifs/cifsfs.h    |    2 +-
 fs/cifs/cifsproto.h |    2 +
 fs/cifs/cifssmb.c   |   55 ++++++++++++
 fs/cifs/inode.c     |  235 ++++++++++++++++++++++++--------------------------
 4 files changed, 171 insertions(+), 123 deletions(-)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-09-17  1:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 18:05 [PATCH 0/4] cifs: clean up cifs_unlink and fix silly-renames (try #2) Jeff Layton
2008-09-16 18:05 ` [PATCH 1/4] cifs: clean up variables in cifs_unlink Jeff Layton
2008-09-16 18:05 ` [PATCH 2/4] cifs: use common code for turning off ATTR_READONLY " Jeff Layton
2008-09-16 23:35   ` Steve French
2008-09-16 23:37     ` Steve French
2008-09-16 23:52     ` Jeff Layton
2008-09-17  0:05       ` Steve French
2008-09-16 18:05 ` [PATCH 3/4] cifs: move silly-rename logic into helper function Jeff Layton
2008-09-16 18:05 ` [PATCH 4/4] cifs: add function to set file disposition Jeff Layton
2008-09-17  1:33   ` Steve French
2008-09-17  1:49     ` [linux-cifs-client] " Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).