Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s3fs: make dir size not zero #2369

Merged
merged 1 commit into from
Nov 17, 2023
Merged

s3fs: make dir size not zero #2369

merged 1 commit into from
Nov 17, 2023

Conversation

eryugey
Copy link
Contributor

@eryugey eryugey commented Nov 17, 2023

Directory has size 0, which looks weired and may confuse users. So fake dir size as 4k.

@gaul
Copy link
Member

gaul commented Nov 17, 2023

Did you actually test this?

@eryugey
Copy link
Contributor Author

eryugey commented Nov 17, 2023

Did you actually test this?

Yes, I compiled s3fs and mount a bucket, dir size becomes 4096 instead of 0

original

drwxr-xr-x 1 root     root            0 Feb  9  2023 testdir

patched

drwxr-xr-x 1 root     root  4096 Feb  9  2023 testdir

@gaul
Copy link
Member

gaul commented Nov 17, 2023

So you ran make && make -C test/ check which succeeded? Because all of the CI runners are failing or timing out.

@eryugey
Copy link
Contributor Author

eryugey commented Nov 17, 2023

So you ran make && make -C test/ check which succeeded? Because all of the CI runners are failing or timing out.

Test fails because of "Error: Invalid or corrupt jarfile s3proxy-2.0.0", which doesn't seem related to my change.

Copy link
Member

@gaul gaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove s3proxy.jar to fix your corruption issue. You must have interrupted the download or something.

src/s3fs.cpp Outdated Show resolved Hide resolved
src/cache.cpp Show resolved Hide resolved
Directory has size 0, which looks weired and may confuse users. So fake
dir size as 4k.

Signed-off-by: Eryu Guan <eguan@linux.alibaba.com>
@gaul gaul merged commit bcacca6 into s3fs-fuse:master Nov 17, 2023
19 checks passed
@gaul
Copy link
Member

gaul commented Nov 17, 2023

Thank you for your contribution @eryugey!

@eryugey eryugey deleted the dev branch November 17, 2023 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants