From owner-freebsd-fs@FreeBSD.ORG Mon Apr 8 09:30:19 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 11B93989 for ; Mon, 8 Apr 2013 09:30:19 +0000 (UTC) (envelope-from jdc@koitsu.org) Received: from qmta12.emeryville.ca.mail.comcast.net (qmta12.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:227]) by mx1.freebsd.org (Postfix) with ESMTP id ECBD6E28 for ; Mon, 8 Apr 2013 09:30:18 +0000 (UTC) Received: from omta23.emeryville.ca.mail.comcast.net ([76.96.30.90]) by qmta12.emeryville.ca.mail.comcast.net with comcast id MMW01l0011wfjNsACMWJiV; Mon, 08 Apr 2013 09:30:18 +0000 Received: from koitsu.strangled.net ([67.180.84.87]) by omta23.emeryville.ca.mail.comcast.net with comcast id MMWH1l00K1t3BNj8jMWHSP; Mon, 08 Apr 2013 09:30:18 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 9853173A33; Mon, 8 Apr 2013 02:30:17 -0700 (PDT) Date: Mon, 8 Apr 2013 02:30:17 -0700 From: Jeremy Chadwick To: Lev Serebryakov Subject: Re: ZFS snapshots and daily security checks Message-ID: <20130408093017.GA76398@icarus.home.lan> References: <20130408005438.GA66727@icarus.home.lan> <1504594172.20130408114200@serebryakov.spb.ru> <20130408080738.GA73905@icarus.home.lan> <1884594284.20130408125002@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1884594284.20130408125002@serebryakov.spb.ru> User-Agent: Mutt/1.5.21 (2010-09-15) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1365413418; bh=LDszSYquqA0cYS0lFxKP6P0D7a2wAFFwDjUdjsqTEqk=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=fdTEr3iqhAxOqzcPLqVC6nktGmxxw3mXUPeeO53yvEIlmOKwEWufb8ChfVi55qnu6 /IDU+pQm2e2h9JNJf3cgp69RS3/Wb85UMGsWTESp+WOSuHzynBrVEr7mbhhcdNeYDL femEpKgPJAc21GbGh3cpJtZv0ljkdufQursYAxWaR7hFe9wy8xv6w86VwlVD3dHxHd QE9SzqY59oNcIcepNAyaA5OM8fuq2V0EIfo2dEsew+Bh6AHf+582mR4qd5V+8SsYl7 yUtHTCON1eiF6uJdiOTCRK1duxR93NwnH+v6Kdv/XI5HrvwkGFNdlxn1krrqxWLpkf j9wbAPMA14ysA== Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Apr 2013 09:30:19 -0000 On Mon, Apr 08, 2013 at 12:50:02PM +0400, Lev Serebryakov wrote: > Hello, Jeremy. > You wrote 8 апреля 2013 г., 12:07:38: > > JC> I don't know what to tell you -- my output clearly shows that after > JC> creating a snapshot with "zfs snapshot -r filesystem@snapname" that > JC> mount nor mount -p show anything. > What's really wander me, why is here difference between `mount' and > `mount -p' output on my system. It looks like `-p' option should be > cosmetic one... > > JC> I wonder if you have either pool or filesystem-level attributes which > JC> are causing your issue. > > JC> Here are mine, for the pool and filesystem I used in my previous mail > JC> (pool "data" and filesystem "data/home"): > > JC> data/home snapdir hidden default > pool/home snapdir visible default > > It is only not size- and date-related difference. So, we know why > here is difference between my and your `mount -p' outputs! (BTW, why > both values are default?!) And what about the properties for the filesystem called "pool" (yes, I said filesystem, and I mean it)? My theory is that your "pool" filesystem has the snapdir property as visible, and therefore all filesystems under pool (ex. "pool/home") would inherit the value. Looking at the ZFS code, hidden **is** the default, even in r244958 (which you're running): http://svnweb.freebsd.org/base/stable/9/sys/cddl/contrib/opensolaris/common/zfs/zfs_prop.c?view=annotate See line 218. The 3rd parameter, ZFS_SNAPDIR_HIDDEN, is what defines the default value. -- | Jeremy Chadwick jdc@koitsu.org | | UNIX Systems Administrator http://jdc.koitsu.org/ | | Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |