Re: [netatalk-admins] DIDs - an idea -or- I didn't read the AFP specs completely yet


Subject: Re: [netatalk-admins] DIDs - an idea -or- I didn't read the AFP specs completely yet
From: Andrew McNabb (amcnabb@argus-systems.com)
Date: Wed Apr 15 1998 - 17:44:50 EDT


What happens if you change your system clock (esp. dailylight savings)?
Also, what if you have two files created during the same second (not
unlikely if you have a big system).

On Wed, 15 Apr 1998, Incze Lajos wrote:

> > 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
>

----------------------------------------------
                Andrew McNabb
             Argus Systems Group
          amcnabb@argus-systems.com
----------------------------------------------
  I am an International Arms Trafficker!!!!!
http://online.offshore.com.ai/arms-trafficker/
----------------------------------------------



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