westerndigitalcorporation / zenfs

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

fs: dont do memcopy with overlapping memory ranges #198

Closed yhr closed 2 years ago

yhr commented 2 years ago

When preparing buffered writes for the next io, we copy data within the buffer and that may lead to overlapping memory ranges that is dissallowed by memcopy. Use memmove instead to fix this.

Signed-off-by: Hans Holmberg hans.holmberg@wdc.com