Re: [PATCH] xfstest/btrfs/001: fix the misuse of subvolume set-default

2013-09-23 Thread Liu Bo
On Mon, Sep 23, 2013 at 09:17:46AM -0400, Josef Bacik wrote: > On Mon, Sep 23, 2013 at 04:47:29PM +0800, Liu Bo wrote: > > The command is > > btrfs subvolume set-default . > > > > It uses @subvolid to control the default subvolume and > > @subvolid=0 has always been parsed into FS_TREE no matter

Re: [PATCH] xfstest/btrfs/001: fix the misuse of subvolume set-default

2013-09-23 Thread Josef Bacik
On Mon, Sep 23, 2013 at 04:47:29PM +0800, Liu Bo wrote: > The command is > btrfs subvolume set-default . > > It uses @subvolid to control the default subvolume and > @subvolid=0 has always been parsed into FS_TREE no matter > what subvolume @path points to. > > So in order to set a subvolume to

[PATCH] xfstest/btrfs/001: fix the misuse of subvolume set-default

2013-09-23 Thread Liu Bo
The command is btrfs subvolume set-default . It uses @subvolid to control the default subvolume and @subvolid=0 has always been parsed into FS_TREE no matter what subvolume @path points to. So in order to set a subvolume to the default one, we need to get the id of this subvolume first. Also fi