From owner-freebsd-hackers Fri May 28 13:15:41 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from sol (cs1-gw.cs.binghamton.edu [128.226.171.72]) by hub.freebsd.org (Postfix) with SMTP id CEF9F14F30 for ; Fri, 28 May 1999 13:15:08 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from localhost (zzhang@localhost) by sol (SMI-8.6/8.6.9) with SMTP id QAA10944 for ; Fri, 28 May 1999 16:03:48 -0400 Date: Fri, 28 May 1999 16:03:47 -0400 (EDT) From: Zhihui Zhang To: freebsd-hackers@freebsd.org Subject: Algorithm used to delete part of a file Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am wondering what will happen to the underlying data blocks and indirect blocks of a file if I delete a part of the file - how these blocks are re-organized. I have no idea which source code should I look into to understand this. Maybe I should read the source code for vi or another editor. I hope someone can suggest me a better way to understand this or describe briefly the algorithm. Any help is appreciated. -Zhihui -------------------------------------------------- Zhihui Zhang. Please visit http://www.freebsd.org -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message