From owner-svn-src-all@freebsd.org Fri May 26 11:59:21 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2C7BD83223; Fri, 26 May 2017 11:59:21 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7C4711239; Fri, 26 May 2017 11:59:21 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4QBxKMQ089353; Fri, 26 May 2017 11:59:20 GMT (envelope-from avg@FreeBSD.org) Received: (from avg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4QBxKRO089352; Fri, 26 May 2017 11:59:20 GMT (envelope-from avg@FreeBSD.org) Message-Id: <201705261159.v4QBxKRO089352@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: avg set sender to avg@FreeBSD.org using -f From: Andriy Gapon Date: Fri, 26 May 2017 11:59:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org Subject: svn commit: r318939 - vendor/illumos/dist/man/man1m X-SVN-Group: vendor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2017 11:59:21 -0000 Author: avg Date: Fri May 26 11:59:20 2017 New Revision: 318939 URL: https://svnweb.freebsd.org/changeset/base/318939 Log: 6418 zpool should have a label clearing command illumos/illumos-gate@6401734d545a04c18f68b448202f9d9a77216bb9 https://github.com/illumos/illumos-gate/commit/6401734d545a04c18f68b448202f9d9a77216bb9 https://www.illumos.org/issues/6418 An easy, direct means of sanitizing pool vdevs can be helpful for management purposes. FreeBSD has had a 'zpool labelclear' for some time, see: https:// svnweb.freebsd.org/base?view=revision&revision=224171 SpectraBSD has a slightly updated version, which I propose for inclusion. Reviewed by: Yuri Pankov Reviewed by: Matthew Ahrens Reviewed by: George Wilson Approved by: Robert Mustacchi Author: Will Andrews Note: the bulk of the change has been already imported, this is a follow up that imports zpool.1m changes. Modified: vendor/illumos/dist/man/man1m/zpool.1m Modified: vendor/illumos/dist/man/man1m/zpool.1m ============================================================================== --- vendor/illumos/dist/man/man1m/zpool.1m Fri May 26 11:56:28 2017 (r318938) +++ vendor/illumos/dist/man/man1m/zpool.1m Fri May 26 11:59:20 2017 (r318939) @@ -23,7 +23,7 @@ .\" Copyright (c) 2013 by Delphix. All rights reserved. .\" Copyright 2016 Nexenta Systems, Inc. .\" -.Dd March 25, 2016 +.Dd March 30, 2016 .Dt ZPOOL 1M .Os .Sh NAME @@ -103,6 +103,10 @@ .Oo Ar pool Oc Ns ... .Op Ar interval Op Ar count .Nm +.Cm labelclear +.Op Fl f +.Ar device +.Nm .Cm list .Op Fl Hpv .Op Fl o Ar property Ns Oo , Ns Ar property Oc Ns ... @@ -1154,6 +1158,21 @@ pool, in addition to the pool-wide stati .El .It Xo .Nm +.Cm labelclear +.Op Fl f +.Ar device +.Xc +Removes ZFS label information from the specified +.Ar device . +The +.Ar device +must not be part of an active pool configuration. +.Bl -tag -width Ds +.It Fl f +Treat exported or foreign devices as inactive. +.El +.It Xo +.Nm .Cm list .Op Fl Hpv .Op Fl o Ar property Ns Oo , Ns Ar property Oc Ns ...