Skip to content

smb: move duplicate definitions into common header file, part 2

[email protected] linux-cifs lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest7 patches 0 repliesNew

Changes in v2 from the cover letter

- Patch #0001: update FILE_ATTRIBUTE_MASK value
- Patch #0002: __u64 StructureSize -> __le64 StructureSize
- Patch #0003: conflicts have been resolved

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7smb: move File Attributes definitions into common/fscc.hfs/smb/common/fscc.h fs/smb/common/smb2pdu.h+45 -350 replies
2/7smb: update struct duplicate_extents_to_file_exfs/smb/common/smb2pdu.h+2 -10 replies
3/7smb: move some SMB1 definitions into common/smb1pdu.hfs/smb/client/cifspdu.h fs/smb/common/smb1pdu.h fs/smb/common/smb2pdu.h +2 more+58 -430 replies
4/7smb: move smb3_fs_vol_info into common/fscc.hfs/smb/common/fscc.h fs/smb/common/smb2pdu.h fs/smb/server/smb2pdu.c +1 more+16 -240 replies
5/7smb: move some definitions from common/smb2pdu.h into common/fscc.hfs/smb/common/fscc.h fs/smb/common/smb2pdu.h+316 -3070 replies
6/7smb: introduce struct create_posix_ctxt_rspfs/smb/client/smb2pdu.c fs/smb/client/smb2pdu.h fs/smb/common/smb2pdu.h +2 more+30 -160 replies
7/7smb: introduce struct file_posix_infofs/smb/client/inode.c fs/smb/client/readdir.c fs/smb/client/reparse.h +5 more+108 -1240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] smb: move duplicate definitions into common header file, part 2

From: ChenXiaoSong <[email protected]>

For more detailed information about the patches to be reviewed, please see the link:
https://chenxiaosong.com/en/smb-patch.html

This is a continuous effort to move duplicated definitions in both client and server into common header files, which makes the code easier to maintain.

The previous work is here:
part 1: https://lore.kernel.org/linux-cifs/[email protected]/

v1: https://lore.kernel.org/all/[email protected]/
The following patches from v1 have already been merged into cifs-2.6.git for-next and ksmbd.git ksmbd-for-next:
- smb/server: add comment to FileSystemName of FileFsAttributeInformation
- smb/client: remove DeviceType Flags and Device Characteristics definitions
- smb: move file_notify_information to common/fscc.h
- smb: move SMB2 Notify Action Flags into common/smb2pdu.h
- smb: move notify completion filter flags into common/smb2pdu.h
- smb: add documentation references for smb2 change notify definitions

The following patches from this version(v2) have already been merged into cifs-2.6.git for-next:
- smb: move some SMB1 definitions into common/smb1pdu.h
- smb: move File Attributes definitions into common/fscc.h
- smb: update struct duplicate_extents_to_file_ex

v1->v2:
- Patch #0001: update FILE_ATTRIBUTE_MASK value
- Patch #0002: __u64 StructureSize -> __le64 StructureSize
- Patch #0003: conflicts have been resolved

ChenXiaoSong (2):
smb: move File Attributes definitions into common/fscc.h
smb: update struct duplicate_extents_to_file_ex

ZhangGuoDong (5):
smb: move some SMB1 definitions into common/smb1pdu.h
smb: move smb3_fs_vol_info into common/fscc.h
smb: move some definitions from common/smb2pdu.h into common/fscc.h
smb: introduce struct create_posix_ctxt_rsp
smb: introduce struct file_posix_info

 fs/smb/client/cifspdu.h    |   2 +-
 fs/smb/client/inode.c      |  22 +-
 fs/smb/client/readdir.c    |  28 +--
 fs/smb/client/reparse.h    |   4 +-
 fs/smb/client/smb2pdu.c    |   9 +-
 fs/smb/client/smb2pdu.h    |  21 +-
 fs/smb/common/fscc.h       | 415 ++++++++++++++++++++++++++++++++++-
 fs/smb/common/smb1pdu.h    |  56 +++++
 fs/smb/common/smb2pdu.h    | 432 ++-----------------------------------
 fs/smb/common/smbglob.h    |   2 -
 fs/smb/server/oplock.c     |   8 +-
 fs/smb/server/smb2pdu.c    |  84 ++++----
 fs/smb/server/smb2pdu.h    |  27 +--
 fs/smb/server/smb_common.h |   9 +-
 14 files changed, 572 insertions(+), 547 deletions(-)
 create mode 100644 fs/smb/common/smb1pdu.h
Signature · 1 line
2.43.0