From owner-freebsd-current@FreeBSD.ORG Sun Jan 18 20:29:19 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB12316A4CE for ; Sun, 18 Jan 2004 20:29:19 -0800 (PST) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id A819E43D39 for ; Sun, 18 Jan 2004 20:29:18 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost.nic.fr [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.9/8.12.9) with ESMTP id i0J4THDa052078 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK CN=khavrinen.lcs.mit.edu issuer=SSL+20Client+20CA); Sun, 18 Jan 2004 23:29:17 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.9/8.12.9/Submit) id i0J4TEqI052075; Sun, 18 Jan 2004 23:29:14 -0500 (EST) (envelope-from wollman) Date: Sun, 18 Jan 2004 23:29:14 -0500 (EST) From: Garrett Wollman Message-Id: <200401190429.i0J4TEqI052075@khavrinen.lcs.mit.edu> To: jesse@wingnet.net In-Reply-To: References: X-Spam-Score: -9.9 () IN_REP_TO,REFERENCES X-Scanned-By: MIMEDefang 2.37 X-Mailman-Approved-At: Mon, 19 Jan 2004 06:28:30 -0800 cc: freebsd-current@FreeBSD.ORG Subject: filesystem snapshot question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2004 04:29:19 -0000 < said: > So when a snapshot is active on a filesystem, does > every disk write happen twice? Once to the real > filesystem and once to the snapshot with old data? No. Writes only happen once. If a block is part of a snapshot, a new block on the disk is allocated to hold the updated data. > Does a snapshot physically grow on the disk as > changes are made to the real filesystem? No, but the active filesystem shrinks, as blocks that were formerly shared with the snapshot become exclusively the property of the snapshot(s) which contain them. -GAWollman