Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 2004 23:29:14 -0500 (EST)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        jesse@wingnet.net
Cc:        freebsd-current@FreeBSD.ORG
Subject:   filesystem snapshot question
Message-ID:  <200401190429.i0J4TEqI052075@khavrinen.lcs.mit.edu>
In-Reply-To: <bufle7$bsb$1@sea.gmane.org>
References:  <bufle7$bsb$1@sea.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Sun, 18 Jan 2004 23:11:51 -0500, Jesse Guardiani <jesse@wingnet.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401190429.i0J4TEqI052075>