Subject: [netatalk-admins] AppleVolumes.system problem

From: David Kelly <[email-masked]>
Date: Tue, 20 Jan 1998 14:53:38 -0600

I've had a little problem with the default value for ZIP files in netatalk,
the commented out version is the standard value, only the 2nd works:

#.zip   ZIP     ZIP
.zip    "ZIP "  "ZIP "

Even so, I start with a clean .AppleDouble directory, mount it R/W as
myself, then from FreeBSD I see:

PeeCee: {1004} hd .AppleDouble/CB980115.txt
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 05 00 00 00 02 00 00  |................|
00000020  02 4d 00 00 00 00 00 00  00 03 00 00 00 56 00 00  |.M...........V..|
00000030  00 0c 00 00 00 04 00 00  01 55 00 00 00 00 00 00  |.........U......|
00000040  00 07 00 00 02 1d 00 00  00 10 00 00 00 09 00 00  |................|
00000050  02 2d 00 00 00 20 43 42  39 38 30 31 31 35 2e 74  |.-... CB980115.t|
00000060  78 74 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |xt..............|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000210  00 00 00 00 00 00 00 00  00 00 00 00 00 34 bf ed  |.............4..|
00000220  b5 34 bf ed b5 00 00 00  00 00 00 00 00 54 45 58  |.4...........TEX|
00000230  54 55 4e 49 58 01 00 00  4e 00 40 00 00 00 00 00  |TUNIX...N.@.....|
00000240  00 00 00 00 00 00 00 00  00 00 00 00 00           |.............|
0000024d
PeeCee: {1005}

Above directory mounted under System 7.1, read only as guest, this is what
MPW-shell sees:

directory
cbd:
files -l CB980115.zip
Name                  Type Crtr  Size    Flags        Last-Mod-Date
Creation-Date
--------------------  ---- ---- ------ ---------- -------------------
-------------------
CB980115.zip          ZIP  ZIP    221K lvbspoimad    1/16/98  5:31 PM
1/16/98  5:31 PM

Whats going on here? TEXTUNIX is plainly wrong, yet the Mac sees the right
thing anyhow. Is TEXTUNIX always remapped via AppleVolumes.system?

--
David Kelly N4HHE, [email-masked]
========================================================================
Whom computers would destroy, they must first drive mad.

---

From: David Kelly <[email-masked]>
Date: Tue, 20 Jan 1998 16:01:10 -0600

>At 2:53 PM -0600 1/20/98, David Kelly wrote:
>
[...]
>>PeeCee: {1004} hd .AppleDouble/CB980115.txt
[...]
>>00000210  00 00 00 00 00 00 00 00  00 00 00 00 00 34 bf ed
[...]
>I'm not sure what you see as a problem here. CB980115.txt is a TEXT file,
>CB980115.zip is a ZIP file.
>
>Am I just so dense that I'm missing an implied connection between the two?

No, its not you, its me. I hd'ed the wrong file but the results are still
the same. Everything in my .AppleDouble directory looks similar. All of the
files originated on the Unix side:

PeeCee: {1001} cd pub*/cbd/.A*
PeeCee: {1002} hd CB980115.zip
00000000  00 05 16 07 00 01 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 05 00 00 00 02 00 00  |................|
00000020  02 4d 00 00 00 00 00 00  00 03 00 00 00 56 00 00  |.M...........V..|
00000030  00 0c 00 00 00 04 00 00  01 55 00 00 00 00 00 00  |.........U......|
00000040  00 07 00 00 02 1d 00 00  00 10 00 00 00 09 00 00  |................|
00000050  02 2d 00 00 00 20 43 42  39 38 30 31 31 35 2e 7a  |.-... CB980115.z|
00000060  69 70 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |ip..............|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000210  00 00 00 00 00 00 00 00  00 00 00 00 00 34 bf ed  |.............4..|
00000220  b7 34 bf ed b7 00 00 00  00 00 00 00 00 54 45 58  |.4...........TEX|
00000230  54 55 4e 49 58 01 00 00  4e 00 c0 00 00 00 00 00  |TUNIX...N.......|
00000240  00 00 00 00 00 00 00 00  00 00 00 00 00           |.............|
0000024d
PeeCee: {1003}

The above was generated by netatalk 1.4b2 after I mounted the volume R/W
for the first time. While the above appears incorrect, the Mac's see the
right thing for some reason.

Messing around with it the past several hours I'm guessing type 'TEXT' and
creator 'UNIX' is the general-purpose tag instructing netatalk to use
AppleVolumes.system for the real information?

Recompiled without -DCRLF in the afpd Makefile. Only change I've noticed is
my .txt mapping to 'TEXT' 'ttxt' now works.