xfstests: fix set-default test in btrfs/001
authorJosef Bacik <jbacik@fusionio.com>
Wed, 18 Sep 2013 20:48:27 +0000 (20:48 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 16 Oct 2013 19:57:28 +0000 (14:57 -0500)
commitd4bc9576f09992dfc76eb34bb1aca3e80eaee1e7
tree880c435d534f637c8f482d068bf403b8f210cd69
parent969ed71b7073975ce4113e0f75d42e67c88cfcf9
xfstests: fix set-default test in btrfs/001

We were actually testing this improperly, there was a bug in the set default
code so we weren't actually honoring the 0 subvolid properly.  To fix this we
need to get the subvolid for the subvol we want to set as the default and use
that in the command.  With this patch we now pass again with the fix for the 0
subvolid.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Tested-by: David Sterba <dsterba@suse.cz>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
tests/btrfs/001