Source-Changes archive

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

CVS commit: [netbsd-5] src/sys/dev



Module Name:    src
Committed By:   bouyer
Date:           Mon May 11 20:07:08 UTC 2009

Modified Files:
        src/sys/dev [netbsd-5]: md.c

Log Message:
Pull up following revision(s) (requested by manu in ticket #749):
        sys/dev/md.c: revision 1.58
TFTPROOT loads the RAMdisk through TFTP at boot time. It needs the
network to be functionnal, and therefore must be called after
config_finalize(). Unfortunately, config_finalize() attaches md0
through mdattach(), and when tftproot_getfile() attempts to attach it
later by calling mdattach() again, it gets a failure.
This change checks for the RAMdisk size in mdattach(). If it is zero, then
the RAMdisk has not been loaded yet, and nothing is done. It will be
attached later when tftproot_getfile() will call mdattach()


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.56.6.1 src/sys/dev/md.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index