Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Sep 2003 18:44:51 -0400
From:      Eno Thereska <eno@andrew.cmu.edu>
To:        freebsd-fs@freebsd.org
Subject:   free block bitmap
Message-ID:  <3F5D0663.7020902@andrew.cmu.edu>

next in thread | raw e-mail | index | archive | help
Hi,

I am using FreeBSD4.4 with FFS as the underlying file system.
I need to examine which blocks in the file system
are currently in use. These blocks can be metadata or data blocks.

I have looked at the FFS code and it seems the only way to get
the list of free blocks (or busy blocks) is by querying
each cylinder group's (cg) bitmap of free blocks.

Is there a global bitmap that keeps track of busy/free blocks
over the entire file system or is the only option
the cg-by-cg lookup?

Thanks a lot
Eno



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