Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 01:52:09 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        shmukler@mail.ru (Igor Shmukler)
Cc:        freebsd-fs@FreeBSD.ORG
Subject:   Re: fs structure
Message-ID:  <200104240152.SAA14909@usr08.primenet.com>
In-Reply-To: <00b701c0cc20$45e61420$7b02a8c0@tp600e> from "Igor Shmukler" at Apr 23, 2001 02:06:16 PM

next in thread | previous in thread | raw e-mail | index | archive | help
> I have a question about  ffs structure. Superblock is located at 0x2000 =
> physical on disk. Where in superblock is pointer to first inode (inode =
> #2)?
> Is it fs_iblkno?
> Thanks.

See /sys/kern/vfs_syscalls.c.

Search for the first occurance of "mnt_vnodecovered", which
occurs in the "mount()" system call code.

Effectively, it looks up the inode by number.

You may also want to search for "mnt_vnodecovered" in the file
/sys/kern/vfs_lookup.c; in particular, look at mount point
traversal in the ".." case.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104240152.SAA14909>