DragonFly BSD
DragonFly users List (threaded) for 2010-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: early boot prompt not accessible on newly installed system


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 15 Feb 2010 13:38:32 -0800 (PST)

: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.

					-Matt




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]