All of lore.kernel.org
 help / color / mirror / Atom feed
From: chandan <chandan@linux.vnet.ibm.com>
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	[thread overview]
Message-ID: <2061327.l3bBKU3J9X@localhost.localdomain> (raw)

'btrfs subvolume list <path>' 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 <chandan@linux.vnet.ibm.com>
---
 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 <id> <path>\fR
 Set the subvolume of the filesystem \fI<path>\fR which is mounted as
 \fIdefault\fR. The subvolume is identified by \fI<id>\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<id>\fR value of 5.
 .TP
 
 \fBsubvolume find-new\fR\fI <subvolume> <last_gen>\fR
-- 
1.8.3.1



             reply	other threads:[~2013-09-11  9:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-11  9:04 chandan [this message]
2013-09-12 13:29 ` [PATCH] btrfs-progs: btrfs.8.in: Add info about reverting back to root subvolume David Sterba
2013-09-13  5:32   ` chandan
2013-09-13 12:58     ` David Sterba

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2061327.l3bBKU3J9X@localhost.localdomain \
    --to=chandan@linux.vnet.ibm.com \
    --cc=chandra.seetharaman@us.ibm.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.