Skip to content

Size reported is wrong for symlinks #2273

@nbdd0121

Description

@nbdd0121

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2P2questionCustomer Issue: question about how to use tool

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions