From owner-freebsd-fs Fri Jul 31 18:51:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA12164 for freebsd-fs-outgoing; Fri, 31 Jul 1998 18:51:12 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from mongkok.hk.super.net (mongkok.hk.super.net [202.14.67.46]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA12159 for ; Fri, 31 Jul 1998 18:51:10 -0700 (PDT) (envelope-from raju@rssd.hk.olivetti.com) Received: from oli-super-gw.hk.olivetti.com (oligate.hk.olivetti.com [202.64.193.50]) by mongkok.hk.super.net (8.8.8/8.8.8) with ESMTP id JAA06838 for ; Sat, 1 Aug 1998 09:51:04 +0800 (HKT) Received: from olibbs.hk.olivetti.com (olibbs.hk.olivetti.com [202.64.192.2]) by oli-super-gw.hk.olivetti.com (8.9.0/8.9.0) with ESMTP id JAA24512 for ; Sat, 1 Aug 1998 09:51:03 +0800 (HKT) Received: from rssd.hk.olivetti.com (rssd.hk.olivetti.com [202.64.192.5]) by olibbs.hk.olivetti.com (8.8.7/8.8.7) with SMTP id JAA09245 for <@olibbs.hk.olivetti.com:freebsd-fs@FreeBSD.ORG>; Sat, 1 Aug 1998 09:51:02 +0800 (CST) (envelope-from raju@rssd.hk.olivetti.com) Message-Id: <199808010151.JAA09245@olibbs.hk.olivetti.com> Subject: Re: Trying to recover lost file To: tlambert@primenet.com (Terry Lambert) Date: Sat, 1 Aug 1998 09:48:32 +0800 (HKT) From: "Raju M. Daryanani" Cc: mystify@wkstn4-208.lxr.georgetown.edu, freebsd-fs@FreeBSD.ORG In-Reply-To: <199807312116.OAA29689@usr09.primenet.com> from "Terry Lambert" at Jul 31, 98 09:16:23 pm X-Mailer: ELM [version 2.4 PL21] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org According to Terry Lambert: > > The first thing to do is to find the inode of the file that was deleted. >From memory of Bach's "The Design of the UNIX OS", the inode should be the first on the free list, since he just deleted it. Or do things work differently on the Berkeley File System? Bach also mentioned that when you delete a file its data blocks are placed on the block free list in reverse order. Again I don't know if this applies to the Berkely File System, but if it's the case it could simplify the undeletion. Raju -- Raju M. Daryanani | Email: raju@rssd.hk.olivetti.com Network Integration Acting Manager | raju@hk.super.net Greater China | Tel: +852 2979 2450 / Fax: +852 2802 6591 Olivetti (HK) Ltd. | [MIME understood] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message