Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 test/disk_tests/cciss/cciss!c0d0/device/model     |  1 +
 test/disk_tests/cciss/cciss!c0d0/device/vendor    |  1 +
 test/disk_tests/cciss/cciss!c0d0/queue/rotational |  1 +
 test/disk_tests/cciss/cciss!c0d0/size             |  1 +
 test/disk_tests/cciss/cciss!c0d0_udevadm          | 32 +++++++++++++++++++++++
 test/disk_tests/cciss/disklist                    |  1 +
 test/disk_tests/cciss/disklist_expected.json      | 17 ++++++++++++
 7 files changed, 54 insertions(+)
 create mode 100644 test/disk_tests/cciss/cciss!c0d0/device/model
 create mode 100644 test/disk_tests/cciss/cciss!c0d0/device/vendor
 create mode 100644 test/disk_tests/cciss/cciss!c0d0/queue/rotational
 create mode 100644 test/disk_tests/cciss/cciss!c0d0/size
 create mode 100644 test/disk_tests/cciss/cciss!c0d0_udevadm
 create mode 100644 test/disk_tests/cciss/disklist
 create mode 100644 test/disk_tests/cciss/disklist_expected.json

diff --git a/test/disk_tests/cciss/cciss!c0d0/device/model 
b/test/disk_tests/cciss/cciss!c0d0/device/model
new file mode 100644
index 0000000..676b97d
--- /dev/null
+++ b/test/disk_tests/cciss/cciss!c0d0/device/model
@@ -0,0 +1 @@
+LOGICAL_VOLUME
diff --git a/test/disk_tests/cciss/cciss!c0d0/device/vendor 
b/test/disk_tests/cciss/cciss!c0d0/device/vendor
new file mode 100644
index 0000000..e8b2ad6
--- /dev/null
+++ b/test/disk_tests/cciss/cciss!c0d0/device/vendor
@@ -0,0 +1 @@
+HP
diff --git a/test/disk_tests/cciss/cciss!c0d0/queue/rotational 
b/test/disk_tests/cciss/cciss!c0d0/queue/rotational
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/test/disk_tests/cciss/cciss!c0d0/queue/rotational
@@ -0,0 +1 @@
+1
diff --git a/test/disk_tests/cciss/cciss!c0d0/size 
b/test/disk_tests/cciss/cciss!c0d0/size
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/test/disk_tests/cciss/cciss!c0d0/size
@@ -0,0 +1 @@
+10
diff --git a/test/disk_tests/cciss/cciss!c0d0_udevadm 
b/test/disk_tests/cciss/cciss!c0d0_udevadm
new file mode 100644
index 0000000..21e8899
--- /dev/null
+++ b/test/disk_tests/cciss/cciss!c0d0_udevadm
@@ -0,0 +1,32 @@
+P: /devices/pci0000:40/0000:40:13.0/0000:45:00.0/cciss0/c0d0/block/cciss!c0d0
+N: cciss/c0d0
+S: disk/by-id/cciss-SERIAL111
+S: disk/by-id/wwn-0x00000000000000000000000000000000
+S: disk/by-path/pci-0000:45:00.0-cciss-disk0
+E: DEVLINKS=/dev/disk/by-id/cciss-000000000000000000000000000000000 
/dev/disk/by-id/wwn-0x000000000000000000000000000000000/dev/disk/by-path/pci-0000:45:00.0-cciss-disk0
+E: DEVNAME=/dev/cciss/c0d0
+E: 
DEVPATH=/devices/pci0000:40/0000:40:13.0/0000:45:00.0/cciss0/c0d0/block/cciss!c0d0
+E: DEVTYPE=disk
+E: ID_BUS=cciss
+E: ID_MODEL=LOGICAL_VOLUME
+E: ID_MODEL_ENC=LOGICAL\x20VOLUME\x20\x20
+E: ID_PART_TABLE_TYPE=gpt
+E: ID_PART_TABLE_UUID=cfe72deb-65d1-487c-bdfa-8af66dc1a969
+E: ID_PATH=pci-0000:45:00.0-cciss-disk0
+E: ID_PATH_TAG=pci-0000_45_00_0-cciss-disk0
+E: ID_REVISION=7.24
+E: ID_SCSI=1
+E: ID_SCSI_SERIAL=SERIAL1
+E: ID_SERIAL=SERIAL111
+E: ID_SERIAL_SHORT=SER111
+E: ID_TYPE=disk
+E: ID_VENDOR=HP
+E: ID_VENDOR_ENC=HP\x20\x20\x20\x20\x20\x20
+E: ID_WWN=0x0000000000000000
+E: ID_WWN_VENDOR_EXTENSION=0x0000000000000000
+E: ID_WWN_WITH_EXTENSION=0x00000000000000000000000000000000
+E: MAJOR=104
+E: MINOR=0
+E: SUBSYSTEM=block
+E: TAGS=:systemd:
+E: USEC_INITIALIZED=2247
diff --git a/test/disk_tests/cciss/disklist b/test/disk_tests/cciss/disklist
new file mode 100644
index 0000000..aa174aa
--- /dev/null
+++ b/test/disk_tests/cciss/disklist
@@ -0,0 +1 @@
+cciss!c0d0
diff --git a/test/disk_tests/cciss/disklist_expected.json 
b/test/disk_tests/cciss/disklist_expected.json
new file mode 100644
index 0000000..fb071ef
--- /dev/null
+++ b/test/disk_tests/cciss/disklist_expected.json
@@ -0,0 +1,17 @@
+{
+    "cciss!c0d0" : {
+       "wearout" : "N/A",
+       "vendor" : "HP",
+       "rpm" : -1,
+       "type" : "unknown",
+       "serial" : "SER111",
+       "osdid" : -1,
+       "health" : "UNKNOWN",
+       "model" : "LOGICAL_VOLUME",
+       "size" : 5120,
+       "wwn" : "0x0000000000000000",
+       "journals" : 0,
+       "gpt" : 1,
+       "devpath" : "/dev/cciss/c0d0"
+    }
+}
-- 
2.1.4


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to