From patchwork Thu Dec 4 18:24:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goffredo Baroncelli X-Patchwork-Id: 5439701 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AA78EBEEA8 for ; Thu, 4 Dec 2014 18:24:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E361A20272 for ; Thu, 4 Dec 2014 18:24:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1542E20253 for ; Thu, 4 Dec 2014 18:24:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932768AbaLDSYp (ORCPT ); Thu, 4 Dec 2014 13:24:45 -0500 Received: from mail-wg0-f47.google.com ([74.125.82.47]:45001 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932640AbaLDSYo (ORCPT ); Thu, 4 Dec 2014 13:24:44 -0500 Received: by mail-wg0-f47.google.com with SMTP id n12so23573932wgh.34 for ; Thu, 04 Dec 2014 10:24:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=U9VcZAHP5opg63aV+AH0jiYLK8dJk3tfxq69N7zMdSE=; b=P+HY1WtLA3iKp3MZdCwkfVFbdmofFucywLB39to3gX4IMuPtrSdvBSL24cKFSrab0H 0kmyn0hM2YImbcoNVqYxg+Er6jkWKjsIB1VOty8U0jnLiVYsaQpG40Au/rFwsY/bZyAI WC1BuiZnOXnPIhLPgGaVasnpMVUpIjfg9B+E5FVNbNRcr3dmzbscsuf0NeQ/Zz1jgX99 E5zVDwRq1netRlPAaDe+Id1e5gzzivS5iBx1AkbneTNRne43N1DlcBoiL/iqcNmI+bNw 54POFVb96ADDAeTPLC6xfjoNJWoxi9iwJfl80HuCFcNdLZXifB7P5T46mOM+0VY6O1Bx 6AJg== X-Received: by 10.180.21.140 with SMTP id v12mr112454378wie.44.1417717483404; Thu, 04 Dec 2014 10:24:43 -0800 (PST) Received: from venice.bhome (ppp-252-95.24-151.libero.it. [151.24.95.252]) by mx.google.com with ESMTPSA id wa5sm15767794wjc.8.2014.12.04.10.24.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Dec 2014 10:24:43 -0800 (PST) From: Goffredo Baroncelli X-Google-Original-From: Goffredo Baroncelli To: linux-btrfs@vger.kernel.org Cc: Goffredo Baroncelli Subject: [PATCH 3/5] Update 'btrfs device scan' man page. Date: Thu, 4 Dec 2014 19:24:28 +0100 Message-Id: <1417717470-6298-4-git-send-email-kreijack@inwind.it> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1417717470-6298-1-git-send-email-kreijack@inwind.it> References: <1417717470-6298-1-git-send-email-kreijack@inwind.it> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch documents the '-s' switch and the environment variable BTRFS_SKIP_LVM_SNAPSHOT. Signed-off-by: Goffredo Baroncelli --- Documentation/btrfs-device.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/btrfs-device.txt b/Documentation/btrfs-device.txt index 46c54b9..ce5d69d 100644 --- a/Documentation/btrfs-device.txt +++ b/Documentation/btrfs-device.txt @@ -77,7 +77,7 @@ force overwrite of existing filesystem on the given disk(s) *delete* [...] :: Remove device(s) from a filesystem identified by . -*scan* [(--all-devices|-d)| [...]]:: +*scan* [-s][(--all-devices|-d)| [...]]:: Scan devices for a btrfs filesystem. + If one or more devices are passed, these are scanned for a btrfs filesystem. @@ -85,6 +85,9 @@ If no devices are passed, btrfs uses block devices containing btrfs filesystem as listed by blkid. Finally, if '--all-devices' or '-d' is passed, all the devices under /dev are scanned. +By default, the lvm snapshots are skipped. If '-s' is passed, these aren't +skipped anymore. See also BTRFS_SKIP_LVM_SNAPSHOT environmental variable +in the main btrfs man page. *ready* :: Check device to see if it has all of it's devices in cache for mounting. @@ -114,3 +117,4 @@ SEE ALSO `mkfs.btrfs`(8), `btrfs-replace`(8), `btrfs-balance`(8) +`btrfs` (8)