smb: fix some bugs, move duplicate definitions into common header file, part 2
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest7 patches 10 repliesIn review
- v45 patches 9 repliesSuperseded
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | smb/client: fix buffer size for smb311_posix_qinfo in smb2_compound_op()fs/ | +2 | 3 replies | |
| 2/7 | smb/client: fix buffer size for smb311_posix_qinfo in SMB311_posix_query_info()fs/ | +1 | 1 reply | |
| 3/7 | smb/client: remove unused SMB311_posix_query_info()fs/ fs/ | +0 | 1 reply | |
| 4/7 | smb: move some definitions from common/smb2pdu.h into common/fscc.hfs/ fs/ | +315 | 0 replies | |
| 5/7 | smb: move file_basic_info into common/fscc.hfs/ fs/ fs/ +1 more | +17 | 0 replies | |
| 6/7 | smb: move filesystem_vol_info into common/fscc.hfs/ fs/ fs/ +2 more | +18 | 0 replies | |
| 7/7 | smb: introduce struct file_posix_infofs/ fs/ fs/ +7 more | +78 | 4 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | ChenXiaoSong | Steve French |
|---|---|---|
| 1/7 | R-b | |
| 2/7 | R-b | |
| 3/7 | R-b | |
| 4/7 | R-b | R-b |
| 5/7 | R-b | |
| 6/7 | R-b | R-b |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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