Re: Mac Aliases changing


Subject: Re: Mac Aliases changing
From: Thomas Lamy (thomas@v-connect.com)
Date: Thu Jun 26 1997 - 10:23:54 EDT


>>You'd have a simple database that several afpd's could modify at once.
>>The first few routines in etc/afpd/directory.c would need to be
>>modified. The format could be very similar to a Unix directory, with
>>free extents, etc. If a Unix file got deleted with "rm", then the
>>database would be modified by the first afpd to notice the
>>discrepency.
>
>Sounds much better that the aproach with the singel file in the root
>directory. To check for file removal (and creation or renaming) you
>could store (and check) the directories mtime in the database. Reading
>the directory is only necessary, when it has changed.
>
I've followed the discussion for some time, and I think Helios (Ethershare) has done "the right thing" in this case:

First, they have a single database for each volume, .Desktop, holding APPL-Signatures, Icons, and the file- and directory id database. This db is managed by a single process, called desksrv. The afp server processes communicate with the desksrv via RPCs.
Second, they have the id of each file/directory stored in a file named ".rsrc/<file/directory name>". This is to reduce RPC overhead, as afp servers open this file anyway to get the finder information, and to rebuild the desktop database if it became corrupted.

I'm working on this approach inside netatalk for 3 moths now (in my spare time, which is not that much :-()

Thomas

Thomas Lamy Vision Connect GmbH Telefon: (089) 356256-35
Database Development Division Taunusstraße 51 Telefax: (089) 356256-56
mailto:thomas@v-connect.com 80807 München http://www.v-connect.com/



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:25:12 EST