public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH 0/2] kdevops: extra scsi disk uses
@ 2025-07-22  0:23 Luis Chamberlain
  2025-07-22  0:23 ` [PATCH 1/2] volume_group: add scsi disk support Luis Chamberlain
  2025-07-22  0:23 ` [PATCH 2/2] fstests: use the scsi disk drive when available Luis Chamberlain
  0 siblings, 2 replies; 3+ messages in thread
From: Luis Chamberlain @ 2025-07-22  0:23 UTC (permalink / raw)
  To: Chuck Lever, Daniel Gomez, kdevops; +Cc: Luis Chamberlain

As suggested by Chuck, let's add scsi disk where we forgot. I just
told Claude AI what to do.

Luis Chamberlain (2):
  volume_group: add scsi disk support
  fstests: use the scsi disk drive when available

 playbooks/roles/volume_group/tasks/guestfs.yml | 7 +++++++
 workflows/fstests/Kconfig                      | 1 +
 2 files changed, 8 insertions(+)

-- 
2.47.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] volume_group: add scsi disk support
  2025-07-22  0:23 [PATCH 0/2] kdevops: extra scsi disk uses Luis Chamberlain
@ 2025-07-22  0:23 ` Luis Chamberlain
  2025-07-22  0:23 ` [PATCH 2/2] fstests: use the scsi disk drive when available Luis Chamberlain
  1 sibling, 0 replies; 3+ messages in thread
From: Luis Chamberlain @ 2025-07-22  0:23 UTC (permalink / raw)
  To: Chuck Lever, Daniel Gomez, kdevops; +Cc: Luis Chamberlain

Add support to use a scsi disk for the volume disk group.

Generated-by: Claude AI
Suggested-by: Chuck Lever <cel@kernel.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
 playbooks/roles/volume_group/tasks/guestfs.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/playbooks/roles/volume_group/tasks/guestfs.yml b/playbooks/roles/volume_group/tasks/guestfs.yml
index a5536159..0a285f16 100644
--- a/playbooks/roles/volume_group/tasks/guestfs.yml
+++ b/playbooks/roles/volume_group/tasks/guestfs.yml
@@ -31,6 +31,13 @@
     - libvirt_extra_storage_drive_ide is defined
     - libvirt_extra_storage_drive_ide|bool
 
+- name: Set the SCSI device search pattern
+  ansible.builtin.set_fact:
+    by_id_pattern: "scsi-0QEMU_QEMU_HARDDISK_kdevops*"
+  when:
+    - libvirt_extra_storage_drive_scsi is defined
+    - libvirt_extra_storage_drive_scsi|bool
+
 - name: Verify there are block devices to search
   ansible.builtin.fail:
     msg: No supported block devices are available for NFSD.
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] fstests: use the scsi disk drive when available
  2025-07-22  0:23 [PATCH 0/2] kdevops: extra scsi disk uses Luis Chamberlain
  2025-07-22  0:23 ` [PATCH 1/2] volume_group: add scsi disk support Luis Chamberlain
@ 2025-07-22  0:23 ` Luis Chamberlain
  1 sibling, 0 replies; 3+ messages in thread
From: Luis Chamberlain @ 2025-07-22  0:23 UTC (permalink / raw)
  To: Chuck Lever, Daniel Gomez, kdevops; +Cc: Luis Chamberlain

As with previous small patches which forgot to add scsi disk support,
also enable its use on fstests.

Generated-by: Claude AI
Suggested-by: Chuck Lever <cel@kernel.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
 workflows/fstests/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/workflows/fstests/Kconfig b/workflows/fstests/Kconfig
index 78fafbcc..fa441c3c 100644
--- a/workflows/fstests/Kconfig
+++ b/workflows/fstests/Kconfig
@@ -540,6 +540,7 @@ config FSTESTS_SPARSE_DEV
 	default "/dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_kdevops1" if LIBVIRT && LIBVIRT_EXTRA_STORAGE_DRIVE_NVME
 	default "/dev/disk/by-id/virtio-kdevops1" if LIBVIRT && LIBVIRT_EXTRA_STORAGE_DRIVE_VIRTIO
 	default "/dev/disk/by-id/ata-QEMU_HARDDISK_kdevops1" if LIBVIRT && LIBVIRT_EXTRA_STORAGE_DRIVE_IDE
+	default "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_kdevops1" if LIBVIRT && LIBVIRT_EXTRA_STORAGE_DRIVE_SCSI
 	default "/dev/nvme2n1" if TERRAFORM_AWS_INSTANCE_M5AD_4XLARGE
 	default "/dev/nvme1n1" if TERRAFORM_GCE
 	default "/dev/sdd" if TERRAFORM_AZURE
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-22  0:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-22  0:23 [PATCH 0/2] kdevops: extra scsi disk uses Luis Chamberlain
2025-07-22  0:23 ` [PATCH 1/2] volume_group: add scsi disk support Luis Chamberlain
2025-07-22  0:23 ` [PATCH 2/2] fstests: use the scsi disk drive when available Luis Chamberlain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox