re-enable update-superblock check

This reverts commit cdbc4bfb13.
This commit is contained in:
Ben Gras 2012-02-15 03:46:01 +01:00
parent bb364f9cc8
commit 47c1f10835

View file

@ -381,11 +381,6 @@ PUBLIC void invalidate(
*===========================================================================*/
int block_write_ok(struct buf *bp)
{
/* XXX this check is temporarily disabled as it's incompatible with
* updating the sector list in the bootcode. This will change when
* we switch to the netbsd-based bootloader.
*/
#if 0
if(superblock.s_dev != bp->b_dev) return 1;
if(bp->b_blocknr >= super_start && bp->b_blocknr <= super_end) {
@ -398,7 +393,6 @@ int block_write_ok(struct buf *bp)
printf("This shouldn't happen.\n");
return 0;
}
#endif
return 1;
}