summaryrefslogtreecommitdiffstats
path: root/src/spdk/test/spdkcli/match_files
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/spdk/test/spdkcli/match_files
parentInitial commit. (diff)
downloadceph-upstream.tar.xz
ceph-upstream.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/spdk/test/spdkcli/match_files')
-rw-r--r--src/spdk/test/spdkcli/match_files/spdkcli_details_vhost.test.match28
-rw-r--r--src/spdk/test/spdkcli/match_files/spdkcli_iscsi.test.match53
-rw-r--r--src/spdk/test/spdkcli/match_files/spdkcli_nvmf.test.match32
-rw-r--r--src/spdk/test/spdkcli/match_files/spdkcli_pmem.test.match2
-rw-r--r--src/spdk/test/spdkcli/match_files/spdkcli_rbd.test.match2
-rw-r--r--src/spdk/test/spdkcli/match_files/spdkcli_vhost.test.match75
-rw-r--r--src/spdk/test/spdkcli/match_files/spdkcli_virtio_pci.test.match18
-rw-r--r--src/spdk/test/spdkcli/match_files/spdkcli_virtio_user.test.match8
8 files changed, 218 insertions, 0 deletions
diff --git a/src/spdk/test/spdkcli/match_files/spdkcli_details_vhost.test.match b/src/spdk/test/spdkcli/match_files/spdkcli_details_vhost.test.match
new file mode 100644
index 00000000..8cbd9e80
--- /dev/null
+++ b/src/spdk/test/spdkcli/match_files/spdkcli_details_vhost.test.match
@@ -0,0 +1,28 @@
+{
+ "aliases": [],
+ "assigned_rate_limits": {
+ "rw_ios_per_sec": $(N),
+ "rw_mbytes_per_sec": $(N)
+ },
+ "block_size": $(N),
+ "claimed": false,
+ "driver_specific": {
+ "split": {
+ "base_bdev": "Nvme0n1",
+ "offset_blocks": $(N)
+ }
+ },
+ "name": "Nvme0n1p0",
+ "num_blocks": $(N),
+ "product_name": "Split Disk",
+ "supported_io_types": {
+ "flush": $(S),
+ "nvme_admin": $(S),
+ "nvme_io": $(S),
+ "read": $(S),
+ "reset": $(S),
+ "unmap": $(S),
+ "write": $(S),
+ "write_zeroes": $(S)
+ }
+}
diff --git a/src/spdk/test/spdkcli/match_files/spdkcli_iscsi.test.match b/src/spdk/test/spdkcli/match_files/spdkcli_iscsi.test.match
new file mode 100644
index 00000000..e48d8d98
--- /dev/null
+++ b/src/spdk/test/spdkcli/match_files/spdkcli_iscsi.test.match
@@ -0,0 +1,53 @@
+o- iscsi ..................................................................................................................... [...]
+ o- auth_groups ....................................................................................................... [Groups: 1]
+ | o- group1 ......................................................................................................... [Secrets: 2]
+ | o- user=test2, secret=test2, muser=mutual_test2, msecret=mutual_test2 .................................................. [...]
+ | o- user=test3, secret=test3, muser=mutual_test3, msecret=mutual_test3 .................................................. [...]
+ o- global_params ........................................................................................................... [...]
+ | o- allow_duplicated_isid: False .......................................................................................... [...]
+ | o- chap_group: 1 ......................................................................................................... [...]
+ | o- default_time2retain: 20 ............................................................................................... [...]
+ | o- default_time2wait: 2 .................................................................................................. [...]
+ | o- disable_chap: True .................................................................................................... [...]
+ | o- error_recovery_level: 0 ............................................................................................... [...]
+ | o- first_burst_length: 8192 .............................................................................................. [...]
+ | o- immediate_data: True .................................................................................................. [...]
+ | o- max_connections_per_session: 2 ........................................................................................ [...]
+ | o- max_queue_depth: 64 ................................................................................................... [...]
+ | o- max_sessions: 128 ..................................................................................................... [...]
+ | o- min_connections_per_core: 4 ........................................................................................... [...]
+ | o- mutual_chap: False .................................................................................................... [...]
+ | o- node_base: iqn.2016-06.io.spdk ........................................................................................ [...]
+ | o- nop_in_interval: 30 ................................................................................................... [...]
+ | o- nop_timeout: 60 ....................................................................................................... [...]
+ | o- require_chap: False ................................................................................................... [...]
+ o- initiator_groups ........................................................................................ [Initiator groups: 2]
+ | o- initiator_group2 ............................................................................................ [Initiators: 2]
+ | | o- hostname=ANW, netmask=$(N).$(N).$(N).$(N)/32 $(S) [...]
+ | | o- hostname=ANY, netmask=$(N).$(N).$(N).$(N)/32 $(S) [...]
+ | o- initiator_group3 ............................................................................................ [Initiators: 1]
+ | o- hostname=ANZ, netmask=$(N).$(N).$(N).$(N)/32 $(S) [...]
+ o- iscsi_connections ............................................................................................ [Connections: 0]
+ o- portal_groups .............................................................................................. [Portal groups: 2]
+ | o- portal_group1 .................................................................................................. [Portals: 2]
+ | | o- host=127.0.0.1, port=3261, cpumask=0x3 .............................................................................. [...]
+ | | o- host=127.0.0.1, port=3263, cpumask=0x1 .............................................................................. [...]
+ | o- portal_group2 .................................................................................................. [Portals: 1]
+ | o- host=127.0.0.1, port=3262, cpumask=0x3 .............................................................................. [...]
+ o- target_nodes ................................................................................................ [Target nodes: 2]
+ o- iqn.2016-06.io.spdk:Target0 ......................................................................... [Id: 0, QueueDepth: 64]
+ | o- auths ........................................ [disable_chap: True, require_chap: False, mutual_chap: False, chap_group: 1]
+ | o- luns ............................................................................................................ [Luns: 2]
+ | | o- lun 0 ......................................................................................................... [Malloc0]
+ | | o- lun 1 ......................................................................................................... [Malloc1]
+ | o- pg_ig_maps ................................................................................................ [Pg_ig_maps: 3]
+ | o- portal_group1 - initiator_group2 .................................................................................. [...]
+ | o- portal_group1 - initiator_group3 .................................................................................. [...]
+ | o- portal_group2 - initiator_group2 .................................................................................. [...]
+ o- iqn.2016-06.io.spdk:Target1 ......................................................................... [Id: 1, QueueDepth: 64]
+ o- auths ....................................... [disable_chap: False, require_chap: False, mutual_chap: False, chap_group: 1]
+ o- luns ............................................................................................................ [Luns: 2]
+ | o- lun 0 ......................................................................................................... [Malloc2]
+ | o- lun 2 ......................................................................................................... [Malloc3]
+ o- pg_ig_maps ................................................................................................ [Pg_ig_maps: 1]
+ o- portal_group1 - initiator_group2 .................................................................................. [...]
diff --git a/src/spdk/test/spdkcli/match_files/spdkcli_nvmf.test.match b/src/spdk/test/spdkcli/match_files/spdkcli_nvmf.test.match
new file mode 100644
index 00000000..95b36f64
--- /dev/null
+++ b/src/spdk/test/spdkcli/match_files/spdkcli_nvmf.test.match
@@ -0,0 +1,32 @@
+o- nvmf ...................................................................................................................... [...]
+ o- subsystem ..................................................................................................... [Subsystems: 4]
+ o- nqn.2014-08.org.nvmexpress.discovery ......................................................... [st=Discovery, Allow any host]
+ | o- hosts .......................................................................................................... [Hosts: 0]
+ | o- listen_addresses ........................................................................................... [Addresses: 0]
+ o- nqn.2014-08.org.spdk:cnode1 ...................................................... [sn=$(S), st=NVMe, Allow any host]
+ | o- hosts .......................................................................................................... [Hosts: 1]
+ | | o- nqn.2014-08.org.spdk:cnode2 ....................................................................................... [...]
+ | o- listen_addresses ........................................................................................... [Addresses: 3]
+ | | o- $(N).$(N).$(N).$(N):4260 $(S) [RDMA]
+ | | o- $(N).$(N).$(N).$(N):4261 $(S) [RDMA]
+ | | o- $(N).$(N).$(N).$(N):4262 $(S) [RDMA]
+ | o- namespaces ................................................................................................ [Namespaces: 4]
+ | o- Malloc3 .............................................................. [$(X)-$(X)-$(X)-$(X)-$(X), Malloc3, 1]
+ | o- Malloc4 .............................................................. [$(X)-$(X)-$(X)-$(X)-$(X), Malloc4, 2]
+ | o- Malloc5 .............................................................. [$(X)-$(X)-$(X)-$(X)-$(X), Malloc5, 3]
+ | o- Malloc6 .............................................................. [$(X)-$(X)-$(X)-$(X)-$(X), Malloc6, 4]
+ o- nqn.2014-08.org.spdk:cnode2 ...................................................... [sn=$(S), st=NVMe, Allow any host]
+ | o- hosts .......................................................................................................... [Hosts: 0]
+ | o- listen_addresses ........................................................................................... [Addresses: 1]
+ | | o- $(N).$(N).$(N).$(N):4260 $(S) [RDMA]
+ | o- namespaces ................................................................................................ [Namespaces: 1]
+ | o- Malloc2 .............................................................. [$(X)-$(X)-$(X)-$(X)-$(X), Malloc2, 1]
+ o- nqn.2014-08.org.spdk:cnode3 ...................................................... [sn=$(S), st=NVMe, Allow any host]
+ o- hosts .......................................................................................................... [Hosts: 2]
+ | o- nqn.2014-08.org.spdk:cnode1 ....................................................................................... [...]
+ | o- nqn.2014-08.org.spdk:cnode2 ....................................................................................... [...]
+ o- listen_addresses ........................................................................................... [Addresses: 2]
+ | o- $(N).$(N).$(N).$(N):4260 $(S) [RDMA]
+ | o- $(N).$(N).$(N).$(N):4261 $(S) [RDMA]
+ o- namespaces ................................................................................................ [Namespaces: 1]
+ o- Malloc1 .............................................................. [$(X)-$(X)-$(X)-$(X)-$(X), Malloc1, 1]
diff --git a/src/spdk/test/spdkcli/match_files/spdkcli_pmem.test.match b/src/spdk/test/spdkcli/match_files/spdkcli_pmem.test.match
new file mode 100644
index 00000000..0ee659b5
--- /dev/null
+++ b/src/spdk/test/spdkcli/match_files/spdkcli_pmem.test.match
@@ -0,0 +1,2 @@
+o- pmemblk .............................................................................................................. [Bdevs: 1]
+ o- pmem_bdev ........................................................................................... [Size=31.6M, Not claimed]
diff --git a/src/spdk/test/spdkcli/match_files/spdkcli_rbd.test.match b/src/spdk/test/spdkcli/match_files/spdkcli_rbd.test.match
new file mode 100644
index 00000000..ea748e90
--- /dev/null
+++ b/src/spdk/test/spdkcli/match_files/spdkcli_rbd.test.match
@@ -0,0 +1,2 @@
+o- rbd .................................................................................................................. [Bdevs: 1]
+ o- Ceph0 ............................................................................................. [Size=1000.0M, Not claimed]
diff --git a/src/spdk/test/spdkcli/match_files/spdkcli_vhost.test.match b/src/spdk/test/spdkcli/match_files/spdkcli_vhost.test.match
new file mode 100644
index 00000000..a1ed8dc7
--- /dev/null
+++ b/src/spdk/test/spdkcli/match_files/spdkcli_vhost.test.match
@@ -0,0 +1,75 @@
+o- / ......................................................................................................................... [...]
+ o- bdevs ................................................................................................................... [...]
+ | o- aio .............................................................................................................. [Bdevs: 1]
+ | | o- sample ........................................................................................... [Size=$(FP)M, Not claimed]
+ | o- error ............................................................................................................ [Bdevs: 1]
+ | | o- EE_Malloc1 ...................................................................................... [Size=$(FP)M, Not claimed]
+ | o- iscsi ............................................................................................................ [Bdevs: 0]
+ | o- logical_volume ................................................................................................... [Bdevs: 1]
+ | | o- $(X)-$(X)-$(X)-$(X)-$(X) .................................................. [lvs/lvol, Size=$(FP)M, Not claimed]
+ | o- malloc ........................................................................................................... [Bdevs: 4]
+ | | o- Malloc0 ............................................................................................. [Size=$(FP)M, Claimed]
+ | | o- Malloc1 ............................................................................................. [Size=$(FP)M, Claimed]
+ | | o- Malloc2 ......................................................................................... [Size=$(FP)M, Not claimed]
+ | | o- Malloc3 ......................................................................................... [Size=$(FP)M, Not claimed]
+ | o- null ............................................................................................................. [Bdevs: 1]
+ | | o- null_bdev ....................................................................................... [Size=$(FP)M, Not claimed]
+ | o- nvme ............................................................................................................. [Bdevs: 1]
+ | | o- Nvme0n1 $(S) [Size=$(FP)G, Claimed]
+ | o- pmemblk .......................................................................................................... [Bdevs: 0]
+ | o- rbd .............................................................................................................. [Bdevs: 0]
+ | o- split_disk ....................................................................................................... [Bdevs: 4]
+ | | o- Nvme0n1p0 $(S) [Size=$(FP)G, Not claimed]
+ | | o- Nvme0n1p1 $(S) [Size=$(FP)G, Not claimed]
+ | | o- Nvme0n1p2 $(S) [Size=$(FP)G, Not claimed]
+ | | o- Nvme0n1p3 $(S) [Size=$(FP)G, Not claimed]
+ | o- virtioblk_disk ................................................................................................... [Bdevs: 0]
+ | o- virtioscsi_disk .................................................................................................. [Bdevs: 0]
+ o- iscsi ................................................................................................................... [...]
+ | o- auth_groups ..................................................................................................... [Groups: 0]
+ | o- global_params ......................................................................................................... [...]
+ | | o- allow_duplicated_isid: False ........................................................................................ [...]
+ | | o- chap_group: 0 ....................................................................................................... [...]
+ | | o- default_time2retain: 20 ............................................................................................. [...]
+ | | o- default_time2wait: 2 ................................................................................................ [...]
+ | | o- disable_chap: False ................................................................................................. [...]
+ | | o- error_recovery_level: 0 ............................................................................................. [...]
+ | | o- first_burst_length: 8192 ............................................................................................ [...]
+ | | o- immediate_data: True ................................................................................................ [...]
+ | | o- max_connections_per_session: 2 ...................................................................................... [...]
+ | | o- max_queue_depth: 64 ................................................................................................. [...]
+ | | o- max_sessions: 128 ................................................................................................... [...]
+ | | o- min_connections_per_core: 4 ......................................................................................... [...]
+ | | o- mutual_chap: False .................................................................................................. [...]
+ | | o- node_base: iqn.2016-06.io.spdk ...................................................................................... [...]
+ | | o- nop_in_interval: 30 ................................................................................................. [...]
+ | | o- nop_timeout: 60 ..................................................................................................... [...]
+ | | o- require_chap: False ................................................................................................. [...]
+ | o- initiator_groups ...................................................................................... [Initiator groups: 0]
+ | o- iscsi_connections .......................................................................................... [Connections: 0]
+ | o- portal_groups ............................................................................................ [Portal groups: 0]
+ | o- target_nodes .............................................................................................. [Target nodes: 0]
+ o- lvol_stores .................................................................................................. [Lvol stores: 1]
+ | o- lvs ................................................................................................ [Size=$(FP)M, Free=$(FP)M]
+ o- nvmf .................................................................................................................... [...]
+ | o- subsystem ................................................................................................... [Subsystems: 1]
+ | o- nqn.2014-08.org.nvmexpress.discovery ....................................................... [st=Discovery, Allow any host]
+ | o- hosts ........................................................................................................ [Hosts: 0]
+ | o- listen_addresses ......................................................................................... [Addresses: 0]
+ o- vhost ................................................................................................................... [...]
+ o- block ................................................................................................................. [...]
+ | o- vhost_blk1 $(S) [$(S)]
+ | | o- Nvme0n1p0 ......................................................................................................... [...]
+ | o- vhost_blk2 $(S) [$(S), Readonly]
+ | o- Nvme0n1p1 ......................................................................................................... [...]
+ o- scsi .................................................................................................................. [...]
+ o- vhost_scsi1 $(S) [$(S)]
+ | o- Target_0 .......................................................................................... [LUNs: 1,TargetID: 0]
+ | o- Malloc2 ......................................................................................................... [...]
+ o- vhost_scsi2 $(S) [$(S)]
+ o- Target_0 .......................................................................................... [LUNs: 1,TargetID: 0]
+ | o- Malloc3 ......................................................................................................... [...]
+ o- Target_1 .......................................................................................... [LUNs: 1,TargetID: 1]
+ | o- Nvme0n1p2 ....................................................................................................... [...]
+ o- Target_2 .......................................................................................... [LUNs: 1,TargetID: 2]
+ o- Nvme0n1p3 ....................................................................................................... [...]
diff --git a/src/spdk/test/spdkcli/match_files/spdkcli_virtio_pci.test.match b/src/spdk/test/spdkcli/match_files/spdkcli_virtio_pci.test.match
new file mode 100644
index 00000000..0eca06e1
--- /dev/null
+++ b/src/spdk/test/spdkcli/match_files/spdkcli_virtio_pci.test.match
@@ -0,0 +1,18 @@
+o- bdevs ..................................................................................................................... [...]
+ o- aio ................................................................................................................ [Bdevs: 0]
+ o- error .............................................................................................................. [Bdevs: 0]
+ o- iscsi .............................................................................................................. [Bdevs: 0]
+ o- logical_volume ..................................................................................................... [Bdevs: 0]
+ o- malloc ............................................................................................................. [Bdevs: 2]
+ | o- Malloc0 ........................................................................................... [Size=32.0M, Not claimed]
+ | o- Malloc1 ........................................................................................... [Size=32.0M, Not claimed]
+ o- null ............................................................................................................... [Bdevs: 0]
+ o- nvme ............................................................................................................... [Bdevs: 0]
+ o- pmemblk ............................................................................................................ [Bdevs: 0]
+ o- rbd ................................................................................................................ [Bdevs: 0]
+ o- split_disk ......................................................................................................... [Bdevs: 0]
+ o- virtioblk_disk ..................................................................................................... [Bdevs: 1]
+ | o- virtioblk_pci $(S) [Size=$(FP)M, Not claimed]
+ o- virtioscsi_disk .................................................................................................... [Bdevs: 1]
+ o- virtioscsi_pci ............................................................................................... [$(S)]
+ o- virtioscsi_pcit0 $(S) [Size=$(FP)M, Not claimed]
diff --git a/src/spdk/test/spdkcli/match_files/spdkcli_virtio_user.test.match b/src/spdk/test/spdkcli/match_files/spdkcli_virtio_user.test.match
new file mode 100644
index 00000000..157938e7
--- /dev/null
+++ b/src/spdk/test/spdkcli/match_files/spdkcli_virtio_user.test.match
@@ -0,0 +1,8 @@
+o- vhost ..................................................................................................................... [...]
+ o- block ................................................................................................................... [...]
+ | o- sample_block $(S) [$(S)]
+ | o- Malloc1 ............................................................................................................. [...]
+ o- scsi .................................................................................................................... [...]
+ o- sample_scsi $(S) [$(S)]
+ o- Target_0 ............................................................................................ [LUNs: 1,TargetID: 0]
+ o- Malloc0 ........................................................................................................... [...]