From patchwork Mon Jun 17 21:45:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guangyu Sun X-Patchwork-Id: 2737731 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 65A0EC0AB1 for ; Mon, 17 Jun 2013 21:45:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9DC57204F6 for ; Mon, 17 Jun 2013 21:45:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E00DE204E7 for ; Mon, 17 Jun 2013 21:45:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752163Ab3FQVpU (ORCPT ); Mon, 17 Jun 2013 17:45:20 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:40152 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752051Ab3FQVpE (ORCPT ); Mon, 17 Jun 2013 17:45:04 -0400 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r5HLj3Ss027245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Jun 2013 21:45:04 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5HLj2Qu005525 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 17 Jun 2013 21:45:02 GMT Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60]) by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r5HLj2So005501 for ; Mon, 17 Jun 2013 21:45:02 GMT Received: from guasun.us.oracle.com (/130.35.70.173) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 Jun 2013 14:45:01 -0700 From: Guangyu Sun To: linux-btrfs@vger.kernel.org Cc: Guangyu Sun Subject: [PATCH] btrfs-progs: update man page for btrfs filesystem label Date: Mon, 17 Jun 2013 14:45:23 -0700 Message-Id: <1371505523-28674-1-git-send-email-guangyu.sun@oracle.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 btrfs filesystem label can work on a mounted filesystem, also on a multi-devices filesystem. And the restriction of label name is changed, too. The man page should be updated accordingly. Signed-off-by: Guangyu Sun --- man/btrfs.8.in | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index af7df4d..1da4ff1 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -263,22 +263,13 @@ it with the new desired size. When recreating the partition make sure to use the same starting disk cylinder as before. .TP -\fBfilesystem label\fP\fI [newlabel]\fP -Show or update the label of a filesystem. \fI\fR is used to identify the -filesystem. +\fBfilesystem label\fP\fI [|] [newlabel]\fP +Show or update the label of a filesystem. \fI[|]\fR is used +to identify the filesystem. If a \fInewlabel\fR optional argument is passed, the label is changed. The following constraints exist for a label: .IP -- the maximum allowable length shall be less or equal than 256 chars -.IP -- the label shall not contain the '/' or '\\' characters. - -NOTE: Currently there are the following limitations: -.IP -- the filesystem has to be unmounted -.IP -- the filesystem should not have more than one device. -.TP +- the maximum allowable length shall be less than 256 chars \fBfilesystem show\fR [--all-devices||