Skip to content

Commit

Permalink
added auto-interface detection on Issue #70 datatest
Browse files Browse the repository at this point in the history
  • Loading branch information
ralequi committed May 23, 2023
1 parent 389da9d commit 2f6bbaf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
smartctl 6.4 2014-10-07 r4002 [x86_64-linux-4.9.0-0.bpo.12-amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

/dev/sg2: Device of type 'scsi' [SCSI] detected
/dev/sg2 [SAT]: Device open changed type from 'scsi' to 'sat'
/dev/sg2 [SAT]: Device of type 'sat' [ATA] opened
7 changes: 3 additions & 4 deletions tests/dataset/singletests/sata_hdd_2_issue70/device.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "/dev/sg2",
"interface": "ata",
"values": {
"abridged": false,
"name": "sg2",
Expand Down Expand Up @@ -728,7 +727,7 @@
"physical_sector_size": null,
"if_attributes": null,
"capacity": "000\u00a0398\u00a0934\u00a0016 bytes [2.00 TB",
"dev_interface": "ata",
"dev_interface": "sat",
"dev_reference": "/dev/sg2",
"diags": {
"Reallocated_Sector_Ct": "-",
Expand All @@ -755,11 +754,11 @@
"block_size": "512",
"Non-Medium_Errors": "-"
},
"interface": "ata",
"interface": "sat",
"sector_size": 512,
"size": 2,
"size_raw": "000\u00a0398\u00a0934\u00a0016 bytes [2.00 TB",
"smartctl_interface": "ata",
"smartctl_interface": "sat",
"vendor": "ST"
}
}

0 comments on commit 2f6bbaf

Please sign in to comment.