mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #2393] Readdir result misses certain dir in 1.92 version #1176
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#1176
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 @hbao0915 on GitHub (Dec 25, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2393
Additional Information
Version of s3fs being used (
s3fs --version)V1.92 (commit:unknown) with OpenSSL
Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)2.9.9
Kernel information (
uname -r)5.4.0-153-generic
GNU/Linux Distribution, if applicable (
cat /etc/os-release)NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
How to run s3fs, if applicable
/root/s3fs-fuse-1.92/src/s3fs test-list /mnt/test -o passwd_file=/root/aksk -o url=https://obs.cn-south-1.myhuaweicloud.com -o compat_dir
s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)Details about issue
mkdir /mnt/test/b(/mnt/test is the MOUNTPOINT)touch /mnt/test/b/fileThen use SDK to create a object named
/ab/cd.(There should be 3 objects in the backend storage server,
/b,/b/fileand/ab/cd.)At last, readdir to the mountpoint root directory, the result expects to be
bandab, BUT it only showsb.@hbao0915 commented on GitHub (Dec 25, 2023):
I did some more testing, and found that if I remove
/b/file, the readdir result becomes correct.@ggtakec commented on GitHub (Feb 12, 2024):
@hbao0915
Around v1.91, the handling of objects created from SDKs other than s3fs is slightly different.(These are related to the
compat_diroption, etc.)s3fs performs processing to detect objects (including directory paths) created with SDK(aws CLI), etc.
If possible, try using the code from the master branch or restarting it with the compat_dir option.
With the current master code, this issue seems to have been resolved.
@hbao0915 commented on GitHub (Jul 7, 2024):
1.93 version seems fine according to my test scenario, thx