Always initialize the starting time so that badblocks -sw works.
Thanks Jelle de Jong (jelledejong at powercraft.nl) for reporting this
bug.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
break;
case 'v':
v_flag++;
- gettimeofday(&time_start, 0);
break;
case 'w':
if (w_flag)
if (w_flag)
check_mount(device_name);
+ gettimeofday(&time_start, 0);
open_flag = O_LARGEFILE | (w_flag ? O_RDWR : O_RDONLY);
dev = open (device_name, open_flag);
if (dev == -1) {