Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964825AbVI2Tdh (ORCPT ); Thu, 29 Sep 2005 15:33:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964798AbVI2Td2 (ORCPT ); Thu, 29 Sep 2005 15:33:28 -0400 Received: from ppp-62-11-74-97.dialup.tiscali.it ([62.11.74.97]:53917 "EHLO zion.home.lan") by vger.kernel.org with ESMTP id S964793AbVI2TdB (ORCPT ); Thu, 29 Sep 2005 15:33:01 -0400 From: "Paolo 'Blaisorblade' Giarrusso" Subject: [PATCH] Fix dm-snapshot tutorial in Documentation Date: Thu, 29 Sep 2005 20:42:43 +0200 To: Linus Torvalds , Andrew Morton Cc: linux-kernel@vger.kernel.org Message-Id: <20050929184243.12900.47864.stgit@zion.home.lan> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org From: Paolo 'Blaisorblade' Giarrusso I've recently added this documentation, Alasdair gave some corrections, and here are some further corrections on top of his work (partly style issue, partly a technical error due to different past experience, partly a note which I've added - i.e. transient snapshots are lighter). Cc: Alasdair G Kergon Signed-off-by: Paolo 'Blaisorblade' Giarrusso --- Documentation/device-mapper/snapshot.txt | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/device-mapper/snapshot.txt b/Documentation/device-mapper/snapshot.txt --- a/Documentation/device-mapper/snapshot.txt +++ b/Documentation/device-mapper/snapshot.txt @@ -19,7 +19,6 @@ There are two dm targets available: snap *) snapshot-origin which will normally have one or more snapshots based on it. -You must create the snapshot-origin device before you can create snapshots. Reads will be mapped directly to the backing device. For each write, the original data will be saved in the of each snapshot to keep its visible content unchanged, at least until the fills up. @@ -27,7 +26,7 @@ its visible content unchanged, at least *) snapshot -A snapshot is created of the block device. Changed chunks of +A snapshot of the block device is created. Changed chunks of sectors will be stored on the . Writes will only go to the . Reads will come from the or from for unchanged data. will often be @@ -37,6 +36,8 @@ the amount of free space and expand the is P (Persistent) or N (Not persistent - will not survive after reboot). +The difference is that for transient snapshots less metadata must be +saved on disk - they can be kept in memory by the kernel. How this is used by LVM2