Skip to content

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

[email protected] linux-cifs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 10 repliesIn review
  2. v45 patches 9 repliesSuperseded
  3. v35 patches 9 repliesSuperseded

Changes in v5 from the cover letter

- Add patch #01 #02 #03
- Patch #06: keep vol_serial_number as u32 in smb_mnt_fs_info and cifs_tcon
- Patch #07:
- Add new flexible array member sids_and_name[] to file_posix_info
- smb311_posix_qinfo -> file_posix_info

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7smb/client: fix buffer size for smb311_posix_qinfo in smb2_compound_op()fs/smb/client/smb2inode.c+2 -23 replies
2/7smb/client: fix buffer size for smb311_posix_qinfo in SMB311_posix_query_info()fs/smb/client/smb2pdu.c+1 -11 reply
3/7smb/client: remove unused SMB311_posix_query_info()fs/smb/client/smb2pdu.c fs/smb/client/smb2proto.h+0 -211 reply
4/7smb: move some definitions from common/smb2pdu.h into common/fscc.hfs/smb/common/fscc.h fs/smb/common/smb2pdu.h+315 -3070 replies
5/7smb: move file_basic_info into common/fscc.hfs/smb/client/smb1pdu.h fs/smb/common/fscc.h fs/smb/server/smb2pdu.c +1 more+17 -250 replies
6/7smb: move filesystem_vol_info into common/fscc.hfs/smb/client/smb2pdu.c fs/smb/common/fscc.h fs/smb/common/smb2pdu.h +2 more+18 -250 replies
7/7smb: introduce struct file_posix_infofs/smb/client/cifsglob.h fs/smb/client/inode.c fs/smb/client/readdir.c +7 more+78 -1084 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchChenXiaoSongSteve French
1/7R-b
2/7R-b
3/7R-b
4/7R-b R-b
5/7R-b
6/7R-b R-b
7/7R-b

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

Read the v5 thread

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

From: ZhangGuoDong <[email protected]>

v4->v5:
- Add patch #01 #02 #03
- Patch #06: keep vol_serial_number as u32 in smb_mnt_fs_info and cifs_tcon
- Patch #07:
- Add new flexible array member sids_and_name[] to file_posix_info
- smb311_posix_qinfo -> file_posix_info

v4: https://lore.kernel.org/linux-cifs/[email protected]/

v1: https://lore.kernel.org/all/[email protected]/
v2: https://lore.kernel.org/linux-cifs/[email protected]/

The following patches from v1 and v2 have already been merged into mainline:
- 94d5b8dbc5d9 smb: move some SMB1 definitions into common/smb1pdu.h
- 2b6abb893e71 smb: move File Attributes definitions into common/fscc.h
- c97503321ed3 smb: update struct duplicate_extents_to_file_ex
- 2e0d224d8988 smb/server: add comment to FileSystemName of FileFsAttributeInformation
- ab0347e67dac smb/client: remove DeviceType Flags and Device Characteristics definitions
- 08c2a7d2bae9 smb: move file_notify_information to common/fscc.h
- 6539e18517b6 smb: move SMB2 Notify Action Flags into common/smb2pdu.h
- 9ec7629b430a smb: move notify completion filter flags into common/smb2pdu.h
- bcdd6cfaf2ec smb: add documentation references for smb2 change notify definitions

The following patches from v4 have already been merged into cifs-2.6.git for-next:
- smb: update some doc references

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]/

ZhangGuoDong (7):
smb/client: fix buffer size for smb311_posix_qinfo in

    smb2_compound_op()
  smb/client: fix buffer size for smb311_posix_qinfo in
    SMB311_posix_query_info()

smb/client: remove unused SMB311_posix_query_info()
smb: move some definitions from common/smb2pdu.h into common/fscc.h
smb: move file_basic_info into common/fscc.h
smb: move filesystem_vol_info into common/fscc.h
smb: introduce struct file_posix_info

 fs/smb/client/cifsglob.h   |   2 +-
 fs/smb/client/inode.c      |   2 +-
 fs/smb/client/readdir.c    |  28 +--
 fs/smb/client/reparse.h    |   2 +-
 fs/smb/client/smb1pdu.h    |   9 -
 fs/smb/client/smb2inode.c  |   4 +-
 fs/smb/client/smb2pdu.c    |  26 +--
 fs/smb/client/smb2pdu.h    |  21 +--
 fs/smb/client/smb2proto.h  |   3 -
 fs/smb/common/fscc.h       | 371 ++++++++++++++++++++++++++++++++++++-
 fs/smb/common/smb2pdu.h    | 343 ----------------------------------
 fs/smb/server/smb2pdu.c    |  65 +++----
 fs/smb/server/smb2pdu.h    |  30 +--
 fs/smb/server/smb_common.h |   8 -
 14 files changed, 428 insertions(+), 486 deletions(-)
Signature · 1 line
2.52.0