Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 544DC3F9E1 for ; Fri, 12 Apr 2024 20:50:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712955006; cv=none; b=ONGsvVEtyJyHk/MJqhZCN8r+nQkExC/V486Vo7IGAPqTJGInPvvkEt9mUxlUBYUoe28YscC16xQbxDh0CbycMBiJLK0LgyuCXe1M+2OhFWcn5T+Rr2j5WSEY8XgS26m0U1NiF47ml7HC9Ol5On33MjeVMyEw78vAMdH0U0LAbmI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712955006; c=relaxed/simple; bh=eweZyUtEFAInypNGyAzCsTtItbIXOAUSdZR++ApPb2g=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Se1s8EgtuD6bZhzzWumSNL5CkVXkcRXHrN1vVGXG+UgLkn7HizbHkKSdvLK8t/C3m29L0pnBcDCPlu5XSYds5V8jq8nL8X9fYn1oT3HDHN5vJDJEcIuc6ItCKYwceIwUoZjDJiSUQVvfzU9MdnKHHhAVclq6lIpmh6X/qWnf3ec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=a/98DPJT; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="a/98DPJT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712955003; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5kgpzuZrhQWikr8ypAr3Gzn900kKoTWV5dDBMTB5RzY=; b=a/98DPJTs6WgtGZng4dLPKAgoh3ai3wUvsfd9odHsNHnY0eNE+QNRmvFGSH2bmXaz8/a2c udc0eYnHPAgwjLYKNWXzAkYA86jR3PG6SxZLIEPXKd7cSydLMN7EVB6qs4wpH6BLMVeSUO PTqQjQfg++SUX0dEur9gznWgvoUKz7I= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-552-SpzpbVc_Onmnj7Z25OZw4g-1; Fri, 12 Apr 2024 16:50:01 -0400 X-MC-Unique: SpzpbVc_Onmnj7Z25OZw4g-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 750921C04B56 for ; Fri, 12 Apr 2024 20:50:01 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.9.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6289D2026D06 for ; Fri, 12 Apr 2024 20:50:01 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id 089391483DB for ; Fri, 12 Apr 2024 16:50:01 -0400 (EDT) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH 0/6] Add an option for running fstests on CIFS Date: Fri, 12 Apr 2024 16:49:54 -0400 Message-ID: <20240412205000.2329837-1-smayhew@redhat.com> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 -- 2.44.0