On Thu, Jul 10, 2014 at 11:05:10AM +0800, Qu Wenruo wrote: > 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 output proper error > messages if needed.
The utils.c functions should be mostly silent about the errors as this this the common code and it's up to the callers to print the messages. The existing printf in find_mount_root had appeared before the function was moved to utils.c. > This will suppress a lot of "Inapproiate ioctl for device" error > message. Catching the error early is a good thing of course. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html