Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Mar 2013 14:18:09 +0100
From:      "C. P. Ghost" <cpghost@cordula.ws>
To:        Polytropon <freebsd@edvax.de>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Grepping though a disk
Message-ID:  <CADGWnjVCtuMSQGkzBJoBVNL3mkZfXuQzR1c8O=m46wcOHnkOjw@mail.gmail.com>
In-Reply-To: <20130304013608.7981e8a9.freebsd@edvax.de>
References:  <20130304013608.7981e8a9.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 4, 2013 at 1:36 AM, Polytropon <freebsd@edvax.de> wrote:
> Any suggestion is welcome!

How about crawling the metadata, locating each block
that is already allocated, and skip those blocks when you
scan the disk? That could reduce the searching space
significantly. blkls(1) et al. from the Sleuth Kit are your friends.

Good luck,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



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