From owner-freebsd-fs@FreeBSD.ORG Sun Dec 25 12:54:27 2011 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 22277106566B for ; Sun, 25 Dec 2011 12:54:27 +0000 (UTC) (envelope-from freebsd-fs@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id A52528FC08 for ; Sun, 25 Dec 2011 12:54:26 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Renaq-0004Fa-Ph for freebsd-fs@freebsd.org; Sun, 25 Dec 2011 13:54:24 +0100 Received: from dyn1243-120.vpn.ic.ac.uk ([129.31.243.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Dec 2011 13:54:24 +0100 Received: from johannes by dyn1243-120.vpn.ic.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Dec 2011 13:54:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-fs@freebsd.org From: Johannes Totz Date: Sun, 25 Dec 2011 12:54:11 +0000 Lines: 44 Message-ID: References: <20111225102719.GA44906@tolstoy.tols.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dyn1243-120.vpn.ic.ac.uk User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <20111225102719.GA44906@tolstoy.tols.org> Subject: Re: Restoring received properties on a received filesystem. 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: Sun, 25 Dec 2011 12:54:27 -0000 On 25/12/2011 10:27, Marco van Tol wrote: > Hi there, > > I was experimenting was zfs send and receive, and noticed when including > all properties in the transfer the mountpoint happily comes along as > well. Ofcourse. This could give issues when receiving the filesysyem > not into its own zpool, because mountpoint settings can collide and give > some surprises on reboots. Check out zfs receive -u, it doesn't mount the receiving filesystem. zpool import -N doesn't mount your importing backup-pool. > But then I found out that if you change a > setting on the receiving side, it will not get overwritten by future > receives, which is good. :-) > > Then I started wondering how to figure out received properties on the > receiving side after overriding them. This email from 2009 seems > relevant. > http://mail.opensolaris.org/pipermail/opensolaris-arc/2009-September/018315.html > > In that mail there is mention about "zfs get -s received", which > is accepted on the commandline, but doesn't display the received > property separatedly from what is currently in effect. > > Also there is mention of "zfs inherit -S", which I have tested to work, > and which is great. It would be good to include it in the freebsd zfs > manual page, as it is a very usefull zfs inherit flag. > > So, long story short: > - Is there a way to see received properties on a filesystem after they > have been locally overrided on FreeBSD? > - Can the -S flag to inherit be included in the manual page? > > Thanks, and merry christmas! > > Marco > > System: FreeBSD 8.2-STABLE #13: Sat Dec 24 01:54:44 CET 2011 > ZFS Pool Version: 28 > ZFS filesystem version: 4 on the received FS, 5 for the rest >