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

Copy POSIX attributes from bucket #1277

Open
tarun360 opened this issue Aug 14, 2023 · 4 comments
Open

Copy POSIX attributes from bucket #1277

tarun360 opened this issue Aug 14, 2023 · 4 comments
Labels
Eng-Backlog feature request Feature request: request to add new features or functionality p1 P1 question Customer Issue: question about how to use tool

Comments

@tarun360
Copy link

Describe the issue
In the GCSFUSE documentation it's mentioned that GCSFUSE doesn't transfer POSIX attributes when uploading files to buckets (link). However, nothing is mentioned regarding if POSIX attributes would be copied if they are available as metadata in the objects. On manual testing, I noticed that POSIX attributes are not copied.

I suppose, if POSX attributes are available as meta-data in the objects, then that should be copied as well? This could be very useful especially for things like file mode, uid, gid.

In case of gsutil cp, the -P flag allows POSIX attributes to be both uploaded as metadata, and then during download these POSIX attributes are set for the files.
image

Is there any particular reason against copying of POSIX attributes?

Steps to reproduce the behavior

  1. Create a file with file mode other than 0644 (default file mode set by GCSFUSE)
  2. Copy it to a bucket using gsutil cp -P
  3. Mount the bucket using GCSFUSE. Check the file mode of the file, it will be 0644.
@tarun360 tarun360 added p1 P1 question Customer Issue: question about how to use tool labels Aug 14, 2023
@Tulsishah
Copy link
Collaborator

HI @tarun360 ,

Thanks for reaching out to us. Currently, this feature is not available in GCSFuse. We will look into it. Moreover, is there any specific attribute you are looking for?

Thanks,
Tulsi Shah

@tarun360
Copy link
Author

Thanks for the quick response.

Moreover, is there any specific attribute you are looking for?

I was looking for UID, GID and file mode attributes.

@Tulsishah Tulsishah added the feature request Feature request: request to add new features or functionality label Aug 18, 2023
@andrewsingley-glv
Copy link

This feature is really important for my purposes, as well. 🙏

@bjornleffler
Copy link
Member

While we're at it, any file attributes from the Storage Transfer Service should also work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Eng-Backlog feature request Feature request: request to add new features or functionality p1 P1 question Customer Issue: question about how to use tool
Projects
None yet
Development

No branches or pull requests

5 participants