In fdcretry(), set the state to DOSEEK rather than SEEKCOMPLETE before
retrying the operation. Fixes disk_unbusy() imbalance and really seems like the right thing to do in case it was the seek that failed. Takes care of PR #1985. Patch from John F. Woods <jfw@jfwhome.funhouse.com>
This commit is contained in:
parent
fb67954ba8
commit
d586688437
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fd.c,v 1.83 1996/01/12 00:19:29 thorpej Exp $ */
|
||||
/* $NetBSD: fd.c,v 1.84 1996/02/10 18:31:13 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993, 1994, 1995 Charles Hannum.
|
||||
@ -1111,7 +1111,7 @@ fdcretry(fdc)
|
||||
switch (fdc->sc_errors) {
|
||||
case 0:
|
||||
/* try again */
|
||||
fdc->sc_state = SEEKCOMPLETE;
|
||||
fdc->sc_state = DOSEEK;
|
||||
break;
|
||||
|
||||
case 1: case 2: case 3:
|
||||
|
Loading…
x
Reference in New Issue
Block a user