From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Costin Chirvasuta Date: Fri, 12 Aug 2016 19:25:51 +0300 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] bufreset deletes b->nbl-1 blocks? Topicbox-Message-UUID: 972fa9a8-ead9-11e9-9d60-3106f5b1d025 I believe bufreset can be called at any time and b->cbi (the current cached block) can point to anything. Either way, that block is never returned to the Disc's free list so that file address won't be reused from that point on. On Fri, Aug 12, 2016 at 7:16 PM, James A. Robinson wrote: > Have you checked whether or not that final block is > special in some way? For example only mapped to > memory and not to disk blocks? > > Jim >