Date: Mon, 10 Apr 2006 15:09:01 -0300 From: Patrick Tracanelli <eksffa@freebsdbrasil.com.br> To: freebsd-fs@freebsd.org Subject: Re: How a file is deleted in ufs2? Message-ID: <443A9F3D.6090008@freebsdbrasil.com.br> In-Reply-To: <443A9C26.4060103@centtech.com> References: <1144687418.11014.9.camel@diegows> <443A9C26.4060103@centtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Eric Anderson wrote: > 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 When the story ends, you have char *f unlink(f); in the code. So reading "man 2 unlink" might be a good start point. If reading McKusick's book and the syscall man page dont make it clear, you will have no better choice other than reading the code yourself :D -- Patrick Tracanelli FreeBSD Brasil LTDA. (31) 3281-9633 / 3281-3547 316601@sip.freebsdbrasil.com.br http://www.freebsdbrasil.com.br "Long live Hanin Elias, Kim Deal!"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?443A9F3D.6090008>