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

Size reported is wrong for symlinks #2273

Open
nbdd0121 opened this issue Aug 3, 2024 · 0 comments · May be fixed by #2285
Open

Size reported is wrong for symlinks #2273

nbdd0121 opened this issue Aug 3, 2024 · 0 comments · May be fixed by #2285
Labels
p2 P2 question Customer Issue: question about how to use tool

Comments

@nbdd0121
Copy link

nbdd0121 commented Aug 3, 2024

Describe the issue

Man page of stat states:

The st_size field gives the size of the file (if it is a regular file or a symbolic link) in bytes. The size of a symbolic link is the length of the pathname it contains, without a terminating null byte.

But gcsfuse reports symlink as having size 0.

Reproduction

Mount gcsfuse, create a symlink within. Then call stat symlink, it reports size of 0.

System (please complete the following information):

  • OS: NixOS 24.05
  • Platform: Bare-metal
  • Version: master branch

Additional context
Add any other context about the problem here.

SLO:
We strive to respond to all bug reports within 24 business hours.

@nbdd0121 nbdd0121 added p1 P1 question Customer Issue: question about how to use tool labels Aug 3, 2024
@nbdd0121 nbdd0121 linked a pull request Aug 5, 2024 that will close this issue
@raj-prince raj-prince added p2 P2 and removed p1 P1 labels Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 P2 question Customer Issue: question about how to use tool
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants