gocryptfs icon indicating copy to clipboard operation
gocryptfs copied to clipboard

Feature Request: Show `btime`

Open Anuskuss opened this issue 1 year ago • 2 comments

Add the ability to expose the birth time (in the mounted directory):

$ mkdir enc dec && gocryptfs -init enc && gocryptfs enc dec && touch dec/file
$ stat enc/tmQgCkoEOwR6t6gIHuLfbg dec/file
  File: enc/tmQgCkoEOwR6t6gIHuLfbg
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 0,37	Inode: 697         Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/    user)   Gid: ( 1000/    user)
Access: 2024-09-10 19:48:35.967954468 +0000
Modify: 2024-09-10 19:48:35.967954339 +0000
Change: 2024-09-10 19:48:35.966474688 +0000
 Birth: 2024-09-10 19:48:35.966474688 +0000
  File: dec/file
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 0,59	Inode: 697         Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/    user)   Gid: ( 1000/    user)
Access: 2024-09-10 19:48:35.967954468 +0000
Modify: 2024-09-10 19:48:35.967954339 +0000
Change: 2024-09-10 19:48:35.966474688 +0000
 Birth: -

Anuskuss avatar Sep 10 '24 17:09 Anuskuss

Ack, this is possible since https://github.com/hanwen/go-fuse/commit/ecc8b6aa82e5df4de086001011d567de2df3aa15 (go-fuse v2.7)

rfjakob avatar Apr 14 '25 19:04 rfjakob

Is this possibly low-hanging fruit now that gocryptfs has upgraded to go-fuse v2.8? I had a look, but there are too many unfamiliar areas. It's a high-utility feature for me and I'd gladly put up a bounty if there's a workable system for that now that Bountysource is gone.

haakonn avatar Nov 13 '25 18:11 haakonn