]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
254: fix to pass subvolid=0 to set default btrfs subvolme
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 18 Nov 2011 03:26:18 +0000 (11:26 +0800)
committerChristoph Hellwig <hch@lst.de>
Sun, 20 Nov 2011 19:44:31 +0000 (19:44 +0000)
commit9a02d1a1b4bda96e60013968d0596535010e8a0d
tree75a9653f95b0ca5212d7460fb7a54ce06a23a43b
parentec12fcb0c27d35034daf5f3968a9d9304c3615a6
254: fix to pass subvolid=0 to set default btrfs subvolme

The usage is 'btrfs subvolume set-default <id> <path>', not
'<path> <path>'.

The code happens to work because strotoull(path) returns 0, but it
will fail if in the future we check the argument more strict in
btrfs-progs.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
254