22 lines
725 B
Diff
22 lines
725 B
Diff
diff -up hdparm-9.27/hdparm.c.sec_timeout hdparm-9.27/hdparm.c
|
|
--- hdparm-9.27/hdparm.c.sec_timeout 2009-12-11 12:48:43.000000000 +0100
|
|
+++ hdparm-9.27/hdparm.c 2009-12-11 12:47:48.000000000 +0100
|
|
@@ -137,7 +137,7 @@ static int please_destroy_my_drive = 0;
|
|
|
|
const int timeout_12secs = 12;
|
|
const int timeout_5mins = (5 * 60);
|
|
-const int timeout_2hrs = (2 * 60 * 60);
|
|
+const int timeout_12hrs = (12 * 60 * 60);
|
|
|
|
static int open_flags = O_RDONLY|O_NONBLOCK;
|
|
|
|
@@ -767,7 +767,7 @@ do_set_security (int fd)
|
|
err = errno;
|
|
perror("ERASE_PREPARE");
|
|
} else {
|
|
- if ((do_taskfile_cmd(fd, r, timeout_2hrs))) {
|
|
+ if ((do_taskfile_cmd(fd, r, timeout_12hrs))) {
|
|
err = errno;
|
|
perror("SECURITY_ERASE");
|
|
}
|