early boot prompt not accessible on newly installed system

Matthew Dillon dillon at apollo.backplane.com
Mon Feb 15 13:42:32 PST 2010

:Ok, I think I found out what's going on:
:Reading the disklabel64 in pc32/boot2/boot2.c:609 trashes the ufs
:buffers which are behind  boot2_dmadat->secbuf.
:This is a problem if we reread the same inode after that, because in
:that case boot2_ufs_read() would use the buffers directly without
:actually reading in the data again.
:A potential fix is to invalidate inomap in boot2_ufs_init:

    Yah.  Looks like also since the hammer probe uses the same
    buffer space it blows up the ufs cache as well so on the
    second iteration (when you interrupt it) the ufs inode cache
    is bad.

    So I'll commit the patch we discussed on IRC. Setting
    inomap to 0 in ufs_init() and also fixing the secbuf[]
    declaration to cover the disklabel64.


More information about the Users mailing list