Size reported is wrong for symlinks
Opened this issue · 0 comments
nbdd0121 commented
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.