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

Finder (Mac os) fails to paste a file in mountpoint #533

Open
jmascart opened this issue Feb 15, 2017 · 1 comment
Open

Finder (Mac os) fails to paste a file in mountpoint #533

jmascart opened this issue Feb 15, 2017 · 1 comment
Labels

Comments

@jmascart
Copy link

jmascart commented Feb 15, 2017

Hello,
I use acd_cli on Linux and Mac OS. On Linux i have no problem, but on Mac i can't paste files in the mountpoint with Finder. The cp command works, but i'd like to paste from Finder.

I tried to remove the xattrs from a file but it doesn't make the paste work.

The error in Finder:
screen shot 2017-02-15 at 02 41 31

jma@MacBook:\~$ python3 -c 'import platform as p; print("%s\n%s" % (p.python_version(), p.platform()))'
3.5.2
Darwin-16.4.0-x86_64-i386-64bit
jma@MacBook:\~$ acdcli version
acd_cli 0.3.2, api 0.9.2

If it may help, here is a log when i copy an image with cp command, and when i try to copy/paste the exact same file with finder

cp.log.txt
copy-paste-in-finder.log.txt

@yadayada yadayada added the Mac OS label Mar 5, 2017
@jmascart
Copy link
Author

I'm not sure if it's the same problem or not, but Finder makes a lot of getattr calls when he is writing a file into an acdcli mountpoint. But getattr will return a size of 0, although some datas have already been written.

I don't know if it confuses Finder, but for sure it confuses OSXFUSE:
"if osxfuse detects a change in a file's size during getattr(), it will purge that file's buffer cache."
(source https://github.com/osxfuse/osxfuse/wiki/Mount-options).

I can reproduce that if a program is making write calls, and another program makes a getattr() on the file that returns a 0 size, the next write received by the fuse implementation will have an offset reseted to zero. acdcli doesn't like it and says "illegal seek".

So maybe the problem is with OSXFUSE ?

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

No branches or pull requests

2 participants