[Afpfs-ng-devel] length of volumename is wrong
Status: Alpha
Brought to you by:
alexthepuffin
From: HAT <ha...@fa...> - 2008-07-16 13:29:16
|
Alex, Have you already noticed a problem of volumename length? If volumename is non-ASCII, UTF8 string is very long. Actually, I cannot mount two of three volumes on Mac OS X 10.5.4. This problem is fatal. In include/afp_protocol.h, #define AFP_VOLUME_NAME_LEN 33 For AFP2.x, this command returns volume names in ANSI format with a maximum length of 27 bytes. #define AFP_VOLUME_NAME_UTF8_LEN 33 For AFP3.x, this command returns volume names in UTF-8 format with a one byte length byte specifying any length up to 255. Note that the Finder limits setting volume names to no more than 27 characters. #define AFP_MACHINETYPE_LEN 33 A string in Pascal format of up to 16 characters that describes the file servers hardware and software but has no significance to AFP. If you do not know it, I report after examining it a little more. -- HAT |