[GH-ISSUE #1161] 'use_cache' cannot be used with relative path #607

Closed
opened 2026-03-04 01:47:09 +03:00 by kerem · 0 comments
Owner

Originally created by @ghost on GitHub (Sep 30, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1161

Version of s3fs being used (s3fs --version)

1.80

Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)

2.9.8

Kernel information (uname -r)

4.14.138-gentoo

GNU/Linux Distribution, if applicable (cat /etc/os-release)

NAME=Gentoo
ID=gentoo
PRETTY_NAME="Gentoo/Linux"
ANSI_COLOR="1;32"
HOME_URL="https://www.gentoo.org/"
SUPPORT_URL="https://www.gentoo.org/support/"
BUG_REPORT_URL="https://bugs.gentoo.org/"

s3fs command line used, if applicable

s3fs foo .s3fs -o ro,url=https://s3.us-west-1.wasabisys.com,allow_other,umask=022,use_cache=.s3fs-cache,del_cache

s3fs messages (foreground)

# s3fs foo .s3fs -f -o ro,url=https://s3.us-west-1.wasabisys.com,allow_other,umask=022,dbglevel=err,use_cache=.s3fs-cache,del_cache
[CRT] s3fs.cpp:set_s3fs_log_level(253): change debug level from [CRT] to [ERR] 
[CRT] s3fs.cpp:s3fs_init(3334): init v1.80(commit:unknown) with OpenSSL
[ERR] s3fs_util.cpp:delete_files_in_dir(636): could not open dir(.s3fs-cache/.foo.stat) - errno(2)
[ERR] fdcache.cpp:Open(194): failed to open cache stat file path(/test_file) - errno(2)
[ERR] fdcache.cpp:Open(194): failed to open cache stat file path(/test_file) - errno(2)
[ERR] fdcache.cpp:Open(794): failed to open file(.s3fs-cache/foo/test_file). errno(2)
[ERR] fdcache.cpp:Open(194): failed to open cache stat file path(/test_file) - errno(2)
[ERR] fdcache.cpp:Open(194): failed to open cache stat file path(/test_file) - errno(2)
[ERR] fdcache.cpp:Open(794): failed to open file(.s3fs-cache/foo/test_file). errno(2)
[ERR] s3fs.cpp:s3fs_release(2213): could not find fd(file=/test_file)

Details about issue

The reason is that the s3fs_util.cpp:mkdirp() function adds a slash at the beginning of the path.

Originally created by @ghost on GitHub (Sep 30, 2019). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1161 #### Version of s3fs being used (s3fs --version) 1.80 #### Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse) 2.9.8 #### Kernel information (uname -r) 4.14.138-gentoo #### GNU/Linux Distribution, if applicable (cat /etc/os-release) NAME=Gentoo ID=gentoo PRETTY_NAME="Gentoo/Linux" ANSI_COLOR="1;32" HOME_URL="https://www.gentoo.org/" SUPPORT_URL="https://www.gentoo.org/support/" BUG_REPORT_URL="https://bugs.gentoo.org/" #### s3fs command line used, if applicable ``` s3fs foo .s3fs -o ro,url=https://s3.us-west-1.wasabisys.com,allow_other,umask=022,use_cache=.s3fs-cache,del_cache ``` #### s3fs messages (foreground) ``` # s3fs foo .s3fs -f -o ro,url=https://s3.us-west-1.wasabisys.com,allow_other,umask=022,dbglevel=err,use_cache=.s3fs-cache,del_cache [CRT] s3fs.cpp:set_s3fs_log_level(253): change debug level from [CRT] to [ERR] [CRT] s3fs.cpp:s3fs_init(3334): init v1.80(commit:unknown) with OpenSSL [ERR] s3fs_util.cpp:delete_files_in_dir(636): could not open dir(.s3fs-cache/.foo.stat) - errno(2) [ERR] fdcache.cpp:Open(194): failed to open cache stat file path(/test_file) - errno(2) [ERR] fdcache.cpp:Open(194): failed to open cache stat file path(/test_file) - errno(2) [ERR] fdcache.cpp:Open(794): failed to open file(.s3fs-cache/foo/test_file). errno(2) [ERR] fdcache.cpp:Open(194): failed to open cache stat file path(/test_file) - errno(2) [ERR] fdcache.cpp:Open(194): failed to open cache stat file path(/test_file) - errno(2) [ERR] fdcache.cpp:Open(794): failed to open file(.s3fs-cache/foo/test_file). errno(2) [ERR] s3fs.cpp:s3fs_release(2213): could not find fd(file=/test_file) ``` ### Details about issue The reason is that the s3fs_util.cpp:mkdirp() function adds a slash at the beginning of the path.
kerem 2026-03-04 01:47:09 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#607
No description provided.