Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Sep 2003 10:02:40 -0400 (EDT)
From:      Robert Watson <rwatson@freebsd.org>
To:        Peter Jeremy <PeterJeremy@optushome.com.au>
Cc:        freebsd-current@freebsd.org
Subject:   Re: .fsck_snapshot file
Message-ID:  <Pine.NEB.3.96L.1030902100102.81810A-100000@fledge.watson.org>
In-Reply-To: <20030902085804.GB89347@cirb503493.alcatel.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 2 Sep 2003, Peter Jeremy wrote:

> On Tue, Sep 02, 2003 at 08:27:00AM +0200, Christoph Kukulies wrote:
> >I have a file .fsck_snapshot in /usr (of 7 GB ?!)
> >-r--------   1 root   wheel  7220781056 Aug 22 18:08 .fsck_snapshot
> 
> The '7GB' does not mean you'll free up 7GB of disk space by freeing it. 
> IIRC, it's actually the size of the filesystem. 

Although, as time goes by since the creation a snapshot, if you have a
fairly live file system, it will begin to approach it :-).  I've been
wondering if we ought to have some magic to GC these snapshots if/when
they are discovered during the boot or mount process just to be on the
safe side.  In theory, the window where the name exists is small (fsck
creates, opens, and immediately unlinks the snapshot).  Unfortunately, in
practice the window is apparently pretty wide since any system failure
during snapshot creation will (I believe) leave the snapshot reference
behind. 

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Network Associates Laboratories




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1030902100102.81810A-100000>