Re: FSCopyObjectSync and Samba, error -54
Re: FSCopyObjectSync and Samba, error -54
- Subject: Re: FSCopyObjectSync and Samba, error -54
- From: George K Colley <email@hidden>
- Date: Tue, 26 Aug 2008 08:27:31 -0700
Please send me your test program? I would like to look into this issue
some more. Starting with Leopard SMB and AFP should behave the same.
Now there could still be some issues in Carbon, but the AFP/SMB
Clients should be treating Open Deny Modes the same.
George
On Aug 26, 2008, at 8:21 AM, Bucanek James wrote:
If anyone was curious, this problem turned out to be an impedance
mismatch between the file sharing modes used by HFS+/AFP and the
file sharing modes used by SMB (or at least the translation of those
mode by Samba). Thanks go to James Peach in helping me run this to
ground.
The problem was that I had a file that was being opened with
fsRdWrShPerm; that should allow other processes to read or write to
the file at the same time. While it was still open, I called
FSCopyObjectSync which (I assume) would open the file fsRdPerm (or
something equivalent). On HFS+ or AFP volumes this worked just fine.
But on an SMB volume, the Carbon permissions got translated into
something like read+write and read-only+no-write. The
FSCopyObjectSync would fail with a permissions error because it was
trying to open the file exclusively read-only while some other
process had the file open for writing.
I don't modify the file while FSCopyObjectSync is running, so the
workaround for this particular file was to open it fsRdPerm while
the FSCopyObjectSync is working. Once FSCopyObjectSync is done, I
close the file and reopen it fsRdWrShPerm.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden