projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
boot ignores INVAL buffers when waiting for sync
[unix-history]
/
usr
/
src
/
sys
/
vax
/
vax
/
machdep.c
diff --git
a/usr/src/sys/vax/vax/machdep.c
b/usr/src/sys/vax/vax/machdep.c
index
311edf7
..
ddc265f
100644
(file)
--- a/
usr/src/sys/vax/vax/machdep.c
+++ b/
usr/src/sys/vax/vax/machdep.c
@@
-1,4
+1,4
@@
-/* machdep.c 6.
1 83/08/20
*/
+/* machdep.c 6.
2 83/10/02
*/
#include "../machine/reg.h"
#include "../machine/pte.h"
#include "../machine/reg.h"
#include "../machine/pte.h"
@@
-598,21
+598,21
@@
boot(paniced, arghowto)
update();
printf("syncing disks... ");
#ifdef notdef
update();
printf("syncing disks... ");
#ifdef notdef
+ DELAY(10000000);
+#else
{ register struct buf *bp;
int iter, nbusy;
{ register struct buf *bp;
int iter, nbusy;
- for (iter = 0; iter <
1
0; iter++) {
+ for (iter = 0; iter <
2
0; iter++) {
nbusy = 0;
for (bp = &buf[nbuf]; --bp >= buf; )
nbusy = 0;
for (bp = &buf[nbuf]; --bp >= buf; )
- if (
bp->b_flags &
B_BUSY)
+ if (
(bp->b_flags & (B_BUSY|B_INVAL)) ==
B_BUSY)
nbusy++;
if (nbusy == 0)
break;
printf("%d ", nbusy);
}
}
nbusy++;
if (nbusy == 0)
break;
printf("%d ", nbusy);
}
}
-#else
- DELAY(10000000);
#endif
printf("done\n");
}
#endif
printf("done\n");
}