Re: [PATCH] btrfs-progs: btrfs.8.in: Add info about reverting back to root subvolume.

2013-09-13 Thread David Sterba
On Fri, Sep 13, 2013 at 11:02:10AM +0530, chandan wrote: On Thursday, September 12, 2013 03:29:52 PM David Sterba wrote: The number 5 is an implementation detail, we should recommend to use 0. In the current btrfs kernel code if 0 is passed as the subvolume id, the

Re: [PATCH] btrfs-progs: btrfs.8.in: Add info about reverting back to root subvolume.

2013-09-12 Thread David Sterba
On Wed, Sep 11, 2013 at 02:34:05PM +0530, chandan wrote: --- 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 \fIpath\fR which is mounted as \fIdefault\fR.

Re: [PATCH] btrfs-progs: btrfs.8.in: Add info about reverting back to root subvolume.

2013-09-12 Thread chandan
On Thursday, September 12, 2013 03:29:52 PM David Sterba wrote: The number 5 is an implementation detail, we should recommend to use 0. In the current btrfs kernel code if 0 is passed as the subvolume id, the btrfs_ioctl_default_subvol() function sets the subvolume id to the objectid of the

[PATCH] btrfs-progs: btrfs.8.in: Add info about reverting back to root subvolume.

2013-09-11 Thread chandan
'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 chan...@linux.vnet.ibm.com --- man/btrfs.8.in |