westerndigitalcorporation / zenfs

ZenFS is a storage backend for RocksDB that enables support for ZNS SSDs and SMR HDDs.
GNU General Public License v2.0
243 stars 88 forks source link

fs: Fix extent blocks compute error for sparse recovery #182

Closed yhr closed 2 years ago

yhr commented 2 years ago

Ex: extent_length is 4094, sparse head+data+pad, it needs 2 blocks, not 1

Signed-off-by: hml1006 hml1006@qq.com Signed-off-by: Hans Holmberg hans.holmberg@wdc.com (fixed up commit message)