Increase the SCSI command timeout for device start & stop from 10
to 30 seconds, per PR 25734. I've seen this problem myself. I think that scsictl should: 1. accept a timeout flag/parameter to set the timeout to an arbitrary value other than the default. 2. support a verbose mode that would report the timeout value before the command is started, and then report how long the command actually took to complete, though I suppose the latter could also be done by using time(1).
This commit is contained in:
parent
43e1d0c297
commit
76b92d1ae9
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: scsictl.c,v 1.23 2004/01/05 23:23:33 jmmv Exp $ */
|
||||
/* $NetBSD: scsictl.c,v 1.24 2004/06/01 02:40:00 fair Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -43,7 +43,7 @@
|
|||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: scsictl.c,v 1.23 2004/01/05 23:23:33 jmmv Exp $");
|
||||
__RCSID("$NetBSD: scsictl.c,v 1.24 2004/06/01 02:40:00 fair Exp $");
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -807,7 +807,7 @@ device_start(argc, argv)
|
|||
cmd.opcode = START_STOP;
|
||||
cmd.how = SSS_START;
|
||||
|
||||
scsi_command(fd, &cmd, sizeof(cmd), NULL, 0, 10000, 0);
|
||||
scsi_command(fd, &cmd, sizeof(cmd), NULL, 0, 30000, 0);
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -833,7 +833,7 @@ device_stop(argc, argv)
|
|||
cmd.opcode = START_STOP;
|
||||
cmd.how = SSS_STOP;
|
||||
|
||||
scsi_command(fd, &cmd, sizeof(cmd), NULL, 0, 10000, 0);
|
||||
scsi_command(fd, &cmd, sizeof(cmd), NULL, 0, 30000, 0);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue