btrfs-progs: Check fstype in find_mount_root()
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Wed, 23 Jul 2014 05:47:35 +0000 (13:47 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 13:07:02 +0000 (15:07 +0200)
commitde22c28ef31d9721606ba05965a093a8044be0de
tree2c5e2c942d927463160bf8c2b46e1c76d548d7be
parent10c8f34f519451d763ae6b40bd388d11f4d3d42f
btrfs-progs: Check fstype in find_mount_root()

When calling find_mount_root(), caller in fact wants to find the mount
point of *BTRFS*.

So also check ent->fstype in find_mount_root() and do special error
string output in caller.

This will suppress a lot of "Inapproiate ioctl for device" error
message.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-receive.c
cmds-send.c
cmds-subvolume.c
utils.c