summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_dkbad.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1997-11-24 04:14:21 +0000
committerdyson <dyson@FreeBSD.org>1997-11-24 04:14:21 +0000
commit99ebdb0835a429d5122978e6a7f20fd11eedb61f (patch)
treed23a19bdc3e86c8845f0e3adb69ff92730179ef8 /sys/kern/subr_dkbad.c
parent221e1cee6665ae87b44f4167b0a1f68657bf698e (diff)
downloadFreeBSD-src-99ebdb0835a429d5122978e6a7f20fd11eedb61f.zip
FreeBSD-src-99ebdb0835a429d5122978e6a7f20fd11eedb61f.tar.gz
Fix the buffer flag frobbing. Note: It is invalid to gratuitiously modify
b_flags, and this patch removes unneeded modifications. Only the needed b_flags bits are modified now. (Specifically, it is usually wrong to zero b_flags.) Submitted by: bde@freebsd.org
Diffstat (limited to 'sys/kern/subr_dkbad.c')
-rw-r--r--sys/kern/subr_dkbad.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/subr_dkbad.c b/sys/kern/subr_dkbad.c
index 8fef863..f2857c8 100644
--- a/sys/kern/subr_dkbad.c
+++ b/sys/kern/subr_dkbad.c
@@ -43,7 +43,7 @@
* from: wd.c,v 1.55 1994/10/22 01:57:12 phk Exp $
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
- * $Id$
+ * $Id: subr_dkbad.c,v 1.6 1997/02/22 09:39:16 peter Exp $
*/
#include <sys/param.h>
@@ -117,7 +117,8 @@ readbad144(dev, strat, lp, bdp)
else
bp->b_blkno /= DEV_BSIZE / lp->d_secsize;
bp->b_bcount = lp->d_secsize;
- bp->b_flags = B_BUSY | B_READ;
+ bp->b_flags |= B_BUSY | B_READ;
+ bp->b_flags &= ~B_ERROR;
(*strat)(bp);
/* If successful, validate, otherwise try another. */
OpenPOWER on IntegriCloud