Skip to content

s3: support AWS metadata header for symlinks - #130

Open
mkviatkovskii wants to merge 8 commits into
XTXMarkets:mainfrom
mkviatkovskii:main
Open

mkviatkovskii wants to merge 8 commits into
XTXMarkets:mainfrom
mkviatkovskii:main

Conversation

@mkviatkovskii

@mkviatkovskii mkviatkovskii commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

Goal

Store symlinks written through the S3 gateway as TernFS symlinks. Without this, each symlink becomes a regular file that holds the target path as data. Use AWS POSIX metadata schema.

Changes

  • PUT: read the type from x-amz-meta-file-permissions. If the type bits are S_IFLNK, create a msgs.SYMLINK inode with the target as its body. Permission bits are not stored; directories still come from a trailing / or the directory Content-Type.
  • GET/HEAD: emit header. TernFS has no per-inode permissions, so the values are fixed: files 0644, directories 0755, symlinks 0777.
  • CI: skip stop-runner when no runner was started. Before, it ran on every PR and failed on fork PRs, which get no AWS secrets.

Testing

Unit tests in go/s3/s3_test.go.

@mkviatkovskii mkviatkovskii changed the title s3: support x-amz-meta-mode for symlinks (s3fs-fuse interop) s3: support x-amz-meta-mode for symlinks Nov 6, 2026
@mkviatkovskii mkviatkovskii changed the title s3: support x-amz-meta-mode for symlinks s3: support AWS and s3fs headers for symlinks Nov 6, 2026
@mkviatkovskii mkviatkovskii changed the title s3: support AWS and s3fs headers for symlinks s3: support AWS and s3fs metadata headers for symlinks Nov 6, 2026
@mkviatkovskii mkviatkovskii changed the title s3: support AWS and s3fs metadata headers for symlinks s3: support AWS metadata header for symlinks Nov 6, 2026
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.

1 participant