From owner-freebsd-fs@FreeBSD.ORG Mon Apr 10 17:56:04 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9806B16A401 for ; Mon, 10 Apr 2006 17:56:04 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC8EC43D48 for ; Mon, 10 Apr 2006 17:56:03 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k3AHu2Hn029139; Mon, 10 Apr 2006 12:56:03 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <443A9C26.4060103@centtech.com> Date: Mon, 10 Apr 2006 12:55:50 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5 (X11/20060402) MIME-Version: 1.0 To: Diego Woitasen References: <1144687418.11014.9.camel@diegows> In-Reply-To: <1144687418.11014.9.camel@diegows> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1389/Mon Apr 10 07:58:55 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-fs@freebsd.org Subject: Re: How a file is deleted in ufs2? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Apr 2006 17:56:04 -0000 Diego Woitasen wrote: > I want to know how a file is deleted in a ufs2 filesystem, specifically > what happen with the information in the inode. The information is > deleted to or the inode is marked as free but the information (uid, gid, > blocks, times, etc) remains there? > > I read the chapter 8 of 'Design and implementation of FreeBSD" and "a > Fast file system for Unix", but i can't see the answer. > > Reading the code is an interesting choice, but is the last resource :) I'm 100% certain here, but looking at the code, I don't think much happens besides freeing the inode and clearing it for re-use. The on-disk data remains. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------