Comment 4 for bug 1443372

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

For the insert test, we could tell tester to click on the icon to mount it.

For the storage test, if we run the storage test with "scsi" option, it will try to perform the test on all these HDDs

$ ./removable_storage_test -s 268400000 scsi
Found the following mounted scsi partitions:
    /dev/sdc1 : /media/u/CertTB : None bits/s
    /dev/sda1 : /boot/efi : None bits/s
    /dev/sda2 : / : None bits/s
--------------------
/dev/sdc1 (Total Data Size / iteration: 255.9662 MB):
 [Iteration 0] Average Speed: 176.0535
 Summary:
  Total Data Attempted: 255.9662 MB
  Total Time to write: 1.4539 secs
  Average Write Time: 1.4539 secs
  Average Write Speed: 176.0535 MB/s
/dev/sda1 (Total Data Size / iteration: 255.9662 MB):
ERROR:root:Unable to open /boot/efi/tmpw434dziy.0 for writing.
ERROR:root: [Errno 13] Permission denied: '/boot/efi/tmpw434dziy.0'
ERROR:root:Failed to copy /tmp/tmpw434dziy to /boot/efi/tmpw434dziy.0
ERROR:root:Unable to remove tempfile /boot/efi/tmpw434dziy.0
ERROR:root: [Errno 13] Permission denied: '/boot/efi/tmpw434dziy.0'
 [Iteration 0] Average Speed: 0.0000
 Summary:
  Total Data Attempted: 255.9662 MB
  Total Time to write: 0.0000 secs
  Average Write Time: 0.0000 secs
  Average Write Speed: 0.0000 MB/s
/dev/sda2 (Total Data Size / iteration: 255.9662 MB):
ERROR:root:Unable to open /tmpw434dziy.0 for writing.
ERROR:root: [Errno 13] Permission denied: '/tmpw434dziy.0'
ERROR:root:Failed to copy /tmp/tmpw434dziy to /tmpw434dziy.0
ERROR:root:Unable to remove tempfile /tmpw434dziy.0
ERROR:root: [Errno 2] No such file or directory: '/tmpw434dziy.0'
 [Iteration 0] Average Speed: 0.0000
 Summary:
  Total Data Attempted: 255.9662 MB
  Total Time to write: 0.0000 secs
  Average Write Time: 0.0000 secs
  Average Write Speed: 0.0000 MB/s
WARNING:root:Completed 1 test iterations, but there were errors

It's working, but it's not correct.

When the HDD is mounted, there will be an extra Serial ATA controller under the tree of PCI bridges,
therefore, a possible solution is to parse the SATA controller (with driver: ahci) under the PCI bridge tree (with driver: pcieport)
Then we will, find the right device to test with.