Skip to content

cifs: implement proper hardlink detection (try #3)

Jeff Layton linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13cifs: have cifs_NTtimeToUnix take a little-endian argfs/cifs/cifsproto.h fs/cifs/file.c fs/cifs/inode.c +2 more+20 -231 reply
2/13cifs: make cnvrtDosUnixTm take a little-endian args and an offsetfs/cifs/cifsproto.h fs/cifs/cifssmb.c fs/cifs/netmisc.c +1 more+18 -341 reply
3/13cifs: reorganize get_cifs_aclfs/cifs/cifsacl.c fs/cifs/cifsproto.h fs/cifs/inode.c+55 -510 replies
4/13cifs: clean up set_cifs_acl interfacesfs/cifs/cifsacl.c+41 -373 replies
5/13cifs: rename cifs_iget to cifs_root_igetfs/cifs/cifsfs.c fs/cifs/cifsfs.h fs/cifs/inode.c+3 -31 reply
6/13cifs: add new cifs_iget function and convert unix codepath to use itfs/cifs/cifsfs.h fs/cifs/cifsglob.h fs/cifs/cifsproto.h +2 more+254 -1990 replies
7/13cifs: convert posix readdir codepath to use cifs_igetfs/cifs/readdir.c+145 -1500 replies
8/13cifs: convert cifs_get_inode_info to use cifs_igetfs/cifs/cifsacl.c fs/cifs/cifsglob.h fs/cifs/cifsproto.h +1 more+165 -2170 replies
9/13cifs: convert non-posix readdir codepath to use cifs_igetfs/cifs/cifsglob.h fs/cifs/inode.c fs/cifs/readdir.c+83 -2630 replies
10/13cifs: remove cifs_new_inodefs/cifs/cifsproto.h fs/cifs/inode.c+0 -440 replies
11/13cifs: make serverino the default when mountingfs/cifs/connect.c+2 -00 replies
12/13cifs: remove cifsInodeInfo->inUse counterfs/cifs/cifsfs.c fs/cifs/cifsglob.h+0 -20 replies
13/13cifs: remove "hardlink detection" from cifs_renamefs/cifs/inode.c+1 -590 replies

Reviews trailers per patch

3 of 13 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/13R-b
2/13R-b
3/13
4/13
5/13R-b
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/13] cifs: implement proper hardlink detection (try #3)

This set is the third respin of a patchset to fix the hardlink detection and handling in CIFS. The changes from the last set are fairly minor:

1) some small patch reorganization (squashing some of the patches together, mostly)

2) changed most of the *_to_fattr routines to take a pointer to an already allocated cifs_fattr. Also changed most of the callers to just declare cifs_fattr on the stack

3) 2 patches from Christoph H. to clean up some of the cifs_acl interfaces.

4) properly fix get_cifs_acl so that it can work with a NULL inode pointer. My earlier attempt was broken.

5) fixed a small bug in handling of "noatime" when spawning new inodes

This patchset seems to properly pass connectathon test suite with posix extensions enabled and disabled and with cifsacl enabled.

Christoph Hellwig (2):
cifs: reorganize get_cifs_acl
cifs: clean up set_cifs_acl interfaces

Jeff Layton (11):
cifs: have cifs_NTtimeToUnix take a little-endian arg
cifs: make cnvrtDosUnixTm take a little-endian args and an offset
cifs: rename cifs_iget to cifs_root_iget
cifs: add new cifs_iget function and convert unix codepath to use it
cifs: convert posix readdir codepath to use cifs_iget
cifs: convert cifs_get_inode_info to use cifs_iget
cifs: convert non-posix readdir codepath to use cifs_iget
cifs: remove cifs_new_inode
cifs: make serverino the default when mounting
cifs: remove cifsInodeInfo->inUse counter
cifs: remove "hardlink detection" from cifs_rename

 fs/cifs/cifsacl.c   |  200 +++++++------
 fs/cifs/cifsfs.c    |    3 +-
 fs/cifs/cifsfs.h    |   15 +-
 fs/cifs/cifsglob.h  |   28 ++-
 fs/cifs/cifsproto.h |   21 +-
 fs/cifs/cifssmb.c   |    4 +-
 fs/cifs/connect.c   |    2 +
 fs/cifs/dir.c       |   20 +-
 fs/cifs/file.c      |    2 +-
 fs/cifs/inode.c     |  804 +++++++++++++++++++++------------------------------
 fs/cifs/netmisc.c   |   24 +-
 fs/cifs/readdir.c   |  552 +++++++++++------------------------
 12 files changed, 690 insertions(+), 985 deletions(-)