On Thu, Apr 02, 2015 at 10:21:35AM +0800, Qu Wenruo wrote: > Before this patch, ext*_image is always set NODATACSUM inode flag. > However btrfs-convert will set normal file with DATACUSM flag by > default, and generate checksum for regular file extent. > > Now, a regular file extent is shared by a btrfs file inode with DATACSUM > and ext*_image with NODATACSUM, and it has checksum in csum tree. > This will cause btrfsck complain about odd checksum, since ext*_image is > set NODATACSUM but has checksum generated from regular file extent. > > This patch makes convert completely obey datacsum setting, meaning > btrfs-convert will generate csum for every file extent by default. > > Reported-by: Tsutomu Itoh <t-itoh@xxxxxxxxxxxxxx> > Signed-off-by: Qu Wenruo <quwenruo@xxxxxxxxxxxxxx> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
