From owner-freebsd-fs@FreeBSD.ORG Mon Dec 6 21:28:49 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A07131065670 for ; Mon, 6 Dec 2010 21:28:49 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 2CE128FC1B for ; Mon, 6 Dec 2010 21:28:48 +0000 (UTC) Received: by wwf26 with SMTP id 26so8315182wwf.31 for ; Mon, 06 Dec 2010 13:28:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=8tgTSusD+nfaxEd8qo3hZROPOc0K44QxOCFtfb73e9o=; b=aGN9xBWsNALfVc3x5r0D+6K0HoRtD9y4/PvdFAXkWLqzluhJRcW4JHF5VB/HpMAITv a0c5iLDwaVnzwcq7Nnwgvbb+Mv43FYq8SV9IjeDmUXhETSkzBzujLjph9boCNmjgXF7B 7neSbgWyG2++dNrUVE3lyR/9sJH09lYyTVwL0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=OrxlD1rwhD40wiDtKV7VyktHM4fSqdt9uBLyn4dsTfizf3646a8Uia6otfU4HBf4gq m78ijGbe7WBaARk+kzdCjp8jEZBxtS2ZIYqXqwUelYfi5Ln0gMvGIHE9lHCe2urkXjma wlje6hHjS31vedllbrPqZRCnWOnxcnCfI217M= Received: by 10.216.11.205 with SMTP id 55mr485880wex.72.1291670927846; Mon, 06 Dec 2010 13:28:47 -0800 (PST) Received: from centel.dataix.local ([99.19.45.101]) by mx.google.com with ESMTPS id x28sm2591579weq.16.2010.12.06.13.28.45 (version=SSLv3 cipher=RC4-MD5); Mon, 06 Dec 2010 13:28:46 -0800 (PST) Sender: "J. Hellenthal" Message-ID: <4CFD558C.2060202@DataIX.net> Date: Mon, 06 Dec 2010 16:28:44 -0500 From: jhell Organization: http://www.DataIX.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.12) Gecko/20101028 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: Patrick Proniewski References: <4524EE89-E0A2-4CCF-92F9-80BB709C4BF6@patpro.net> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: FreeBSD Filesystems Subject: Re: auto-mounting ZFS snapshots X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2010 21:28:49 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/06/2010 16:13, Patrick Proniewski wrote: > On 6 déc. 2010, at 18:20, Freddie Cash wrote: > >> FreeBSD automounts the "hidden" .zfs filesystem hierarchy where >> snapshots are "stored" automatically. No need for amd. > > The zfs man page reads: > > File system snapshots can be accessed under the ".zfs/snapshot" > direc- tory in the root of the file system. Snapshots are > automatically mounted on demand and may be unmounted at regular > intervals. The visi- bility of the ".zfs" directory can be controlled > by the "snapdir" prop- erty. > > "may be unmounted at regular intervals" <-- what about this? Do I > have to create a periodic script that'll unmount snapshots? And if > so, how can I make a script that'll unmount only snapshots mounted > for over, say, 1 hour? No this is a no worry type of thing. This is a transparent process that handles what is available. Just consider them mounted all the time but you will not see them. Play with it a little and see what it looks like. mount(1) will not even show them as mounted so there is no worries here. The correct thing happens to keep you from shooting yourself in the foot. - -- jhell,v -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJM/VWMAAoJEJBXh4mJ2FR+rksH+wRM2iGqZGRxJ+HqgBbdl1PT /ppl3Wvf5S+RQaltEYuL5H4oYgfKW08R3isP3zrHIGcfhcoef0ehi33dH0ZZCUGr aOPB9WspWy46OQhz6i5SRuZCGl1cvauT63zufi4meSwlT4e0el16JcQIU0W1DX0s 8if7oah+ZaldHmJscfU6Rv/kw+yNnv40s7XFMSnVGEOaX93+lTts2vNCLZPRs5pF bhPQW1ueNgrV4g+VSeC/N9RuClXHWQXXvehMxosrfvaeB/W06R+xI9c9u6wzKDl1 ZnPKNGhG2ej6dTdpST15k2vj0bYD2JESat/1U95UQShXyvqhNnn4s2PYEVxxNao= =JK4c -----END PGP SIGNATURE-----