From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5db02d8d4202afa28a05b7b943fbd553@terzarima.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] truncation via wstat on ken's fs From: Charles Forsyth Date: Mon, 18 Oct 2004 09:03:06 +0100 In-Reply-To: <7ea713cb549c1d7b91a32c77987b62c2@collyer.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: efb8de52-eacd-11e9-9e20-41e7f4b1d025 >>Ken frees blocks in reverse order (last block freed first), presumably >>to assist repairs if the system should crash in the middle of it, or it was traditional from v6: /* * Free all the disk blocks associated * with the specified inode structure. * The blocks of the file are removed * in reverse order. This FILO * algorithm will tend to maintain * a contiguous free list much longer * than FIFO. */ itrunc(ip) int *ip; { ...