Re: [PATCH v2] generic/692: generalize the test for non-4K Merkle tree block sizes

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

On Wed, Jan 11, 2023 at 12:47:39PM -0800, Eric Biggers wrote:
> +hash_size=32   # SHA-256
> +hash_per_block=$(echo "scale=30; $bs/($hash_size)" | $BC -q)
> +
> +# Compute the proportion of the original file size that the non-leaf levels of
> +# the Merkle tree take up.  Ignoring padding, this is 1/${hashes_per_block}^2 +
> +# 1/${hashes_per_block}^3 + 1/${hashes_per_block}^4 + ...  Compute it using the

Sorry, just saw a couple minor things to fix.  v3 incoming...

- Eric

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

  Powered by Linux