f3probe: warn about how much time probing takes

This patch addresses issue discussed here:
https://github.com/AltraMayor/f3/issues/33
This commit is contained in:
Michel Machado 2015-12-21 09:37:43 -05:00
parent 69d696090c
commit d8694268a6

View File

@ -408,6 +408,9 @@ static int test_device(struct args *args)
dev = sdev; dev = sdev;
} }
printf("WARNING: Probing normally takes from a few seconds to 15 minutes, but\n");
printf(" it can take longer. Please be patient.\n\n");
assert(!gettimeofday(&t1, NULL)); assert(!gettimeofday(&t1, NULL));
/* XXX Have a better error handling to recover /* XXX Have a better error handling to recover
* the state of the drive. * the state of the drive.