Hello,

after using the new AFP server on Linux for a month now, I think there are some bungs about file locking.

First thing is that if I enable the CROSS_PROTOCOL_LOCKS setting, I'm unable to read any file or folders with brackets [] in their names. The mac says that the already in use an cannot be accessed. The afptcp.log says the afp-deamon is unable to communicate with the ncp server. So I disabled this.

But shortly users complained about accessing some files. And it's true that some files in some folders are unaccessible from the mac. The error seems to be on the folder, cause if one is affected it's impossible to read any file in it. If I try to copy a file from a affected folder, the mac reports error -50 unknown. The afp server log reports:

Jan 25 11:34:44 obelix afptcpd[12018]: FPEnumerate returning ERROR (4FB7) at 5
Jan 25 11:34:45 obelix afptcpd[12018]: FPEnumerate returning ERROR (4FB7) at 5
Jan 25 11:34:45 obelix afptcpd[12018]: FPEnumerate returning ERROR (4FB7) at 5
Jan 25 11:34:45 obelix afptcpd[12018]: FPEnumerate returning ERROR (4FB7) at 5
Jan 25 11:34:45 obelix afptcpd[12018]: [ERROR] Failed to open fork
Jan 25 11:34:45 obelix afptcpd[12018]: From FPOpenFork
Jan 25 11:34:45 obelix afptcpd[12018]:
Jan 25 11:34:45 obelix afptcpd[12018]: [ERROR] Failed to open fork
Jan 25 11:34:45 obelix afptcpd[12018]: From FPOpenFork
Jan 25 11:34:45 obelix afptcpd[12018]:
Jan 25 11:34:45 obelix afptcpd[12018]: [ERROR] Failed to open fork
Jan 25 11:34:45 obelix afptcpd[12018]: From FPOpenFork
Jan 25 11:34:45 obelix afptcpd[12018]:
Jan 25 11:34:45 obelix afptcpd[12018]: FPEnumerate returning ERROR (4FB7) at 5
Jan 25 11:34:45 obelix afptcpd[12018]: [ERROR] Failed to open fork
Jan 25 11:34:45 obelix afptcpd[12018]: From FPOpenFork
Jan 25 11:34:45 obelix afptcpd[12018]:
Jan 25 11:34:45 obelix afptcpd[12018]: [ERROR] Failed to open fork
Jan 25 11:34:45 obelix afptcpd[12018]: From FPOpenFork
Jan 25 11:34:46 obelix afptcpd[12018]:
Jan 25 11:34:46 obelix afptcpd[12018]: [ERROR] Failed to open fork
Jan 25 11:34:46 obelix afptcpd[12018]: From FPOpenFork
Jan 25 11:34:46 obelix afptcpd[12018]:
Jan 25 11:34:46 obelix afptcpd[12018]: [ERROR] Failed to open fork
Jan 25 11:34:47 obelix afptcpd[12018]: From FPOpenFork
Jan 25 11:34:47 obelix afptcpd[12018]:
Jan 25 11:34:47 obelix afptcpd[12018]: [ERROR] Failed to open fork
Jan 25 11:34:47 obelix afptcpd[12018]: From FPOpenFork
Jan 25 11:34:47 obelix afptcpd[12018]:
Jan 25 11:34:47 obelix afptcpd[12018]: [ERROR] Failed to open fork
Jan 25 11:34:48 obelix afptcpd[12018]: From FPOpenFork
Jan 25 11:34:48 obelix afptcpd[12018]:
Jan 25 11:34:48 obelix afptcpd[12018]: [ERROR] Failed to open fork
Jan 25 11:34:48 obelix afptcpd[12018]: From FPOpenFork
Jan 25 11:34:48 obelix afptcpd[12018]:
Jan 25 11:34:48 obelix afptcpd[12018]: [ERROR] Failed to open fork
Jan 25 11:34:48 obelix afptcpd[12018]: From FPOpenFork

Any ideas? Are there any error free Linux AFP servers out there?

Quirin Pasquay