From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Tue, 26 Mar 2013 14:56:40 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: <86d7b1bda15f1dbeba599814a88c12dc@rei2.9hal> References: <86d7b1bda15f1dbeba599814a88c12dc@rei2.9hal> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Disk backup? Topicbox-Message-UUID: 3690b124-ead8-11e9-9d60-3106f5b1d025 > int > cwfree(Device *dev, Off addr) > { > int state; > > if(dev->type == Devcw) { > state = cwio(dev, addr, 0, Ofree); > if(state != Cdirty) > return 1; /* do not put in freelist */ > } > return 0; /* put in freelist */ > } > > now, such a Cdirty block could just sit in the freelist for a while no? > while the filesystem does many dump generations. if that Cdirty block > becomes part of the filesystem again because it is allocated, then > the next cwrecur() should pick it up and call split() on it. why wouldn't it be marked for dump on the very first dump? - erik