mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #2392] access directory in a mounted bucket #1174
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lucdurb on GitHub (Dec 15, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2392
Version of s3fs being used (
s3fs --version)s3fs is already the newest version (1.86-1)
Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)Version: 2.9.9-3
Kernel information (
uname -r)5.15.0-87-generic
GNU/Linux Distribution, if applicable (
cat /etc/os-release)Ubuntu 20.04.6 LTS
How to run s3fs, if applicable
/etc/fstab
s3fs#bucket01 /localsystem/bucket01 fuse _netdev,ssl_verify_hostname=0,no_check_certificate,allow_other,use_cache=/tmp,passwd_file=/etc/credential/passwd_bucket01,url=https://mysubdomain.mydomain.com/ 0 0
s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)no error for this issue
Details about issue
I use s3fs to mount a bucket created on a on premises s3 storage compatible system (DataCore Swarm)
I have create a bucket with file and directory from GUI s3 storage system.
I can mount the bucket in /localsystem/bucket01, i can write a file, i can create a directory, i can delete an object.
If i create a directory from s3fs i have
drwxr-xr-x testfolder
i can access in this folder and i can create or delet e object.
If i create a folder from G
UI s3 storage system i have
-rwxr-x--- testfolder2
and in this case, from s3fs, i can't access to the folder because for linux server is a file.
If i try to access with GUI s3 storsge system in testfolder or testfolder2, i can access, put and get object in this 2 folders.
From GUI i find:
testfolder2 application/x-directory (created from s3fs)
testfolder application/directory (created from gui)
Is there any parameters to use for this issue?
Is possible set s3sf to create directory with application/directory as type instead of application/x-directory?
@hanqingwu commented on GitHub (Dec 29, 2023):
i lookinto to src , so i get s3fs-fuse/src/metaheader.cpp

maybe you can try to modify this , add application/directory
@ggtakec commented on GitHub (Feb 12, 2024):
@lucdurb
For example, when s3fs creates a
dirdirectory(folder), it creates an object calleddir/.When you create a
dir/fileobject using the SDK(such as aws cli), objects calleddirordir/are not created.This difference was causing problems like this issue.
Your version of s3fs is old and is highly affected by this issue. (If the s3fs you are using has an option such as
compat_dir, you can try it. You can check it withs3fs -hetc.)If possible, please use the latest s3fs.
Thanks in advance for your assistance.