Re: Netatalk --> Win2K SfM?


Subject: Re: Netatalk --> Win2K SfM?
From: Jonathan Paisley (jonp@chem.gla.ac.uk)
Date: Mon Jun 11 2001 - 08:27:50 EDT


On Thu, 7 Jun 2001, Andrew D. Myers wrote:

> Executive summary:
>
> Does anyone know of a handy tool/technique for taking the resource fork
> and attributes from an AppleDouble file and stitching 'em into the
> corresponding NTFS data streams under Win2K Services for Macintosh?

I saw some replies to this which talked about using samba alone. Clearly
this won't work because of the macintosh data.

To extract the mac info from the netatalk .appledouble files, you can link
with netatalk's libadouble library. Then there are functions to read/write
either fork and also extract mac flags and type/creator info.

As far as the streams on the W2K server go, I think they're something like
this:

        :Afp_AfpInfo
        :AfpResource

The AfpResource stream is simply the raw data from the resource fork. The
:Afp_AfpInfo is a small file (about 60 bytes IIRC) containing mac file
info. I haven't figured out the exact format of this file, but I should
imagine that it shouldn't be too hard to synthesize it.

You can read/write these streams using smbclient or smbfs.

The problems you mentioned with funny characters are trickier. SFM uses
reserved unicode code positions for representing illegal windows
characters that are used in macintosh file names (e.g. : and \, as well
as trailing spaces). In order to successfully transfer over these files,
you'll need to talk to the W2K server in unicode (or come up with some
other name mangling of your own in plain ASCII). I don't think samba
supports unicode directly at the moment.

Does this help any?

-- 
Jonathan Paisley
jonp@chem.gla.ac.uk



This archive was generated by hypermail 2b28 : Sun Oct 14 2001 - 03:04:42 EDT