Date: Tue, 30 Oct 2001 12:02:39 +0900 From: "Lim,JaeDeok" <jdscol92@etri.re.kr> To: <freebsd-fs@freebsd.org> Subject: [Q]root file system mount(initialization) in booting time. Message-ID: <000801c160ef$560430d0$ad7afe81@etri.re.kr>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hello. everyone.!
I have some questions about filesystem initialization(namely, root filesystem mount) in FreeBSD 4.3.
I can see the message that root file system is mounted.
Then where is the routine that played this role.??
In VFS, I think 'vfsinit()' routine in 'vfs_init.c' file play that role. Right?
(1) SI_SUB_VFS = 0x4000000, /* virtual file system*/
(2) SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vfsinit, NULL);
The sysinit_sub_id of VFS is defined in 'enum sysinit_sub_id {}' in 'kernel.h' file like (1).
And VFS is ordered to initialize by 'SYSINIT()' macro in 'vfs_init.c' file like (2).
If that's the case, How is the root file system(e.g. UFS/FFS) mounted in booting time?
Is it like the VFS initialization..?? If so, where ? how?
And then, next question is the order between VFS and root file system initialization.
Is VFS initialization done before root filesystem mount in booting time?
Or vice versa .?
Please, answer me in detail if you possible.
Thanks in advance.
Have a good day.
[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hello. everyone.!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>I have some questions about filesystem initialization(namely,
root filesystem mount) in FreeBSD 4.3.<BR>I can see the message that root file
system is mounted. <BR>Then where is the routine that played this
role.??</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>In VFS, I think 'vfsinit()' routine in 'vfs_init.c' file play
that role. Right?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>(1)
SI_SUB_VFS
= 0x4000000, /* virtual file system*/<BR>(2) SYSINIT(vfs,
SI_SUB_VFS, SI_ORDER_FIRST, vfsinit, NULL);</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>The sysinit_sub_id of VFS is defined in 'enum sysinit_sub_id
{}' in 'kernel.h' file like (1).<BR>And VFS is ordered to initialize by
'SYSINIT()' macro in 'vfs_init.c' file like (2).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>If that's the case, How is the root file system(e.g. UFS/FFS)
mounted in booting time?<BR>Is it like the VFS initialization..?? If so, where ?
how?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>And then, next question is the order between VFS and root file
system initialization.<BR>Is VFS initialization done before root filesystem
mount in booting time?<BR>Or vice versa .?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Please, answer me in detail if you possible.<BR>Thanks in
advance.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Have a good day.</FONT></DIV></BODY></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801c160ef$560430d0$ad7afe81>
