Add an option for running fstests on CIFS
cover Add an option for running fstests on CIFS
These patches add the ability to run fstests on CIFS. The playbooks are very similar to their NFS counterparts. The smbd playbook sets up a Samba server, but could be expanded to set up ksmbd in the future. The following options are available: plain SMB3, SMB3 with signing, and SMB3 with encryption.
The expunge files are based on the tests that were consistently failing on 6.8.4-200.fc39.x86_64, plus some tests that just take way too long (generic/476, generic/650).
-Scott
Scott Mayhew (6):
oscheck.sh: add some special cases for cifs gendisks.sh: add special case for cifs
bringup: add a playbook to bring up an SMB server
playbooks: add a playbook to create smb shares
fstests: add an option for testing on CIFS
fstests: add expunges for cifs
Makefile | 1 + kconfigs/Kconfig.bringup.goals | 1 + kconfigs/Kconfig.smbd | 72 ++++++++++++ playbooks/roles/fstests/defaults/main.yml | 6 + .../tasks/install-deps/debian/main.yml | 1 + .../tasks/install-deps/redhat/main.yml | 1 + .../fstests/tasks/install-deps/suse/main.yml | 11 ++ playbooks/roles/fstests/tasks/main.yml | 39 +++++++ .../roles/fstests/templates/cifs/cifs.config | 33 ++++++ playbooks/roles/gen_hosts/defaults/main.yml | 1 + .../roles/gen_hosts/templates/fstests.j2 | 6 + playbooks/roles/gen_nodes/defaults/main.yml | 1 + playbooks/roles/gen_nodes/tasks/main.yml | 19 ++++ playbooks/roles/smbd/defaults/main.yml | 5 + .../smbd/tasks/install-deps/debian/main.yml | 31 ++++++ .../roles/smbd/tasks/install-deps/main.yml | 12 ++ .../smbd/tasks/install-deps/redhat/main.yml | 33 ++++++ .../smbd/tasks/install-deps/suse/main.yml | 29 +++++ playbooks/roles/smbd/tasks/main.yml | 95 ++++++++++++++++ playbooks/roles/smbd/templates/smb.conf.j2 | 11 ++ playbooks/roles/smbd/vars/Debian.yml | 10 ++ playbooks/roles/smbd/vars/RedHat.yml | 12 ++ playbooks/roles/smbd/vars/Suse.yml | 10 ++ playbooks/roles/smbd_add_share/README.md | 57 ++++++++++ .../roles/smbd_add_share/defaults/main.yml | 5 + playbooks/roles/smbd_add_share/tasks/main.yml | 103 ++++++++++++++++++ .../roles/smbd_add_share/templates/share.j2 | 7 ++ playbooks/smbd.yml | 4 + scripts/smbd.Makefile | 20 ++++ workflows/fstests/Kconfig | 20 +++- workflows/fstests/Makefile | 4 + workflows/fstests/cifs/Kconfig | 75 +++++++++++++ workflows/fstests/cifs/Makefile | 17 +++ .../expunges/any/cifs/unassigned/all.txt | 60 ++++++++++ .../any/cifs/unassigned/cifs_smb3_sign.txt | 2 + workflows/fstests/scripts/gendisks.sh | 2 +- workflows/fstests/scripts/oscheck.sh | 8 +- 37 files changed, 818 insertions(+), 6 deletions(-) create mode 100644 kconfigs/Kconfig.smbd create mode 100644 playbooks/roles/fstests/templates/cifs/cifs.config create mode 100644 playbooks/roles/smbd/defaults/main.yml create mode 100644 playbooks/roles/smbd/tasks/install-deps/debian/main.yml create mode 100644 playbooks/roles/smbd/tasks/install-deps/main.yml create mode 100644 playbooks/roles/smbd/tasks/install-deps/redhat/main.yml create mode 100644 playbooks/roles/smbd/tasks/install-deps/suse/main.yml create mode 100644 playbooks/roles/smbd/tasks/main.yml create mode 100644 playbooks/roles/smbd/templates/smb.conf.j2 create mode 100644 playbooks/roles/smbd/vars/Debian.yml create mode 100644 playbooks/roles/smbd/vars/RedHat.yml create mode 100644 playbooks/roles/smbd/vars/Suse.yml create mode 100644 playbooks/roles/smbd_add_share/README.md create mode 100644 playbooks/roles/smbd_add_share/defaults/main.yml create mode 100644 playbooks/roles/smbd_add_share/tasks/main.yml create mode 100644 playbooks/roles/smbd_add_share/templates/share.j2 create mode 100644 playbooks/smbd.yml create mode 100644 scripts/smbd.Makefile create mode 100644 workflows/fstests/cifs/Kconfig create mode 100644 workflows/fstests/cifs/Makefile create mode 100644 workflows/fstests/expunges/any/cifs/unassigned/all.txt create mode 100644 workflows/fstests/expunges/any/cifs/unassigned/cifs_smb3_sign.txt
Signature · 1 line
2.44.0
PATCH 1/6 oscheck.sh: add some special cases for cifs
There's a few routines where we exit without doing anything if the filesystem is NFS. We need to do that for CIFS as well.
--- workflows/fstests/scripts/oscheck.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
workflows/fstests/scripts/oscheck.sh +4 -4
@@ -439,8 +439,8 @@ _check_dev_setup() { mkdir -p $TEST_DIR - # Nothing to be done for NFS - if [ "$FSTYP" = "nfs" ]; then + # Nothing to be done for NFS or CIFS + if [ "$FSTYP" = "nfs" -o "$FSTYP" = "cifs" ]; then return fi
@@ -520,7 +520,7 @@ check_test_dev_setup() fi # FIXME: check server for reachability? - if [ "$FSTYP" = "nfs" ]; then + if [ "$FSTYP" = "nfs" -o "$FSTYP" = "cifs" ]; then return fi
@@ -548,7 +548,7 @@ check_dev_pool() { DEV_POOL_RET=0 - if [ "$FSTYP" = "nfs" ]; then + if [ "$FSTYP" = "nfs" -o "$FSTYP" = "cifs" ]; then return 0 fi
Signature · 1 line
2.44.0
PATCH 2/6 gendisks.sh: add special case for cifs
In reply to Scott MayhewAs with NFS, there's no mkfs for CIFS.
--- workflows/fstests/scripts/gendisks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
workflows/fstests/scripts/gendisks.sh +1 -1
@@ -176,7 +176,7 @@ else if [[ "$TEST_RTDEV" != "" ]]; then RT_MKFS_OPTS="-r rtdev=$TEST_RTDEV" fi - if [ $FSTYP = "nfs" ]; then + if [ $FSTYP = "nfs" -o $FSTYP = "cifs" ]; then echo "$(basename $0) skipping mkfs" else echo "$(basename $0) mkfs for TEST_DEV:"
Signature · 1 line
2.44.0
PATCH 3/6 bringup: add a playbook to bring up an SMB server
In reply to Scott MayhewAdd a playbook to bring up an SMB server so that we can do CIFS testing. Right now we're just setting up Samba but it could be extended to add an option to configure ksmbd instead.
--- Makefile | 1 + kconfigs/Kconfig.bringup.goals | 1 + kconfigs/Kconfig.smbd | 72 ++++++++++++++ playbooks/roles/gen_hosts/defaults/main.yml | 1 + .../roles/gen_hosts/templates/fstests.j2 | 6 ++ playbooks/roles/gen_nodes/defaults/main.yml | 1 + playbooks/roles/gen_nodes/tasks/main.yml | 19 ++++ playbooks/roles/smbd/defaults/main.yml | 5 + .../smbd/tasks/install-deps/debian/main.yml | 31 ++++++ .../roles/smbd/tasks/install-deps/main.yml | 12 +++ .../smbd/tasks/install-deps/redhat/main.yml | 33 +++++++ .../smbd/tasks/install-deps/suse/main.yml | 29 ++++++ playbooks/roles/smbd/tasks/main.yml | 95 +++++++++++++++++++ playbooks/roles/smbd/templates/smb.conf.j2 | 11 +++ playbooks/roles/smbd/vars/Debian.yml | 10 ++ playbooks/roles/smbd/vars/RedHat.yml | 12 +++ playbooks/roles/smbd/vars/Suse.yml | 10 ++ playbooks/smbd.yml | 4 + scripts/smbd.Makefile | 20 ++++ 19 files changed, 373 insertions(+) create mode 100644 kconfigs/Kconfig.smbd create mode 100644 playbooks/roles/smbd/defaults/main.yml create mode 100644 playbooks/roles/smbd/tasks/install-deps/debian/main.yml create mode 100644 playbooks/roles/smbd/tasks/install-deps/main.yml create mode 100644 playbooks/roles/smbd/tasks/install-deps/redhat/main.yml create mode 100644 playbooks/roles/smbd/tasks/install-deps/suse/main.yml create mode 100644 playbooks/roles/smbd/tasks/main.yml create mode 100644 playbooks/roles/smbd/templates/smb.conf.j2 create mode 100644 playbooks/roles/smbd/vars/Debian.yml create mode 100644 playbooks/roles/smbd/vars/RedHat.yml create mode 100644 playbooks/roles/smbd/vars/Suse.yml create mode 100644 playbooks/smbd.yml create mode 100644 scripts/smbd.Makefile
Makefile +1 -0
@@ -107,6 +107,7 @@ endif # CONFIG_WORKFLOWS include scripts/siw.Makefile include scripts/ktls.Makefile include scripts/nfsd.Makefile +include scripts/smbd.Makefile include scripts/krb5.Makefile include scripts/devconfig.Makefile
kconfigs/Kconfig.bringup.goals +1 -0
@@ -97,4 +97,5 @@ config KDEVOPS_SETUP_KTLS necessary for testing RPC over TLS, or NVMe over TCP. source "kconfigs/Kconfig.nfsd" +source "kconfigs/Kconfig.smbd" source "kconfigs/Kconfig.krb5"
kconfigs/Kconfig.smbd new file +72 -0
72 lines not on this page · raw message
playbooks/roles/gen_hosts/defaults/main.yml +1 -0
@@ -33,4 +33,5 @@ fs_config_role_path: "/dev/null" fs_config_data: "[section_1]" kdevops_nfsd_enable: False +kdevops_smbd_enable: False kdevops_krb5_enable: False
playbooks/roles/gen_hosts/templates/fstests.j2 +6 -0
@@ -27,6 +27,12 @@ ansible_python_interpreter = "{{ kdevops_python_interpreter }}" [nfsd:vars] ansible_python_interpreter = "{{ kdevops_python_interpreter }}" {% endif %} +{% if kdevops_smbd_enable %} +[smbd] +{{ kdevops_hosts_prefix }}-smbd +[smbd:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" +{% endif %} {% if kdevops_krb5_enable %} [kdc] {{ kdevops_hosts_prefix }}-kdc
playbooks/roles/gen_nodes/defaults/main.yml +1 -0
@@ -14,6 +14,7 @@ kdevops_workflow_enable_gitr: False kdevops_workflow_enable_ltp: False kdevops_workflow_enable_selftests: False kdevops_nfsd_enable: False +kdevops_smbd_enable: False kdevops_krb5_enable: False virtualbox_provider: False
playbooks/roles/gen_nodes/tasks/main.yml +19 -0
@@ -55,6 +55,18 @@ when: - kdevops_nfsd_enable|bool +- name: Set smbd_nodes list + set_fact: + smbd_nodes: "{{ [ kdevops_host_prefix + '-smbd' ] }}" + when: + - kdevops_smbd_enable|bool + +- name: Add an smb server if one was selected + set_fact: + generic_nodes: "{{ generic_nodes + smbd_nodes }}" + when: + - kdevops_smbd_enable|bool + - name: Set kdc_nodes list set_fact: kdc_nodes: "{{ [ kdevops_host_prefix + '-kdc' ] }}"
@@ -285,6 +297,13 @@ - is_fstests|bool - kdevops_nfsd_enable|bool +- name: Add the smb server if one was selected + set_fact: + fstests_enabled_nodes: "{{ fstests_enabled_nodes + smbd_nodes }}" + when: + - is_fstests|bool + - kdevops_smbd_enable|bool + - name: Add the KRB5 KDC if one was selected set_fact: fstests_enabled_nodes: "{{ fstests_enabled_nodes + kdc_nodes }}"
playbooks/roles/smbd/defaults/main.yml new file +5 -0
@@ -0,0 +1,5 @@ +--- +smbd_lvm_pvs: [] +smbd_share_device_prefix: "" +smbd_share_device_count: 0 +smbd_share_label: "share"
playbooks/roles/smbd/tasks/install-deps/debian/main.yml new file +31 -0
@@ -0,0 +1,31 @@ +--- +- name: Get OS-specific variables + ansible.builtin.include_vars: "{{ lookup('ansible.builtin.first_found', params) }}" + vars: + params: + files: + - '{{ansible_distribution}}.yml' + - '{{ansible_os_family}}.yml' + - default.yml + paths: + - 'vars' + +- name: Determine which fsprogs package is needed for "{{ smbd_share_fstype }}" + set_fact: + fsprogs: "{{ fstype_userspace_progs[smbd_share_fstype] | default() }}" + +- name: Add {{ fsprogs }} to the smbd packages list + set_fact: + smbd_packages: "{{ smbd_packages + [fsprogs] }}" + when: + - fsprogs is defined + - fsprogs + +- name: Install smbd dependencies + become: yes + become_method: sudo + apt: + name: "{{ smbd_packages }}" + state: present + update_cache: yes + tags: [ 'deps' ]
playbooks/roles/smbd/tasks/install-deps/main.yml new file +12 -0
@@ -0,0 +1,12 @@ +--- +- name: Debian-specific set up + ansible.builtin.include_tasks: roles/tasks/nfsd/install-deps/debian/main.yml + when: ansible_os_family == 'Debian' + +- name: SuSE-specific set up + ansible.builtin.include_tasks: roles/tasks/nfsd/install-deps/suse/main.yml + when: ansible_os_family == 'Suse' + +- name: Red Hat-specific set up + ansible.builtin.include_tasks: roles/tasks/nfsd/install-deps/redhat/main.yml + when: ansible_os_family == 'RedHat'
playbooks/roles/smbd/tasks/install-deps/redhat/main.yml new file +33 -0
@@ -0,0 +1,33 @@ +--- +- name: Get OS-specific variables + ansible.builtin.include_vars: "{{ lookup('ansible.builtin.first_found', params) }}" + vars: + params: + files: + - '{{ansible_distribution}}.yml' + - '{{ansible_os_family}}.yml' + - default.yml + paths: + - 'vars' + +- name: Determine which fsprogs package is needed for "{{ smbd_share_fstype }}" + set_fact: + fsprogs: "{{ fstype_userspace_progs[smbd_share_fstype] | default() }}" + +- name: Add {{ fsprogs }} to the smbd packages list + set_fact: + smbd_packages: "{{ smbd_packages + [fsprogs] }}" + when: + - fsprogs is defined + - fsprogs + +- name: Install smbd dependencies + become: yes + become_method: sudo + yum: + update_cache: yes + name: "{{ smbd_packages }}" + retries: 3 + delay: 5 + register: result + until: result.rc == 0
playbooks/roles/smbd/tasks/install-deps/suse/main.yml new file +29 -0
@@ -0,0 +1,29 @@ +--- +- name: Get OS-specific variables + ansible.builtin.include_vars: "{{ lookup('ansible.builtin.first_found', params) }}" + vars: + params: + files: + - '{{ansible_distribution}}.yml' + - '{{ansible_os_family}}.yml' + - default.yml + paths: + - 'vars' + +- name: Determine which fsprogs package is needed for "{{ smbd_share_fstype }}" + set_fact: + fsprogs: "{{ fstype_userspace_progs[smbd_share_fstype] | default() }}" + +- name: Add {{ fsprogs }} to the smbd packages list + set_fact: + smbd_packages: "{{ smbd_packages + [fsprogs] }}" + when: + - fsprogs is defined + - fsprogs + +- name: Install smbd dependencies + become: yes + become_method: sudo + ansible.builtin.package: + name: "{{ smbd_packages }}" + state: present
playbooks/roles/smbd/tasks/main.yml new file +95 -0
95 lines not on this page · raw message
playbooks/roles/smbd/templates/smb.conf.j2 new file +11 -0
@@ -0,0 +1,11 @@ +[global] + workgroup = SAMBA + security = user + + passdb backend = tdbsam + + printing = cups + printcap name = cups + load printers = yes + cups options = raw +
playbooks/roles/smbd/vars/Debian.yml new file +10 -0
@@ -0,0 +1,10 @@ +--- +smbd_packages: + - lvm2 + - policycoreutils + - samba + +fstype_userspace_progs: + btrfs: btrfs-progs + ext4: e2fsprogs + xfs: xfsprogs
playbooks/roles/smbd/vars/RedHat.yml new file +12 -0
@@ -0,0 +1,12 @@ +--- +smbd_packages: + - checkpolicy + - lvm2 + - policycoreutils + - python3-policycoreutils + - samba + +fstype_userspace_progs: + btrfs: btrfs-progs + ext4: e2fsprogs + xfs: xfsprogs
playbooks/roles/smbd/vars/Suse.yml new file +10 -0
@@ -0,0 +1,10 @@ +--- +smbd_packages: + - lvm2 + - policycoreutils + - samba + +fstype_userspace_progs: + btrfs: btrfsprogs + ext4: e2fsprogs + xfs: xfsprogs
playbooks/smbd.yml new file +4 -0
@@ -0,0 +1,4 @@ +--- +- hosts: all + roles: + - role: smbd
scripts/smbd.Makefile new file +20 -0
@@ -0,0 +1,20 @@ +ifeq (y,$(CONFIG_KDEVOPS_SETUP_SMBD)) + +SMBD_EXTRA_ARGS += smbd_share_device_prefix='$(subst ",,$(CONFIG_SMBD_SHARE_DEVICE_PREFIX))' +SMBD_EXTRA_ARGS += smbd_share_device_count='$(subst ",,$(CONFIG_SMBD_SHARE_DEVICE_COUNT))' +SMBD_EXTRA_ARGS += smbd_share_fstype='$(subst ",,$(CONFIG_SMBD_SHARE_FSTYPE))' +SMBD_EXTRA_ARGS += smbd_share_path='$(subst ",,$(CONFIG_SMBD_SHARE_PATH))' +SMBD_EXTRA_ARGS += smb_root_pw='$(subst ",,$(CONFIG_SMB_ROOT_PW))' +SMBD_EXTRA_ARGS += kdevops_smbd_enable=True + +ANSIBLE_EXTRA_ARGS += $(SMBD_EXTRA_ARGS) + +smbd: + $(Q)ansible-playbook $(ANSIBLE_VERBOSE) --extra-vars=@./extra_vars.yaml \ + -f 30 -i hosts -l smbd playbooks/smbd.yml + +KDEVOPS_BRING_UP_DEPS += smbd + +PHONY += smbd + +endif
Signature · 1 line
2.44.0
PATCH 4/6 playbooks: add a playbook to create smb shares
In reply to Scott MayhewYoinked almost entirely from nfsd_add_export, this playbook is for creating share on the SMB server.
--- playbooks/roles/smbd_add_share/README.md | 57 ++++++++++ .../roles/smbd_add_share/defaults/main.yml | 5 + playbooks/roles/smbd_add_share/tasks/main.yml | 103 ++++++++++++++++++ .../roles/smbd_add_share/templates/share.j2 | 7 ++ 4 files changed, 172 insertions(+) create mode 100644 playbooks/roles/smbd_add_share/README.md create mode 100644 playbooks/roles/smbd_add_share/defaults/main.yml create mode 100644 playbooks/roles/smbd_add_share/tasks/main.yml create mode 100644 playbooks/roles/smbd_add_share/templates/share.j2
playbooks/roles/smbd_add_share/README.md new file +57 -0
@@ -0,0 +1,57 @@ +smbd_add_share +================ + +The smbd_add_share role lets you create an SMB share on the Samba +server set up by kdevops. Basically a rip-off of nfsd_add_export. + +Requirements +------------ + +None. SMB server and LVM administrative tools are installed on the +kdevops Samba server automatically. + +Role Variables +-------------- + + * server_host: the hostname or IP address of the SMB server where + the new share is to be created + * share_volname: the name of the new share, to be created under + the /shares directory on the SMB server + * share_options: the share options for the new share (currently not used) + * share_fstype: the file system type of the new share + * share_size: the maximum size of the new share + * share_user: the owner of the new share + * share_group: the owner group of the new share + * share_mode: the mode bits for the new share's root directory + +Dependencies +------------ + +None. + +Example Playbook +---------------- + +Below is an example playbook task: + +``` +- name: Create SMB share for test vol + include_role: + name: smbd_add_share + vars: + server_host: "kdevops-smbd" + share_volname: "test" + share_fstype: "btrfs" + share_size: 20g + when: + - test_fstype == "cifs" + - test_cifs_use_kdevops_smbd|bool +``` + +For further examples refer to one of this role's users, the +[https://github.com/linux-kdevops/kdevops](kdevops) project. + +License +------- + +GPL-2.0+
playbooks/roles/smbd_add_share/defaults/main.yml new file +5 -0
@@ -0,0 +1,5 @@ +# SPDX-License-Identifier GPL-2.0+ +--- +share_user: "root" +share_group: "root" +share_mode: "u=rwx,g=rwx,o=rwxt"
playbooks/roles/smbd_add_share/tasks/main.yml new file +103 -0
103 lines not on this page · raw message
playbooks/roles/smbd_add_share/templates/share.j2 new file +7 -0
@@ -0,0 +1,7 @@ +[{{ share_volname }}] + path={{ smbd_share_path }}/{{ share_volname }} + browseable = Yes + read only = No + create mask = 0664 + directory mask = 0775 +
Signature · 1 line
2.44.0
PATCH 5/6 fstests: add an option for testing on CIFS
In reply to Scott Mayhew--- playbooks/roles/fstests/defaults/main.yml | 6 ++ .../tasks/install-deps/debian/main.yml | 1 + .../tasks/install-deps/redhat/main.yml | 1 + .../fstests/tasks/install-deps/suse/main.yml | 11 +++ playbooks/roles/fstests/tasks/main.yml | 39 ++++++++++ .../roles/fstests/templates/cifs/cifs.config | 33 ++++++++ workflows/fstests/Kconfig | 20 ++++- workflows/fstests/Makefile | 4 + workflows/fstests/cifs/Kconfig | 75 +++++++++++++++++++ workflows/fstests/cifs/Makefile | 17 +++++ 10 files changed, 206 insertions(+), 1 deletion(-) create mode 100644 playbooks/roles/fstests/templates/cifs/cifs.config create mode 100644 workflows/fstests/cifs/Kconfig create mode 100644 workflows/fstests/cifs/Makefile
playbooks/roles/fstests/defaults/main.yml +6 -0
@@ -169,6 +169,12 @@ fstests_nfs_section_v41: False fstests_nfs_section_v40: False fstests_nfs_section_v3: False +fstests_cifs_enable: False +fstests_cifs_use_kdevops_smbd: False +fstests_cifs_section_smb3: False +fstests_cifs_section_smb3_seal: False +fstests_cifs_section_smb3_sign: False + fstests_tmpfs_enable: False fstests_tmpfs_test_dev: "/media/test" fstests_tmpfs_scratch_devpool: "/media/scratch"
playbooks/roles/fstests/tasks/install-deps/debian/main.yml +1 -0
@@ -71,6 +71,7 @@ - parted - nfs-common - xfsdump + - cifs-utils state: present update_cache: yes tags: [ 'fstests', 'deps' ]
playbooks/roles/fstests/tasks/install-deps/redhat/main.yml +1 -0
@@ -84,6 +84,7 @@ - parted - nfs-utils - liburing-devel + - cifs-utils - name: Install xfsprogs-xfs_scrub become: yes
playbooks/roles/fstests/tasks/install-deps/suse/main.yml +11 -0
@@ -247,3 +247,14 @@ state: started when: - fstests_fstyp == "nfs" + +- name: Install cifs-utils + become: yes + become_method: sudo + ansible.builtin.package: + name: + - cifs-utils + state: present + when: + - repos_present|bool + - fstests_fstyp == "cifs"
playbooks/roles/fstests/tasks/main.yml +39 -0
@@ -808,6 +808,45 @@ - fstests_nfs_auth_flavor is defined - fstests_nfs_auth_flavor +- name: Create SMB share for test vol + include_role: + name: smbd_add_share + vars: + server_host: "{{ fstests_smb_server_host }}" + share_volname: "{{ volname_prefix }}-t" + share_fstype: "{{ smbd_share_fstype }}" + share_size: 20g + when: + - fstests_fstyp == "cifs" + - fstests_cifs_use_kdevops_smbd|bool + +- name: Create SMB share for scratch vol + include_role: + name: smbd_add_share + vars: + server_host: "{{ fstests_smb_server_host }}" + share_volname: "{{ volname_prefix }}-s" + share_fstype: "{{ smbd_share_fstype }}" + share_size: 30g + when: + - fstests_fstyp == "cifs" + - fstests_cifs_use_kdevops_smbd|bool + +- name: Copy and force overwrite of the target filesystem fstests configuration for CIFS + tags: [ 'oscheck', 'fstests', 'run_tests', 'kdevops_fstests_setup', 'install' , 'generate-fstests-config' ] + become: yes + become_flags: 'su - -c' + become_method: sudo + vars: + fstests_cifs_test_dev: "//{{ fstests_smb_server_host }}/{{ volname_prefix }}-t" + fstests_cifs_scratch_devpool: "//{{ fstests_smb_server_host }}/{{ volname_prefix }}-s" + template: + src: "{{ fstests_fstyp }}/{{ fstests_fstyp }}.config" + dest: "{{ fstests_data_target }}/configs/{{ ansible_host }}.config" + force: yes + when: + - fstests_fstyp == "cifs" + - name: Reboot system before our test so we know everything is sane tags: [ 'oscheck', 'fstests', 'run_tests', 'reboot' ] become: yes
playbooks/roles/fstests/templates/cifs/cifs.config new file +33 -0
@@ -0,0 +1,33 @@ +# Automatically generated file by kdevops +# +# Default mount options +# +[default] +FSTYP=cifs +TEST_DIR={{ fstests_test_dir }} +SCRATCH_MNT={{ fstests_scratch_mnt }} +SCRATCH_DEV={{ fstests_cifs_scratch_devpool }} +RESULT_BASE=$PWD/results/$HOST/$(uname -r) +TEST_DEV={{ fstests_cifs_test_dev }} +CANON_DEVS=yes +{% if fstests_cifs_section_smb3 -%} + +# Test with SMB3 +[cifs_smb3] +TEST_FS_MOUNT_OPTS="-ousername=root,password={{ smb_root_pw }},noperm,vers=3.0,mfsymlinks,actimeo=0" +MOUNT_OPTIONS="-ousername=root,password={{ smb_root_pw }},noperm,vers=3.0,mfsymlinks,actimeo=0" +{% endif %} +{% if fstests_cifs_section_smb3_seal -%} + +# Test SMB3 with encryption +[cifs_smb3_seal] +TEST_FS_MOUNT_OPTS="-ousername=root,password={{ smb_root_pw }},noperm,vers=3.0,mfsymlinks,actimeo=0,seal" +MOUNT_OPTIONS="-ousername=root,password={{ smb_root_pw }},noperm,vers=3.0,mfsymlinks,actimeo=0,seal" +{% endif %} +{% if fstests_cifs_section_smb3_sign -%} + +# Test SMB3 with signing +[cifs_smb3_sign] +TEST_FS_MOUNT_OPTS="-ousername=root,password={{ smb_root_pw }},noperm,vers=3.0,mfsymlinks,actimeo=0,sign" +MOUNT_OPTIONS="-ousername=root,password={{ smb_root_pw }},noperm,vers=3.0,mfsymlinks,actimeo=0,sign" +{% endif %}
workflows/fstests/Kconfig +19 -1
@@ -30,6 +30,9 @@ config FSTESTS_TMPFS_ENABLE config FSTESTS_NFS_ENABLE bool +config FSTESTS_CIFS_ENABLE + bool + config FSTESTS_USES_NO_DEVICES bool
@@ -64,6 +67,12 @@ config FSTESTS_NFS help This will target testing the Network File System (NFS). +config FSTESTS_CIFS + bool "cifs" + select FSTESTS_CIFS_ENABLE + help + This will target testing the Server Message Block (SMB) protocol. + config FSTESTS_TMPFS bool "tmpfs" select FSTESTS_TMPFS_ENABLE
@@ -80,6 +89,7 @@ config FSTESTS_FSTYP default "btrfs" if FSTESTS_BTRFS default "ext4" if FSTESTS_EXT4 default "nfs" if FSTESTS_NFS + default "cifs" if FSTESTS_CIFS default "tmpfs" if FSTESTS_TMPFS help The filesystem to test. This will be automatically set depending on
@@ -267,6 +277,14 @@ endmenu endif # FSTESTS_NFS +if FSTESTS_CIFS + +menu "Configure how CIFS should be tested" +source "workflows/fstests/cifs/Kconfig" +endmenu + +endif # FSTESTS_CIFS + if FSTESTS_TMPFS menu "Configure how tmpfs should be tested"
@@ -326,7 +344,7 @@ config FSTESTS_TESTDEV_UNDER_DEVELOPMENT want to help develop and test new features which let you use real drives to test fstests with. -if !FSTESTS_TMPFS && !FSTESTS_NFS +if !FSTESTS_TMPFS && !FSTESTS_NFS && !FSTESTS_CIFS choice prompt "Strategy for device pool"
workflows/fstests/Makefile +4 -0
@@ -58,6 +58,10 @@ ifeq (y,$(CONFIG_FSTESTS_NFS)) include $(TOPDIR)/workflows/fstests/nfs/Makefile endif +ifeq (y,$(CONFIG_FSTESTS_CIFS)) +include $(TOPDIR)/workflows/fstests/cifs/Makefile +endif + ifeq (y,$(CONFIG_FSTESTS_TMPFS)) include $(TOPDIR)/workflows/fstests/tmpfs/Makefile endif
workflows/fstests/cifs/Kconfig new file +75 -0
75 lines not on this page · raw message
workflows/fstests/cifs/Makefile new file +17 -0
@@ -0,0 +1,17 @@ +FSTESTS_ARGS += fstests_cifs_enable='True' +FSTESTS_SMB_SERVER_HOST:=$(subst ",,$(CONFIG_FSTESTS_SMB_SERVER_HOST)) +ifeq (y,$(CONFIG_FSTESTS_USE_KDEVOPS_SMBD)) +FSTESTS_SMB_SERVER_HOST:=$(subst ",,$(CONFIG_KDEVOPS_HOSTS_PREFIX))-smbd +FSTESTS_ARGS += fstests_cifs_use_kdevops_smbd='True' +endif # CONFIG_FSTESTS_USE_KDEVOPS_SMBD +FSTESTS_ARGS += fstests_smb_server_host='$(FSTESTS_SMB_SERVER_HOST)' + +ifeq (y,$(CONFIG_FSTESTS_CIFS_SECTION_SMB3)) +FSTESTS_ARGS += fstests_cifs_section_smb3=True +endif +ifeq (y,$(CONFIG_FSTESTS_CIFS_SECTION_SMB3_SEAL)) +FSTESTS_ARGS += fstests_cifs_section_smb3_seal=True +endif +ifeq (y,$(CONFIG_FSTESTS_CIFS_SECTION_SMB3_SIGN)) +FSTESTS_ARGS += fstests_cifs_section_smb3_sign=True +endif
Signature · 1 line
2.44.0
Re: [PATCH 5/6] fstests: add an option for testing on CIFS
Quoted 13 lines · Scott Mayhew
Signed-off-by Scott Mayhew <[email protected]>---
workflows/fstests/Kconfig +0
-0workflows/fstests/cifs/Kconfig new file +1
-0@@ -0,0 +1,75 @@ +config FSTESTS_SMB_SERVER_HOST
workflows/fstests/cifs/Kconfig line 11
Quoted 10 lines
workflows/fstests/cifs/Kconfig new file +10
-0+ string "Test Server hostname" + default "" + depends on !FSTESTS_USE_KDEVOPS_SMBD + help + The SMB server hostname or address to test against. Note that + the clients will expect that an appropriate hierarchy is already + created for them to mount and use. + FIXME: document how to make that. + +# Distributions actively maintaining btrfs support should select this and then
btrfs / CIFS
Quoted 17 lines
workflows/fstests/cifs/Kconfig new file +17
-0+if FSTESTS_CIFS_MANUAL_COVERAGE + +config FSTESTS_CIFS_SECTION_SMB3 + bool "Enable testing section: smb3" + default y + help + Enabling this will test SMB3. + +config FSTESTS_CIFS_SECTION_SMB3_SEAL + bool "Enable testing section: smb3_seal" + default n + help + Enabling this will test SMB3 with encryption. + +config FSTESTS_CIFS_SECTION_SMB3_SIGN + bool "Enable testing section: smb3_sign" + default n
workflows/fstests/cifs/Kconfig line 73
Quoted 10 lines
workflows/fstests/cifs/Kconfig new file +10
-0+ help + Enabling this will test SMB3 with signing. + +endif # FSTESTS_CIFS_MANUAL_COVERAGE + +if !FSTESTS_CIFS_MANUAL_COVERAGE + +config FSTESTS_CIFS_SECTION_SMB3 + bool + default y
I think you're just missing here the defaults for:
* SMB3_SEAL
* SMB3_SIGN
Otherwise looks good.
Luis
Re: [PATCH 5/6] fstests: add an option for testing on CIFS
Quoted 57 lines · Luis Chamberlain
Quoted 13 lines · Scott Mayhew
Signed-off-by Scott Mayhew <[email protected]>---
workflows/fstests/Kconfig +0
-0workflows/fstests/cifs/Kconfig new file +1
-0@@ -0,0 +1,75 @@ +config FSTESTS_SMB_SERVER_HOSTworkflows/fstests/cifs/Kconfig line 11
Quoted 10 lines
workflows/fstests/cifs/Kconfig new file +10
-0+ string "Test Server hostname" + default "" + depends on !FSTESTS_USE_KDEVOPS_SMBD + help + The SMB server hostname or address to test against. Note that + the clients will expect that an appropriate hierarchy is already + created for them to mount and use. + FIXME: document how to make that. + +# Distributions actively maintaining btrfs support should select this and thenbtrfs / CIFS
Quoted 17 lines
workflows/fstests/cifs/Kconfig new file +17
-0+if FSTESTS_CIFS_MANUAL_COVERAGE + +config FSTESTS_CIFS_SECTION_SMB3 + bool "Enable testing section: smb3" + default y + help + Enabling this will test SMB3. + +config FSTESTS_CIFS_SECTION_SMB3_SEAL + bool "Enable testing section: smb3_seal" + default n + help + Enabling this will test SMB3 with encryption. + +config FSTESTS_CIFS_SECTION_SMB3_SIGN + bool "Enable testing section: smb3_sign" + default nworkflows/fstests/cifs/Kconfig line 73
Quoted 10 lines
workflows/fstests/cifs/Kconfig new file +10
-0+ help + Enabling this will test SMB3 with signing. + +endif # FSTESTS_CIFS_MANUAL_COVERAGE + +if !FSTESTS_CIFS_MANUAL_COVERAGE + +config FSTESTS_CIFS_SECTION_SMB3 + bool + default yI think you're just missing here the defaults for:
Quoted 4 lines
*
SMB3_SEAL
*SMB3_SIGNOtherwise looks good.
Thanks, I've fixed both items. I'll wait for Chuck to push his nfstest stuff and rebase on top of that to make sure there are no conflicts.
-Scott
Quoted 5 lines
Reviewed-by Luis Chamberlain <[email protected]>Luis
Re: [PATCH 5/6] fstests: add an option for testing on CIFS
Quoted 63 lines · Scott Mayhew
Quoted 57 lines · Luis Chamberlain
Quoted 13 lines · Scott Mayhew
Signed-off-by Scott Mayhew <[email protected]>---
workflows/fstests/Kconfig +0
-0workflows/fstests/cifs/Kconfig new file +1
-0@@ -0,0 +1,75 @@ +config FSTESTS_SMB_SERVER_HOSTworkflows/fstests/cifs/Kconfig line 11
Quoted 10 lines
workflows/fstests/cifs/Kconfig new file +10
-0+ string "Test Server hostname" + default "" + depends on !FSTESTS_USE_KDEVOPS_SMBD + help + The SMB server hostname or address to test against. Note that + the clients will expect that an appropriate hierarchy is already + created for them to mount and use. + FIXME: document how to make that. + +# Distributions actively maintaining btrfs support should select this and thenbtrfs / CIFS
Quoted 17 lines
workflows/fstests/cifs/Kconfig new file +17
-0+if FSTESTS_CIFS_MANUAL_COVERAGE + +config FSTESTS_CIFS_SECTION_SMB3 + bool "Enable testing section: smb3" + default y + help + Enabling this will test SMB3. + +config FSTESTS_CIFS_SECTION_SMB3_SEAL + bool "Enable testing section: smb3_seal" + default n + help + Enabling this will test SMB3 with encryption. + +config FSTESTS_CIFS_SECTION_SMB3_SIGN + bool "Enable testing section: smb3_sign" + default nworkflows/fstests/cifs/Kconfig line 73
Quoted 10 lines
workflows/fstests/cifs/Kconfig new file +10
-0+ help + Enabling this will test SMB3 with signing. + +endif # FSTESTS_CIFS_MANUAL_COVERAGE + +if !FSTESTS_CIFS_MANUAL_COVERAGE + +config FSTESTS_CIFS_SECTION_SMB3 + bool + default yI think you're just missing here the defaults for:
Quoted 7 lines
Quoted 4 lines
*
SMB3_SEAL
*SMB3_SIGNOtherwise looks good.
Thanks, I've fixed both items. I'll wait for Chuck to push his nfstest stuff and rebase on top of that to make sure there are no conflicts.
I just tested nfstest on Debian and had to make some changes to get the build/install step to work. I have to go back and test on SuSE and Red Hat. So this will be a while. Go ahead and push your work and I'll rebase when nfstest is ready.
--
Chuck Lever
PATCH 6/6 fstests: add expunges for cifs
In reply to Scott Mayhew--- .../expunges/any/cifs/unassigned/all.txt | 60 +++++++++++++++++++ .../any/cifs/unassigned/cifs_smb3_sign.txt | 2 + 2 files changed, 62 insertions(+) create mode 100644 workflows/fstests/expunges/any/cifs/unassigned/all.txt create mode 100644 workflows/fstests/expunges/any/cifs/unassigned/cifs_smb3_sign.txt
workflows/fstests/expunges/any/cifs/unassigned/all.txt new file +60 -0
@@ -0,0 +1,60 @@ +generic/009 +generic/017 +generic/035 +generic/058 +generic/060 +generic/061 +generic/063 +generic/064 +generic/087 +generic/088 +generic/089 +generic/091 +generic/092 +generic/094 +generic/123 +generic/126 +generic/127 +generic/193 +generic/236 +generic/263 +generic/285 +generic/286 +generic/314 +generic/317 +generic/355 +generic/357 +generic/378 +generic/392 +generic/404 +generic/474 +generic/476 +generic/478 +generic/485 +generic/486 +generic/490 +generic/494 +generic/496 +generic/503 +generic/523 +generic/528 +generic/530 +generic/539 +generic/586 +generic/597 +generic/611 +generic/616 +generic/617 +generic/622 +generic/623 +generic/633 +generic/647 +generic/650 +generic/683 +generic/684 +generic/685 +generic/686 +generic/687 +generic/707 +generic/728 +generic/729
workflows/fstests/expunges/any/cifs/unassigned/cifs_smb3_sign.txt new file +2 -0
@@ -0,0 +1,2 @@ +generic/095 +generic/438
Signature · 1 line
2.44.0
Quoted 9 lines · Scott Mayhew
These patches add the ability to run fstests on CIFS. The playbooks are very similar to their NFS counterparts. The smbd playbook sets up a Samba server, but could be expanded to set up ksmbd in the future. The following options are available: plain SMB3, SMB3 with signing, and SMB3 with encryption.
You could also add SMB direct using siw, but maybe Samba doesn't support that.
Quoted 66 lines
The expunge files are based on the tests that were consistently failing on 6.8.4-200.fc39.x86_64, plus some tests that just take way too long (generic/476, generic/650).
-Scott
Scott Mayhew (6):
oscheck.sh: add some special cases for cifsgendisks.sh: add special case for cifs
bringup: add a playbook to bring up an SMB server
playbooks: add a playbook to create smb shares
fstests: add an option for testing on CIFS
fstests: add expunges for cifsMakefile | 1 + kconfigs/Kconfig.bringup.goals | 1 + kconfigs/Kconfig.smbd | 72 ++++++++++++ playbooks/roles/fstests/defaults/main.yml | 6 + .../tasks/install-deps/debian/main.yml | 1 + .../tasks/install-deps/redhat/main.yml | 1 + .../fstests/tasks/install-deps/suse/main.yml | 11 ++ playbooks/roles/fstests/tasks/main.yml | 39 +++++++ .../roles/fstests/templates/cifs/cifs.config | 33 ++++++ playbooks/roles/gen_hosts/defaults/main.yml | 1 + .../roles/gen_hosts/templates/fstests.j2 | 6 + playbooks/roles/gen_nodes/defaults/main.yml | 1 + playbooks/roles/gen_nodes/tasks/main.yml | 19 ++++ playbooks/roles/smbd/defaults/main.yml | 5 + .../smbd/tasks/install-deps/debian/main.yml | 31 ++++++ .../roles/smbd/tasks/install-deps/main.yml | 12 ++ .../smbd/tasks/install-deps/redhat/main.yml | 33 ++++++ .../smbd/tasks/install-deps/suse/main.yml | 29 +++++ playbooks/roles/smbd/tasks/main.yml | 95 ++++++++++++++++ playbooks/roles/smbd/templates/smb.conf.j2 | 11 ++ playbooks/roles/smbd/vars/Debian.yml | 10 ++ playbooks/roles/smbd/vars/RedHat.yml | 12 ++ playbooks/roles/smbd/vars/Suse.yml | 10 ++ playbooks/roles/smbd_add_share/README.md | 57 ++++++++++ .../roles/smbd_add_share/defaults/main.yml | 5 + playbooks/roles/smbd_add_share/tasks/main.yml | 103 ++++++++++++++++++ .../roles/smbd_add_share/templates/share.j2 | 7 ++ playbooks/smbd.yml | 4 + scripts/smbd.Makefile | 20 ++++ workflows/fstests/Kconfig | 20 +++- workflows/fstests/Makefile | 4 + workflows/fstests/cifs/Kconfig | 75 +++++++++++++ workflows/fstests/cifs/Makefile | 17 +++ .../expunges/any/cifs/unassigned/all.txt | 60 ++++++++++ .../any/cifs/unassigned/cifs_smb3_sign.txt | 2 + workflows/fstests/scripts/gendisks.sh | 2 +- workflows/fstests/scripts/oscheck.sh | 8 +- 37 files changed, 818 insertions(+), 6 deletions(-)create mode 100644 kconfigs/Kconfig.smbd
create mode 100644playbooks/roles/fstests/templates/cifs/cifs.configcreate mode 100644playbooks/roles/smbd/defaults/main.ymlcreate mode 100644playbooks/roles/smbd/tasks/install-deps/debian/main.ymlcreate mode 100644playbooks/roles/smbd/tasks/install-deps/main.ymlcreate mode 100644playbooks/roles/smbd/tasks/install-deps/redhat/main.ymlcreate mode 100644playbooks/roles/smbd/tasks/install-deps/suse/main.ymlcreate mode 100644playbooks/roles/smbd/tasks/main.yml
create mode 100644 playbooks/roles/smbd/templates/smb.conf.j2 create mode 100644playbooks/roles/smbd/vars/Debian.yml
create mode 100644playbooks/roles/smbd/vars/RedHat.yml
create mode 100644playbooks/roles/smbd/vars/Suse.yml
create mode 100644playbooks/roles/smbd_add_share/README.mdcreate mode 100644playbooks/roles/smbd_add_share/defaults/main.yml
Quoted 13 lines
create mode 100644
playbooks/roles/smbd_add_share/tasks/main.ymlcreate mode 100644 playbooks/roles/smbd_add_share/templates/share.j2 create mode 100644playbooks/smbd.yml
create mode 100644scripts/smbd.Makefile
create mode 100644 workflows/fstests/cifs/Kconfig
create mode 100644 workflows/fstests/cifs/Makefile
create mode 100644workflows/fstests/expunges/any/cifs/unassigned/all.txtcreate mode 100644workflows/fstests/expunges/any/cifs/unassigned/cifs_smb3_sign.txtSignature · 1 line
2.44.0
--
Chuck Lever
Quoted 4 lines · Chuck Lever III
Quoted 4 lines · Scott Mayhew
Quoted 8 lines
Quoted 5 lines
These patches add the ability to run fstests on CIFS. The playbooks are very similar to their NFS counterparts. The smbd playbook sets up a Samba server, but could be expanded to set up ksmbd in the future. The following options are available: plain SMB3, SMB3 with signing, and SMB3 with encryption.
You could also add SMB direct using siw, but maybe Samba doesn't support that.
I looked at it today, and it doesn't look like Samba supports SMB Direct yet.
-Scott
Quoted 86 lines
Quoted 68 lines
The expunge files are based on the tests that were consistently failing on 6.8.4-200.fc39.x86_64, plus some tests that just take way too long (generic/476, generic/650).
-Scott
Scott Mayhew (6):
oscheck.sh: add some special cases for cifsgendisks.sh: add special case for cifs
bringup: add a playbook to bring up an SMB server
playbooks: add a playbook to create smb shares
fstests: add an option for testing on CIFS
fstests: add expunges for cifsMakefile | 1 + kconfigs/Kconfig.bringup.goals | 1 + kconfigs/Kconfig.smbd | 72 ++++++++++++ playbooks/roles/fstests/defaults/main.yml | 6 + .../tasks/install-deps/debian/main.yml | 1 + .../tasks/install-deps/redhat/main.yml | 1 + .../fstests/tasks/install-deps/suse/main.yml | 11 ++ playbooks/roles/fstests/tasks/main.yml | 39 +++++++ .../roles/fstests/templates/cifs/cifs.config | 33 ++++++ playbooks/roles/gen_hosts/defaults/main.yml | 1 + .../roles/gen_hosts/templates/fstests.j2 | 6 + playbooks/roles/gen_nodes/defaults/main.yml | 1 + playbooks/roles/gen_nodes/tasks/main.yml | 19 ++++ playbooks/roles/smbd/defaults/main.yml | 5 + .../smbd/tasks/install-deps/debian/main.yml | 31 ++++++ .../roles/smbd/tasks/install-deps/main.yml | 12 ++ .../smbd/tasks/install-deps/redhat/main.yml | 33 ++++++ .../smbd/tasks/install-deps/suse/main.yml | 29 +++++ playbooks/roles/smbd/tasks/main.yml | 95 ++++++++++++++++ playbooks/roles/smbd/templates/smb.conf.j2 | 11 ++ playbooks/roles/smbd/vars/Debian.yml | 10 ++ playbooks/roles/smbd/vars/RedHat.yml | 12 ++ playbooks/roles/smbd/vars/Suse.yml | 10 ++ playbooks/roles/smbd_add_share/README.md | 57 ++++++++++ .../roles/smbd_add_share/defaults/main.yml | 5 + playbooks/roles/smbd_add_share/tasks/main.yml | 103 ++++++++++++++++++ .../roles/smbd_add_share/templates/share.j2 | 7 ++ playbooks/smbd.yml | 4 + scripts/smbd.Makefile | 20 ++++ workflows/fstests/Kconfig | 20 +++- workflows/fstests/Makefile | 4 + workflows/fstests/cifs/Kconfig | 75 +++++++++++++ workflows/fstests/cifs/Makefile | 17 +++ .../expunges/any/cifs/unassigned/all.txt | 60 ++++++++++ .../any/cifs/unassigned/cifs_smb3_sign.txt | 2 + workflows/fstests/scripts/gendisks.sh | 2 +- workflows/fstests/scripts/oscheck.sh | 8 +- 37 files changed, 818 insertions(+), 6 deletions(-)create mode 100644 kconfigs/Kconfig.smbd
create mode 100644playbooks/roles/fstests/templates/cifs/cifs.configcreate mode 100644playbooks/roles/smbd/defaults/main.ymlcreate mode 100644playbooks/roles/smbd/tasks/install-deps/debian/main.ymlcreate mode 100644playbooks/roles/smbd/tasks/install-deps/main.ymlcreate mode 100644playbooks/roles/smbd/tasks/install-deps/redhat/main.ymlcreate mode 100644playbooks/roles/smbd/tasks/install-deps/suse/main.ymlcreate mode 100644playbooks/roles/smbd/tasks/main.yml
create mode 100644 playbooks/roles/smbd/templates/smb.conf.j2 create mode 100644playbooks/roles/smbd/vars/Debian.yml
create mode 100644playbooks/roles/smbd/vars/RedHat.yml
create mode 100644playbooks/roles/smbd/vars/Suse.yml
create mode 100644playbooks/roles/smbd_add_share/README.mdcreate mode 100644playbooks/roles/smbd_add_share/defaults/main.ymlQuoted 13 lines
create mode 100644
playbooks/roles/smbd_add_share/tasks/main.ymlcreate mode 100644 playbooks/roles/smbd_add_share/templates/share.j2 create mode 100644playbooks/smbd.yml
create mode 100644scripts/smbd.Makefile
create mode 100644 workflows/fstests/cifs/Kconfig
create mode 100644 workflows/fstests/cifs/Makefile
create mode 100644workflows/fstests/expunges/any/cifs/unassigned/all.txtcreate mode 100644workflows/fstests/expunges/any/cifs/unassigned/cifs_smb3_sign.txtSignature · 1 line
2.44.0--
Chuck Lever
Quoted 9 lines · Scott Mayhew
These patches add the ability to run fstests on CIFS. The playbooks are very similar to their NFS counterparts. The smbd playbook sets up a Samba server, but could be expanded to set up ksmbd in the future. The following options are available: plain SMB3, SMB3 with signing, and SMB3 with encryption.
The expunge files are based on the tests that were consistently failing on 6.8.4-200.fc39.x86_64, plus some tests that just take way too long (generic/476, generic/650).
Seems like a great start:
Luis