Subject: Another question about LFS data
To: tech-kern@netbsd.org, Konrad Schroder <perseant@hhhh.org>
From: Trevin Beattie <trevin@xmission.com>
List: tech-kern
Date: 06/20/2002 16:13:42
What is the units for fi_blocks (struct finfo)? In lfs_segnment.c, it's
assigned the value of bp->b_lblkno (line 1020) which has a unit of
DEV_BSIZE (the same as bp->b_blkno, line 1484); but in lfs_vfsops.c it's
passed to the function update_meta() which expects a file system block number.
struct finfo is stored on disk, isn't it? In that case, fi_blocks must not
use DEV_BSIZE units, because the value of DEV_BSIZE is not stored (and may
change).
Also note that start_lbp (struct segment) has the same units as fi_blocks.
-----------------------
Trevin Beattie "Do not meddle in the affairs of wizards,
trevin@xmission.com for you are crunchy and good with ketchup."
{:-> --unknown