westerndigitalcorporation / zenfs

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

zenfs list fails with the trailing slash in the --path #30

Closed inikep closed 3 years ago

inikep commented 3 years ago

Hi, zenfs list fails with the trailing slash in the --path:

yura@hirsute:~/wdc/scripts$ ./zenfs list --zbd=nullb0 --path=./.rocksdb
           0    Aug 09 2021 14:59:20            LOCK
        4096    Aug 09 2021 14:59:20            archive
        1522    Aug 09 2021 14:59:35            000061.sst
        1260    Aug 09 2021 14:59:36            000065.sst
         117    Aug 09 2021 14:59:37            000069.log
        1556    Aug 09 2021 14:59:37            000070.sst
          16    Aug 09 2021 14:59:33            CURRENT
          37    Aug 09 2021 14:59:20            IDENTITY
        1832    Aug 09 2021 14:59:37            MANIFEST-000048
        9786    Aug 09 2021 14:59:33            OPTIONS-000053
        9787    Aug 09 2021 14:59:33            OPTIONS-000055
yura@hirsute:~/wdc/scripts$ ./zenfs list --zbd=nullb0 --path=./.rocksdb/
           0    Aug 09 2021 14:59:20            LOCK
        4096    Aug 09 2021 14:59:20            archive
Failed to get size of file 000061.sst

The message Failed to get size of file 000061.sst is misleading and the issue should be fixed.

aravind-wdc commented 3 years ago

Thanks for reporting, I am looking into it.

aravind-wdc commented 3 years ago

This is fixed in https://github.com/westerndigitalcorporation/zenfs/pull/33. Closing this issue.