From owner-freebsd-hackers Wed Jul 19 4:39:47 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 4664737BB0B for ; Wed, 19 Jul 2000 04:39:44 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 19 Jul 2000 12:39:43 +0100 (BST) Date: Wed, 19 Jul 2000 12:39:42 +0100 From: David Malone To: dms@wplus.net Cc: andrew@ugh.net.au, freebsd-hackers@freebsd.org Subject: Re: UFS inodes readig ... Message-ID: <20000719123942.A46036@walton.maths.tcd.ie> References: <397590FF.E7550C2C@levi.spb.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.2i In-Reply-To: <397590FF.E7550C2C@levi.spb.ru>; from dms@levi.spb.ru on Wed, Jul 19, 2000 at 03:29:03PM +0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jul 19, 2000 at 03:29:03PM +0400, Dmitry samersoff wrote: > It's very usable tool, but I'm looking for C/C++ code > doing: > > while( read_next_inode ) > { > if (inode_is_deleted && inode_data_contains_some_text) > { write(outfile, inode_data, inode_size); > } > } > > And I would be very thankfull > if someone can send me source or pointer to good start for > function "read_next_inode" You might be able to modify /sbin/dump to do this. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message