Thomas Kaiser | 20 Jun 2008 00:12
Picon

Re: Office 2008 Word Type Codes

Scott Sipe wrote:

> You're saying that once Word 2008 (or whatever program) opens the file via
> netatalk, it rewrites the type code in the metadata, even if the file
> contents were not changed?

No. It's completely independent from anything a Mac program does or not.

A file might have mac metadata like file type and creator code attached to
it (when saved via Netatalk/AFP) or not (when stored by other means). This
sort of metadata will be stored AppleDouble encoded in an afpd-internal file
(normally residing in the .AppleDouble subfolder with identical name --
unfortunately there exists an ugly hack called "adouble:osx" which stores
the AD file in a similar way like MacOS X' VFS layer when accessing flat
filesystems like SMB or NFS --> ._$filename)

The first time an apfd process accesses a file without AppleDouble metadata
a lookup in AppleVolumes.system happens and in case there exists a mapping
for the file's suffix and a specific type/creator combination the latter
will be automagically assigned to the file in question (an AppleDouble
encoded file inside the .AppleDouble subfolder will be written containing
this sort of information).

When this sort of metadata is present (read as: the appropriate AD encoded
file exists) any sort of mapping table/algorithm is ignored (so the
aforementioned process is unique unless one removes the file's type/creator
allocation again). The same applies to files directly stored via AFP since
type/creator information is already handed over from the client to the
server.

> FWIW, we've been running Samba and Netatalk side by side for--I don't
> know about 10+ years--with minimal problems.

>From my experience this is the usual gap between user's and administrator's
experience :-(

Regards,

Thomas

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

Gmane