Comment 4 for bug 887778

Revision history for this message
Daniel Manrique (roadmr) wrote :

The usb_test will try to write and read a file in *all* present USB devices. We assume a bunch of things in the code, mainly that the USB drives will be writable by the current user, which is true for standard-issue VFAT USB sticks, but will probably fail on an ext3/4 drive unless permissions are handled carefully. If things fail, the script will unceremoniously crash as seen in this report. So:

- The script needs to gracefully handle the case where a device is unwritable. Simplistically we could run the test as root, but I'd rather not :)
- The script needs to handle multiple USB devices in a sane maner, or at least warn the user that it's about to write files on all connected devices (the current description is less than clear about this).