From: "Haripriya S" Subject: Re: dm-snapshot scalability - chained delta snapshots approach Date: Thu, 26 Oct 2006 02:29:07 -0600 Message-ID: <4540C078.A648.00B6.0@novell.com> References: <44DA246B020000B60000BD22@lucius.provo.novell.com> <44DB5BDD020000B60000BD96@lucius.provo.novell.com> <44DB5C21.F25D.00B6.0@novell.com> <451A5915.F25D.00B6.0@novell.com> <20060927091700.GA6314@X40.redhat.com> <62b0912f0610231016r23585c34y6308cb3540ed926c@mail.gmail.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <62b0912f0610231016r23585c34y6308cb3540ed926c@mail.gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids >>> "Molle Bestefich" 10/23/06 10:46 PM >>> > Complex, how? > > Necessary operations (in order listed): > * Acquire exclusive lock on this snapshot. > * Check that next snapshot has room for exceptions, abort if not. If the next snapshot in the write chain does not have room, then we need to go through the list of earlier snapshots and move the exceptions to the first snapshot which has room. This is because the earlier snapshots depend on the data being copied in at least one of the later snapshots. If the next snapshot is the earliest snapshot, then we can abort. > * Acquire exclusive lock on next snapshot. > * Move all exceptions to next snapshot. > * Unlock next snapshot. > * Remove this snapshot. > * Done... Yes. Thanks and Regards, Haripriya