On Mon, Sep 26, 2016 at 12:54:26PM +0800, Qu Wenruo wrote: > btrfs_read_dev_super() only returns 0 or -1, which doesn't really help, > caller won't know if it's caused by bad superblock or superblock out of > range. > > Return -errno if pread64() return -1, and return -EOF if none or part of > the super is read out, and return what check_super() returned. > > So caller can get -EIO to catch real corrupted super blocks. > > Signed-off-by: Qu Wenruo <quwen...@cn.fujitsu.com>
Applied, thanks. -- 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