encfs icon indicating copy to clipboard operation
encfs copied to clipboard

Drive content refresh on macOS

Open leochou0729 opened this issue 8 years ago • 12 comments

Hello, I'm using encfs on macOS 10.12 with Dropbox. If I upload a file into the encrypted folder from another computer, the dropbox folder syncs immediately, but the encfs drive doesn't refresh. I try to pass "-o attr_timeout=0 -o entry_timeout=0" to OSXFUSE, but it doesn't work. Is there anyway to tell encfs drive to refresh immediately when the underlying folder's content is updated. Thanks!

leochou0729 avatar Nov 30 '16 08:11 leochou0729

So when you run "ls -l" on the decypted folder timestamp and file size do not update?

rfjakob avatar Nov 30 '16 08:11 rfjakob

When I run "ls -l" in the terminal, I can see the new file already in the drive, but Finder doesn't refresh immediately. Is there any way to force Finder to refresh? Thanks!

leochou0729 avatar Nov 30 '16 08:11 leochou0729

I don't know any, and this is a major pain in the neck for network drives as well. If you find a way please report back :)

rfjakob avatar Nov 30 '16 09:11 rfjakob

I tried to make encfs drive local using "-o local", but it makes no difference. I suppose it's a bug in Finder. :(

leochou0729 avatar Nov 30 '16 09:11 leochou0729

@leochou0729 did you manage to find a solution ?

benrubson avatar Jul 05 '17 07:07 benrubson

@benrubson Unfortunately no. I have no idea whether it is a bug in OSXFUSE. I have the same problem on Windows 10 using encfs4win with Dokan library.

leochou0729 avatar Jul 05 '17 07:07 leochou0729

Does using another Fuse FS (such as the trivial passfs : https://github.com/jrk/passfs) lead to the same Finder refresh bug ?

benrubson avatar Jul 06 '17 06:07 benrubson

@benrubson passfs also has the same problem. If I mount it as local drive, I need to remount to show its content. If I mount it normally as network drive, I can just close Finder and open the drive again to show its content. ls command can always show the correct content.

leochou0729 avatar Jul 12 '17 05:07 leochou0729

The issue is then certainly on OSXFUSE side or MacOS side. Perhaps you should open an OSXFUSE bug report ?

benrubson avatar Jul 12 '17 06:07 benrubson

OK. I will submit a bug report. Thanks!

leochou0729 avatar Jul 12 '17 09:07 leochou0729

https://github.com/osxfuse/osxfuse/issues/392 I've already submitted a bug report, but it seems to be an issue on encfs side. @benrubson @rfjakob

leochou0729 avatar Jul 13 '17 13:07 leochou0729

OK, EncFS should then have to implement functions explained in your bug report to notify Finder. It does not use them yet. Thank you for this @leochou0729 👍

benrubson avatar Jul 26 '17 06:07 benrubson