Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jan 2012 13:44:53 +0100
From:      Polytropon <freebsd@edvax.de>
To:        RW <rwmaillists@googlemail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: dot snap folder
Message-ID:  <20120116134453.092406a6.freebsd@edvax.de>
In-Reply-To: <20120116122127.7ee58697@gumby.homeunix.com>
References:  <4F1363E4.2090104@paz.bz> <20120116064639.ef2dba63.freebsd@edvax.de> <20120116055451.GG51930@libertas.local.camdensoftware.com> <201201160532.12066.lumiwa@gmail.com> <20120116125959.9ac522cc.freebsd@edvax.de> <20120116122127.7ee58697@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 16 Jan 2012 12:21:27 +0000, RW wrote:
> On Mon, 16 Jan 2012 12:59:59 +0100
> Polytropon wrote:
> 
> > On Mon, 16 Jan 2012 05:32:11 -0600, ajtiM wrote:
> > > On Sunday 15 January 2012 23:54:52 Chip Camden wrote:
> > > > Quoth Polytropon on Monday, 16 January 2012:
> > > > > On Sun, 15 Jan 2012 15:40:20 -0800, Jim Pazarena wrote:
> > > > > > Is it permissible to delete the dot snap folder which is
> > > > > > created in a filesystem?
> > > > > 
> > > > > First of all, it's called a directory, not a "folder". :-)
> > > > 
> > > > After all, it doesn't fold (for that you need a little Haskell or
> > > > OCaml).
> > > 
> > > ...and the answer if is it permissible to delete .snap directory
> > > is?? Thank you.
> > 
> > The answer has been provided two times, none of them is
> > quoted above or below. :-)
> > 
> > I may repeat: It is permissible _unless_ you are running
> > the dump program on a live partition using the -L option.
> > 
> > As the question has been answered, 
> 
> I'm not sure it has. AFAIK it's also used by background fsck.

That information could be obtained by conclusion and
by experience. I had the experience that it might
interfere with a regular fsck (not the background one)
if present. Only at a background run you'd have the
opportunity to remove .snap, whereas during a normal
fsck run (typically at startup) you cannot do this
(without interrupting fsck).

Anyway, you're right: fsck_ffs's source code mentiones
the .snap directory. It's line 320 and later. The comment
at line 283 suggests that fsck will _create_ that
directory if required, just like dump -L would do.
Line numbers for /usr/src/sbin/fsck_ffs/main.c OS
version 8.2-STABLE here, may differ for others.

So there may be an extension of my summary:

It is permissible _unless_ you are running the dump
program on a live partition using the -L option -or-
you are currently running (background) fsck.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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