Subject: Re: [netatalk-admins] DIDs - an idea -or- I didn't read the AFP specs completely yet
From: Incze Lajos (incze@mail.matav.hu)
Date: Wed Apr 15 1998 - 16:00:18 EDT
> For we can not use a DID number we already used, we should maintain a
> 'high water mark' for the volume, like .maxDID or .AppleDouble/.maxDID.
> When we create a directory (or find one without a DID, like one created in
> unix), we assign maxDID to its DID, store it as - let's say -
> .AppleDouble/.DID, and then bump .maxDID.
My idea was to use the unsigned long returned by time(). Then the
TIME will maintain your uniqness. And no need for the .maxDID bump
which has a race condition.
> This seems to be too simple for me to believe it's right.
Seems to work. Incze
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:32:22 EST