From owner-svn-doc-projects@FreeBSD.ORG Sun Nov 10 19:21:37 2013 Return-Path: Delivered-To: svn-doc-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5EAEF997; Sun, 10 Nov 2013 19:21:37 +0000 (UTC) (envelope-from bcr@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 318742BCD; Sun, 10 Nov 2013 19:21:37 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAAJLbRU003004; Sun, 10 Nov 2013 19:21:37 GMT (envelope-from bcr@svn.freebsd.org) Received: (from bcr@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAAJLbrd003003; Sun, 10 Nov 2013 19:21:37 GMT (envelope-from bcr@svn.freebsd.org) Message-Id: <201311101921.rAAJLbrd003003@svn.freebsd.org> From: Benedict Reuschling Date: Sun, 10 Nov 2013 19:21:37 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-projects@freebsd.org Subject: svn commit: r43153 - projects/zfsupdate-201307/en_US.ISO8859-1/books/handbook/zfs X-SVN-Group: doc-projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-projects@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for doc projects trees List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Nov 2013 19:21:37 -0000 Author: bcr Date: Sun Nov 10 19:21:36 2013 New Revision: 43153 URL: http://svnweb.freebsd.org/changeset/doc/43153 Log: Update the example for custom (user-defined) properties: - provide a pool name as the example would not work with more than one pool - sprinkle 's over the strings the user can define - show how to remove these properties again Modified: projects/zfsupdate-201307/en_US.ISO8859-1/books/handbook/zfs/chapter.xml Modified: projects/zfsupdate-201307/en_US.ISO8859-1/books/handbook/zfs/chapter.xml ============================================================================== --- projects/zfsupdate-201307/en_US.ISO8859-1/books/handbook/zfs/chapter.xml Sun Nov 10 18:37:20 2013 (r43152) +++ projects/zfsupdate-201307/en_US.ISO8859-1/books/handbook/zfs/chapter.xml Sun Nov 10 19:21:36 2013 (r43153) @@ -884,10 +884,24 @@ Filesystem Size Used Avail Cap ones supplied as part of ZFS, a colon (:) is used to create a custom namespace for the property. - &prompt.root; zfs set custom:costcenter=1234 -&prompt.root; zfs get custom:costcenter + &prompt.root; zfs set custom:costcenter=1234 tank +&prompt.root; zfs get custom:costcenter tank NAME PROPERTY VALUE SOURCE tank custom:costcenter 1234 local + + To remove such a custom property again, use the + zfs inherit command with the + option. If the custom property is not + defined in any of the parent datasets, it will be removed + completely (although the changes are still recorded in the + pool's history). + + &prompt.root; zfs inherit -r custom:costcenter tank +&prompt.root; zfs get custom:costcenter tank +NAME PROPERTY VALUE SOURCE +tank custom:costcenter - - +&prompt.root; zfs get all tank | grep custom:costcenter +&prompt.root;