1 Mar 2003 10:57
Re: CNID database - better stability/recoverability
didier <dgautheron <at> magic.fr>
2003-03-01 09:57:40 GMT
2003-03-01 09:57:40 GMT
Joerg Lenneis wrote: > Dear list members, > > I have looked at the source code of netatalk for the last couple of > weeks to find out more about its current features. I am especially > interested in the various approaches with respect to CNIDs as well as > interoperability with Samba, also with respect to CNIDs and locking > issues. So far, these are my findings and I would be thankful for any > corrections and additional input: > > - The only "safe" CNID scheme available at the moment is CNID_DB using > Berkeley DB. All other schemes can potentially lead to data > corruption, mainly because there is no guarantee that a CNID is not > reused at a later point in time. Rather duplicate than reused, we can get reused ID with CNID too. > > - Storing CNIDs in a Berkeley DB is in itself not foolproof. A crash > at the wrong time can lead to database corruption and possibly to > the loss of all CNIDs on a volume (since the last backup, > obviously) unless precautions are taken (see below). It's a pain but IMO not that much, but not be able to access files is worse. It seems that opening the db doesn't always return an error if there's locks held by deaded processes. > > > Extending the AppleDouple1 file to AppleDouple2 is more complicated but > fortunately much of the work has been done already. There is a > function ad_v1tov2 in ad_open.c which does all of the work of > converting existing AppleDouble1 files to AppleDouble2. It does not(Continue reading)
RSS Feed