hardware_TrimIntegrity: Use hdparm determine trim feature
Use hdparm to determine that we should raise TestFail or
TestNAError when error occurs.
Also change chunk size from 64K to 192K as we see some
interesting behavior on some SSD.
Condition for test result:
- Trim command is not supported
-> Target disk is a harddisk : TestNA
-> Target disk is SCSI disk w/o trim : TestNA
-> Otherwise : TestFail
- Can not verify integrity of untrimmed data
-> All case : TestFail
- Trim data is not Zero
-> SSD with RZAT : TestFail
-> Otherwise : TestNA
BUG=chromium:351900
TEST=Run with test_that for each condition
Change-Id: If669809c9a4ccec0bceb8b2fd343cdcedff64197
Reviewed-on: https://chromium-review.googlesource.com/203307
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Commit-Queue: Puthikorn Voravootivat <puthik@chromium.org>
Tested-by: Puthikorn Voravootivat <puthik@chromium.org>
2 files changed