Date: Tue, 07 Mar 2006 23:41:37 -0800 From: Glenn Dawson <glenn@antimatter.net> To: Doug Hardie <bc979@lafn.org>, stable@freebsd.org Subject: Re: Inode Usage Message-ID: <7.0.1.0.2.20060307233951.095f5538@antimatter.net> In-Reply-To: <C06C0C06-8AF6-48CC-884D-5ECFDA517D28@lafn.org> References: <C06C0C06-8AF6-48CC-884D-5ECFDA517D28@lafn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
At 07:11 PM 3/7/2006, Doug Hardie wrote: >I am building a tool to identify the file that has a specific LBA. >The approach I am using is to search through each inode from number 2 >up. This approach works well with UFS1 file systems as then >preinitialize all the inodes. However, UFS2 does lazy inode >initialization so there are always some that are basically garbage. >I have not found any relaiable way to determine from the inode >contents if it is in use or not. I suspect that information is in >the inode bit map. However, I haven't found any way to access that. >Nothing in ffs.h seems to fit the need. Is there a way to tell if >inode x is initialized or in use? I believe there are macros for that in sys/ufs/ffs/fs.h. Also, the source for dumpfs probably has good examples of how to use them. -Glenn >_______________________________________________ >freebsd-stable@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-stable >To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7.0.1.0.2.20060307233951.095f5538>