Please refer to
“How to Test SMB”.
Patches to be tested
The mainline version used for testing is
c4a2a49f7df4 smb: move FILE_SYSTEM_ATTRIBUTE_INFO to common/fscc.h.
The following patches were applied to the mainline for testing:
- Patches have been merged into mainline:
- d8f52650b24d smb/client: update some SMB2 status strings
- d159702c9492 smb/client: add two elements to smb2_error_map_table
array
- 523ecd976632 smb: rename to
STATUS_SMB_NO_PREAUTH_INTEGRITY_HASH_OVERLAP
- bf80d1517dc8 smb/client: remove unused elements from
smb2_error_map_table array
- 6c1eb31ecb97 smb/client: reduce loop count in
map_smb2_to_linux_error() by half
- patches have been merged into cifs-2.6.git
for-next:
- a691ac0cdd97 smb: move file_notify_information to common/fscc.h
- c0fd2fbe4f73 smb: move SMB2 Notify Action Flags into
common/smb2pdu.h
- 787a2b803211 smb: move notify completion filter flags into
common/smb2pdu.h
- 14a6f0e19fc7 smb/client: add parentheses to NT error code
definitions containing bitwise OR operator
- 1e4c7c9ab176 smb: add documentation references for smb2 change
notify definitions
- 833f0f46368f smb/client: add 4 NT error code definitions
- 3a0a34572269 smb/client: fix NT_STATUS_UNABLE_TO_FREE_VM value
- 954cbce76316 smb/client: fix NT_STATUS_DEVICE_DOOR_OPEN value
- b9695d00b605 smb/client: fix NT_STATUS_NO_DATA_DETECTED value
- [PATCH
v4 00/10] smb: improve search speed of SMB2 maperror:
- [PATCH v4 05/10] smb/client: sort smb2_error_map_table array
- [PATCH v4 06/10] smb/client: use bsearch() to find target status
code
- [PATCH v4 07/10] smb/client: introduce smb2_get_err_map()
- [PATCH v4 08/10] smb/client: introduce smb2maperror KUnit tests
- [PATCH v4 10/10] smb/server: rename include guard in
smb_common.h
- [PATCH
00/30] smb: improve search speed of SMB1 maperror:
- [PATCH 04/30] smb/server: remove unused nterr.h
- [PATCH 07/30] smb/client: introduce DEFINE_CMP_FUNC()
- [PATCH 08/30] smb/client: sort ntstatus_to_dos_map array
- [PATCH 09/30] smb/client: create netmisc_test.c and introduce
- [PATCH 10/30] smb/client: introduce KUnit test to check sort
result
- [PATCH 11/30] smb/client: introduce DEFINE_SEARCH_FUNC()
- [PATCH 12/30] smb/client: use bsearch() to find target in
- [PATCH 13/30] smb/client: remove useless elements from
- [PATCH 14/30] smb/client: introduce DEFINE_CHECK_SEARCH_FUNC()
- [PATCH 15/30] smb/client: introduce KUnit test to check search
result
- [PATCH 16/30] smb/client: sort nt_errs array
- [PATCH 17/30] smb/client: introduce KUnit test to check sort
result
- [PATCH 18/30] smb/client: use bsearch() to find target in
nt_errs
- [PATCH 19/30] smb/client: remove useless elements from nt_errs
array
- [PATCH 20/30] smb/client: introduce KUnit test to check search
result
- [PATCH 21/30] smb/client: sort mapping_table_ERRDOS array
- [PATCH 22/30] smb/client: introduce KUnit test to check sort
result
- [PATCH 23/30] smb/client: use bsearch() to find target in
- [PATCH 24/30] smb/client: remove useless elements from
- [PATCH 25/30] smb/client: introduce KUnit test to check search
result
- [PATCH 26/30] smb/client: sort mapping_table_ERRSRV array
- [PATCH 27/30] smb/client: introduce KUnit test to check sort
result
- [PATCH 28/30] smb/client: use bsearch() to find target in
- [PATCH 29/30] smb/client: remove useless elements from
- [PATCH 30/30] smb/client: introduce KUnit test to check search
result
- [PATCH
00/13] smb: move duplicate definitions into common header file, part
2:
- [PATCH 05/13] smb: move File Attributes definitions into
common/fscc.h
- [PATCH 06/13] smb: update struct duplicate_extents_to_file_ex
- [PATCH 07/13] smb/server: add comment to FileSystemName of
FileFsAttributeInformation
- [PATCH 08/13] smb: move smb3_fs_vol_info into common/fscc.h
- [PATCH 09/13] smb: move some definitions from common/smb2pdu.h
into
- [PATCH 10/13] smb/client: remove DeviceType Flags and Device
Characteristics definitions
- [PATCH 11/13] smb: introduce struct create_posix_ctxt_rsp
- [PATCH 12/13] smb: introduce struct file_posix_info
- [PATCH 13/13] smb: move some SMB1 definitions into
common/smb1pdu.h
Test Results
After applying the above patches to mainline, no
additional failed test cases were observed in the test
results.
The mainline version used for testing is
c4a2a49f7df4 smb: move FILE_SYSTEM_ATTRIBUTE_INFO to common/fscc.h.
KUnit Test Results
After running modprobe cifs, test results are as
follows:
[ 2375.502427] Key type cifs.spnego registered
[ 2375.503422] Key type cifs.idmap registered
[ 2375.504330] KTAP version 1
[ 2375.504927] 1..2
[ 2375.505772] KTAP version 1
[ 2375.506527] # Subtest: smb1_maperror
[ 2375.507316] # module: cifs
[ 2375.507318] 1..8
[ 2375.508639] ok 1 ntstatus_to_dos_map_check_sort
[ 2375.508833] ok 2 nt_errs_check_sort
[ 2375.510018] ok 3 mapping_table_ERRDOS_check_sort
[ 2375.510973] ok 4 mapping_table_ERRSRV_check_sort
[ 2375.512329] ok 5 ntstatus_to_dos_map_check_search
[ 2375.513637] ok 6 nt_errs_check_search
[ 2375.514918] ok 7 mapping_table_ERRDOS_check_search
[ 2375.515977] ok 8 mapping_table_ERRSRV_check_search
[ 2375.517106] # smb1_maperror: pass:8 fail:0 skip:0 total:8
[ 2375.518222] # Totals: pass:8 fail:0 skip:0 total:8
[ 2375.519354] ok 1 smb1_maperror
[ 2375.520996] KTAP version 1
[ 2375.521670] # Subtest: smb2_maperror
[ 2375.522502] # module: cifs
[ 2375.522503] 1..2
[ 2375.523749] ok 1 maperror_test_check_sort
[ 2375.524424] ok 2 maperror_test_check_search
[ 2375.525331] # smb2_maperror: pass:2 fail:0 skip:0 total:2
[ 2375.526296] # Totals: pass:2 fail:0 skip:0 total:2
[ 2375.527425] ok 2 smb2_maperror
Xfstests and Smbtorture Test
Results
Test
results of the mainline version:
Test
results after applying the above patches: