btrfs-progs: fi show: print error message if no valid Btrfs is specified
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Fri, 24 Jun 2016 08:24:47 +0000 (17:24 +0900)
committerDavid Sterba <dsterba@suse.com>
Fri, 24 Jun 2016 12:05:43 +0000 (14:05 +0200)
commit034643237a9260f12e532bf0459f66234e1f8408
tree76d334cc6a18e12a372fafcaca98bb95e43c50c3
parentcd9b35c37ae03d8ea7cc35c4ffe501925e75e629
btrfs-progs: fi show: print error message if no valid Btrfs is specified

* Before this patch

 ===============================
 # ./btrfs fi show foo      # "foo" doesn't mean any valid Btrfs
 #                          # no error message
 # echo $?
 1
 ===============================

* After this patch

 ===============================
 # ./btrfs fi show foo
 ERROR: foo is not a valid Btrfs
 #
 # echo $?
 1
 ===============================

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-filesystem.c