From owner-freebsd-questions@FreeBSD.ORG Mon Jan 16 12:44:55 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63F4B1065670 for ; Mon, 16 Jan 2012 12:44:55 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 2237A8FC19 for ; Mon, 16 Jan 2012 12:44:54 +0000 (UTC) Received: from r56.edvax.de (port-92-195-26-82.dynamic.qsc.de [92.195.26.82]) by mx02.qsc.de (Postfix) with ESMTP id 08F0A1F3F8; Mon, 16 Jan 2012 13:44:53 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q0GCirm7002092; Mon, 16 Jan 2012 13:44:53 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 16 Jan 2012 13:44:53 +0100 From: Polytropon To: RW 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> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: dot snap folder X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2012 12:44:55 -0000 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, ...