From owner-freebsd-current@FreeBSD.ORG Tue Sep 2 07:03:36 2003 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 8DA1416A4BF for ; Tue, 2 Sep 2003 07:03:36 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AE6F43FE1 for ; Tue, 2 Sep 2003 07:03:33 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9/8.12.9) with ESMTP id h82E2nrO081849; Tue, 2 Sep 2003 10:02:53 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h82E2eCx081846; Tue, 2 Sep 2003 10:02:41 -0400 (EDT) Date: Tue, 2 Sep 2003 10:02:40 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Peter Jeremy In-Reply-To: <20030902085804.GB89347@cirb503493.alcatel.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Christoph Kukulies cc: freebsd-current@freebsd.org Subject: Re: .fsck_snapshot file 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: Tue, 02 Sep 2003 14:03:36 -0000 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