From 55693cd277100422daccc1f148d3ba9d252aa297 Mon Sep 17 00:00:00 2001
From: chrfranke <chrfranke@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Fri, 10 Aug 2018 20:38:33 +0000
Subject: [PATCH] os_win32.cpp: Increase IOCTL_ATA_PASS_THROUGH timeout to 60
 seconds.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@4750 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 smartmontools/ChangeLog    | 4 ++++
 smartmontools/os_win32.cpp | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog
index 19990d7f8..35095af12 100644
--- a/smartmontools/ChangeLog
+++ b/smartmontools/ChangeLog
@@ -1,5 +1,9 @@
 $Id$
 
+2018-08-10  Christian Franke  <franke@computer.org>
+
+	os_win32.cpp: Increase IOCTL_ATA_PASS_THROUGH timeout to 60 seconds.
+
 2018-08-10  Zhdan Bybin  <zhdan.bybin@intel.com>
 
 	drivedb.h:
diff --git a/smartmontools/os_win32.cpp b/smartmontools/os_win32.cpp
index 7b3196c55..64fb831a0 100644
--- a/smartmontools/os_win32.cpp
+++ b/smartmontools/os_win32.cpp
@@ -778,7 +778,7 @@ static int ata_pass_through_ioctl(HANDLE hdevice, IDEREGS * regs, IDEREGS * prev
   //ab.apt.PathId = 0;
   //ab.apt.TargetId = 0;
   //ab.apt.Lun = 0;
-  ab.apt.TimeOutValue = 10;
+  ab.apt.TimeOutValue = 60; // seconds
   unsigned size = offsetof(ATA_PASS_THROUGH_EX_WITH_BUFFERS, ucDataBuf);
   ab.apt.DataBufferOffset = size;
 
-- 
GitLab