Actually handle small boot blocks (<=15 blocks) correctly in the ffs case.
This commit is contained in:
parent
6424072ccd
commit
30cc2d95cb
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: installboot.c,v 1.10 1999/01/16 18:26:47 he Exp $ */
|
/* $NetBSD: installboot.c,v 1.11 1999/01/17 18:16:16 he Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994 Paul Kranenburg
|
* Copyright (c) 1994 Paul Kranenburg
|
||||||
@ -564,8 +564,9 @@ out:
|
|||||||
(void) close(devfd);
|
(void) close(devfd);
|
||||||
if (bp)
|
if (bp)
|
||||||
free(bp);
|
free(bp);
|
||||||
if (inode != (ino_t)-1
|
if (inode != (ino_t)-1 && /* failed? */
|
||||||
&& !conblockmode) {
|
inode != (ino_t)-2 && /* small boot, no FS blocks? */
|
||||||
|
!conblockmode) { /* contiguous blocks? */
|
||||||
cleanupfileondev(argv[optind + 1], bootblkname, !allok || nowrite);
|
cleanupfileondev(argv[optind + 1], bootblkname, !allok || nowrite);
|
||||||
}
|
}
|
||||||
return (!allok);
|
return (!allok);
|
||||||
|
Loading…
Reference in New Issue
Block a user