btrfs: Check return value of "btrfs filesystem show" command
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Mon, 4 May 2015 12:56:11 +0000 (22:56 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 4 May 2015 12:56:11 +0000 (22:56 +1000)
commit842c5a594148dab1db9f6573090efc151aab87bf
treeb83d5dec21bb61249ad8bdf106ffc68ed396b228
parent6139f10fa99bdf81f2e1c314f3e90382d38eb8ad
btrfs: Check return value of "btrfs filesystem show" command

The return value should always be 0 if no problem happens, but
"btrfs filesystem show" executed on umounted device will always return 1
even there is no problem.

This testcase just checks it.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/090 [new file with mode: 0755]
tests/btrfs/090.out [new file with mode: 0644]
tests/btrfs/group