Re: [PATCH] btrfs: round down size diff when shrinking/growing device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 21, 2017 at 11:28:24AM +0300, Nikolay Borisov wrote:
> Further testing showed that the fix introduced in 7dfb8be11b5d
> ("btrfs: Round down values which are written for total_bytes_size") was
> insufficient and it could still lead to discrepancies between the total_bytes in
> the super block and the device total bytes. So this patch also ensures that
> the difference between old/new sizes when shrinking/growing is also
> rounded down. This ensure that we won't be substracting/adding a non-sectorsize
> multiples to the superblock/device total sizees.
> 
> Fixes: 7dfb8be11b5d ("btrfs: Round down values which are written for total_bytes_size")
> Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx>

Reviewed-by: David Sterba <dsterba@xxxxxxxx>
--
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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux