From owner-freebsd-questions@FreeBSD.ORG Thu Sep 25 23:12:40 2008 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 5D54A106568C for ; Thu, 25 Sep 2008 23:12:40 +0000 (UTC) (envelope-from nejc@skoberne.net) Received: from mail.tnode.com (common.tnode.com [91.185.203.243]) by mx1.freebsd.org (Postfix) with ESMTP id F1F7E8FC15 for ; Thu, 25 Sep 2008 23:12:39 +0000 (UTC) (envelope-from nejc@skoberne.net) Received: from localhost (mail.jail [10.1.1.10]) by mail.tnode.com (Postfix) with ESMTP id DA3BB21FC589; Fri, 26 Sep 2008 01:12:37 +0200 (CEST) Received: from mail.tnode.com ([10.1.1.10]) by localhost (mail.tnode.com [10.1.1.10]) (amavisd-maia, port 10024) with ESMTP id 82391-04; Fri, 26 Sep 2008 01:12:37 +0200 (CEST) Received: from [192.168.15.2] (lk.84.20.249.154.dc.cable.static.lj-kabel.net [84.20.249.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: nejc@skoberne.net) by mail.tnode.com (Postfix) with ESMTPSA id 0AD4221FC51D; Fri, 26 Sep 2008 01:12:37 +0200 (CEST) Message-ID: <48DC1AE4.9000108@skoberne.net> Date: Fri, 26 Sep 2008 01:12:36 +0200 From: =?ISO-8859-1?Q?Nejc_S=28koberne?= User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: David Polak References: <005401c91f35$3cf09fa0$b6d1dee0$@com> <48DBF589.3030906@skoberne.net> <006b01c91f5a$83c8c360$8b5a4a20$@com> In-Reply-To: <006b01c91f5a$83c8c360$8b5a4a20$@com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard Cc: freebsd-questions@freebsd.org Subject: Re: mount_unionfs for jails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Sep 2008 23:12:40 -0000 Hello, > Well, it turns out that my problem was due to a typo in my host systems > rc.conf. Thought so. > Do you know if there is a way to "reset" the unionfs? I did notice this: It is called "whiteout". When you delete the file which is on lower layer in unionfs, you actually create a file of type "whiteout" on the upper layer, which tells you that the file is not there. So it is a mark for a deleted file. To "reset" it, you just need to delete the whiteout. You can do this via "rm -W". Actually whiteouts seem to be a nice solution but sometimes you'll run into interesting problems. When you try to upgrade jails, for example. Also, the problem is, because very few programs "support" whiteouts, for example "find" utility doesn't know about them, so you have to reimplement it (we made a shell script). We have created a lot of scripts which can do a lot of stuff with jails and unionfs on our server. If you are interested, let me know. HTH, Nejc