From patchwork Wed Sep 11 09:04:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chandan Rajendra X-Patchwork-Id: 2871561 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 F3F75BF43F for ; Wed, 11 Sep 2013 09:04:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CAE91202EC for ; Wed, 11 Sep 2013 09:04:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A16F0202C6 for ; Wed, 11 Sep 2013 09:04:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752606Ab3IKJEO (ORCPT ); Wed, 11 Sep 2013 05:04:14 -0400 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:54345 "EHLO e28smtp08.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752254Ab3IKJEN (ORCPT ); Wed, 11 Sep 2013 05:04:13 -0400 Received: from /spool/local by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 11 Sep 2013 14:22:15 +0530 Received: from d28dlp02.in.ibm.com (9.184.220.127) by e28smtp08.in.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 11 Sep 2013 14:22:12 +0530 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by d28dlp02.in.ibm.com (Postfix) with ESMTP id BC9BB3940057 for ; Wed, 11 Sep 2013 14:33:54 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay04.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r8B9449G45023318 for ; Wed, 11 Sep 2013 14:34:04 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r8B946E2029565 for ; Wed, 11 Sep 2013 14:34:06 +0530 Received: from localhost.localdomain ([9.124.35.249]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id r8B94673029558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Sep 2013 14:34:06 +0530 From: chandan To: linux-btrfs@vger.kernel.org, chandra.seetharaman@us.ibm.com Subject: [PATCH] btrfs-progs: btrfs.8.in: Add info about reverting back to root subvolume. Date: Wed, 11 Sep 2013 14:34:05 +0530 Message-ID: <2061327.l3bBKU3J9X@localhost.localdomain> User-Agent: KMail/4.10.5 (Linux/3.10.10-200.fc19.x86_64; KDE/4.10.5; x86_64; ; ) MIME-Version: 1.0 X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13091108-2000-0000-0000-00000DAD3260 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.7 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 subvolume list ' does not list the root subvolume's ID. Hence there is no way for the user to set the root subvolume as the default subvolume unless he knows about the magic number 5 (i.e. BTRFS_FS_TREE_OBJECTID). Signed-off-by: chandan --- man/btrfs.8.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man/btrfs.8.in b/man/btrfs.8.in index 61ffe8d..36846b6 100644 --- a/man/btrfs.8.in +++ b/man/btrfs.8.in @@ -244,7 +244,8 @@ is similar to \fBsubvolume list\fR command. \fBsubvolume set-default\fR\fI \fR Set the subvolume of the filesystem \fI\fR which is mounted as \fIdefault\fR. The subvolume is identified by \fI\fR, which -is returned by the \fBsubvolume list\fR command. +is returned by the \fBsubvolume list\fR command. The default subvolume +can be set to the root subvolume by passing an \fI\fR value of 5. .TP \fBsubvolume find-new\fR\fI \fR