From owner-freebsd-chat Thu Jan 23 15: 0:36 2003 Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D206937B401 for ; Thu, 23 Jan 2003 15:00:35 -0800 (PST) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF20B43F13 for ; Thu, 23 Jan 2003 15:00:34 -0800 (PST) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.6/8.12.6) with ESMTP id h0NN0X4L007302; Thu, 23 Jan 2003 23:00:33 GMT (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost) by storm.FreeBSD.org.uk (8.12.6/8.12.6/Submit) with UUCP id h0NN0XnX007301; Thu, 23 Jan 2003 23:00:33 GMT X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.6/8.12.6) with ESMTP id h0NMwlaX006708; Fri, 24 Jan 2003 00:58:47 +0200 (SAST) (envelope-from mark@grondar.org) Message-Id: <200301232258.h0NMwlaX006708@grimreaper.grondar.org> To: JacobRhoden Cc: freebsd-chat@FreeBSD.ORG Subject: Re: recover overwritten file In-Reply-To: Your message of "Fri, 24 Jan 2003 09:43:31 +1100." <200301240943.31823.jrhoden@unimelb.edu.au> Date: Thu, 23 Jan 2003 22:58:46 +0000 From: Mark Murray Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > What would need to be in the filesystem to allow it? Surely there is a simple > solution like a directory which could hold pointers to all 'un' linked files? > (however i have never hacked a file system so I dont know these things). There is. ;-) It is called a shell script, and you haven't written it yet. Replace rm(1) with 'mv $* ${BACKUPDIR}' and you have it. You will need to play with options to make it command-line compatible. The UFS does not have this facility. Un*x encourages foot-shooting. M -- Mark Murray iumop ap!sdn w,I idlaH To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message