Re: about the source of loader
From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 02/28/05
- Previous message: Kathy Quinlan: "clock.h"
- In reply to: Αυ Ρο: "about the source of loader"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Feb 2005 09:57:34 -0600 To: ?? ?? <ppmmssgg@hotmail.com>
In the last episode (Feb 28), ?? ?? said:
> I have some questions of source of loader
>
> 1. Where is the source of the "ls" command?
/sys/boot/common/ls.c
> 2. How it mount the ufs boot partition as "/" when it start,Is it a
> function or something else?.
The loader can't mount anything, since it isn't the kernel. Since it
can read UFS filesystems, though, if it can find an /etc/fstab, it will
try and pass the path to the root volume to the kernel in the tunable
"vfs.root.mountfrom". See /sys/boot/common/boot.c:getrootmount() and
/sys/kern/vfs_mount.c:vfs_mountroot() .
-- Dan Nelson dnelson@allantgroup.com _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Kathy Quinlan: "clock.h"
- In reply to: Αυ Ρο: "about the source of loader"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|