f3probe: add option --manual-reset

The current reset method isn't supported for all USB drives,
what leads to wrong conclusions about some fake drives.

The option --manual-reset allows users to unplug and plug back
the USB drive being tested to manually reset the drive.
This commit is contained in:
Michel Machado
2014-08-28 14:42:51 -04:00
parent 73a657deec
commit 35a351ff39
3 changed files with 51 additions and 21 deletions

View File

@@ -36,7 +36,7 @@ struct device *create_file_device(const char *filename,
uint64_t real_size_byte, uint64_t fake_size_byte, int wrap,
int block_order, int keep_file);
struct device *create_block_device(const char *filename);
struct device *create_block_device(const char *filename, int manual_reset);
struct device *create_safe_device(struct device *dev, int max_blocks);