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

Support Btime (birth time, creation time) on macOS #218

Open
alexanderharm opened this issue May 9, 2018 · 3 comments
Open

Support Btime (birth time, creation time) on macOS #218

alexanderharm opened this issue May 9, 2018 · 3 comments
Labels
Feature request for a feature

Comments

@alexanderharm
Copy link

While FUSE does not seem to natively support Btime, osxfuse does. On Darwin currently all files/dirs on a FUSE file system show as "Created on" 1970-01-01. According to the author of osxfuse the fix could be rather simple:

FUSE for macOS sends FUSE_GETXTIMES messages to your user space file system daemon. You need to reply with the creation time.

If someone points me into the right direction I can try and make a PR.

See also:
osxfuse/osxfuse#501
rfjakob/gocryptfs#229

@hanwen
Copy link
Owner

hanwen commented May 9, 2018

have a look at opcode.go, https://github.com/hanwen/go-fuse/blob/02b38384c28d568e5f9da00924007fd101d56099/fuse/opcode.go

You should define the right opcode, and set up handlers for it. Then you wire this through RawFileSystem (see https://github.com/hanwen/go-fuse/blob/02b38384c28d568e5f9da00924007fd101d56099/fuse/api.go) and from there to nodefs.FileSystem and pathfs.FileSystem.

@alexanderharm
Copy link
Author

Thanks for your reply. I tried for a couple of hours but this is beyond my skillset. I don't have the feeling I know what I'm doing which in this case I fear would be of advantage.

@warmup72
Copy link

warmup72 commented Oct 9, 2021

Is there any news on the topic. Unfortunately, I don't have the know-how, but I would be totally grateful if that could be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request for a feature
Projects
None yet
Development

No branches or pull requests

3 participants