Date: Wed, 09 Aug 2006 18:21:44 -0600 From: Scott Long <scottl@samsco.org> To: Geeta Khetan <geetakhetan@hotmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: bitmap of filesystem Message-ID: <44DA7C18.9050802@samsco.org> In-Reply-To: <BAY107-F259353F81291142F1B42BCA0550@phx.gbl> References: <BAY107-F259353F81291142F1B42BCA0550@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
Geeta Khetan wrote: > > Is there a global bitmap that keeps track of busy/free blocks over the > entire file system ? Is there a API or command i can use for that map? > Thanks No, the bitmaps are stored on a per-cylinder group basis. You can use cgread() in libufs to read each group and then examine the bitmaps with the cg* macros in /sys/ufs/ffs/fs.h. Scott
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44DA7C18.9050802>