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: add directory separator for ToAuxPath to avoid some error #214

Closed dongbula closed 2 years ago

dongbula commented 2 years ago

if aux path is not end with "/", some error may happen, this pr can fix it

MaisenbacherD commented 2 years ago

Hi @dongbula, Can you provide an example with the error message that you are fixing with this commit?

Are you using c++17 (and thus the std::filesystem::path)? Or are you using c++11 which utilises filesystem_utility.h?

If you are using c++11 this PR might fix your issue: https://github.com/westerndigitalcorporation/zenfs/pull/209