--- - branch: MAIN date: Mon May 4 16:20:41 UTC 2009 files: - new: '1.58' old: '1.57' path: src/sys/dev/md.c pathrev: src/sys/dev/md.c@1.58 type: modified id: 20090504T162041Z.de804553746e7ce43005afa79d0e5cede0857896 log: | 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() module: src subject: 'CVS commit: src/sys/dev' unixtime: '1241454041' user: manu