jmarcus [Sat, 31 Aug 2002 08:05:40 +0000 (08:05 +0000)]
* Add support for verifying the mangle database if it exists
* Establish a shared lock on the open AppleVolumes.default file
* Clean up the code with perltidy
jmarcus [Sat, 31 Aug 2002 05:35:09 +0000 (05:35 +0000)]
Create a (for now) undocumented volume option, "umask" which gives us
the ability to have CNID files and directories created with the umask of the
logged in user.
Currently this is only done for '~' shares, but the umask volume option
could be specified for any share. It could even be extended to things other
than CNID.
jmarcus [Fri, 30 Aug 2002 03:12:45 +0000 (03:12 +0000)]
Introduce Conncurrent Data Store (CDB) support to CNID. This is phase 1.
In this phase, CDB is a configure option, and is either enabled or disabled
for all volumes at compile time. By default, CDB is disabled in favor of
transactional data store.
CDB has some advantages. It doesn't use transactions or logging, thus it's
less likely to be corrupted if the server dies prematurely. It also
doesn't eat up disk space with transaction logs. The disadvantage is that
it's designed for environments with many readers and one writer. This means
that many afpd clients could block while waiting for a write lock on
the database. That's why testing is in order.
In phase 2, CDB is be configurable on a per-volume basis.
Phase 3 (if testing of phase 1 and 2 is good) will be to enable CDB as the
default CNID data store scheme.
To enable CDB, simply specify the configure argument --with-cdb when
configuring with CNID DID support.
rlewczuk [Sun, 25 Aug 2002 13:26:19 +0000 (13:26 +0000)]
Rudimentary FPCatSearch implementation.
Still has bugs and some things (like offspring count filter) aren't implemented.
Activate with --with-catsearch while invoking ./configure.
sibaz [Sat, 24 Aug 2002 05:00:06 +0000 (05:00 +0000)]
reorganised the log messages, fixed the typo conscerning unsetuplog in afp_options, and added an example to the afpd.conf.tmpl file (and removed the warning)
sibaz [Sat, 24 Aug 2002 03:47:37 +0000 (03:47 +0000)]
doh, the code was looking up the loglevel against a table, then using the position in that table as the value, the enum was ten times that. That was all that was causing problems. I've altered the loglevels table to reflect this, by making the more debug levels go debug, debug6, debug7, debug8, debug9, maxdebug, all of which correspond to their enum values except divided by ten
sibaz [Sat, 24 Aug 2002 02:12:43 +0000 (02:12 +0000)]
renamed the -setuplogtype optione to -[un]setuplog, where unsetting a log simply sets its loglevel to severe. Added usage notes in afpd.conf.tmpl, and allowed for the fact that not all parameters are neccesarily defined (specifying unsetuplog will drop the loglevel parameter)
sibaz [Sat, 24 Aug 2002 01:32:19 +0000 (01:32 +0000)]
altered the format that setuplog works so one less parameter is needed. This untested, but I'm pretty sure it'll work as intended. Use at -setuplog option at your own risk
jmarcus [Thu, 20 Jun 2002 02:15:09 +0000 (02:15 +0000)]
If just one user was logged in to Netatalk, cnid_maint would kick that
user off. This was due to an off-by-one error in calculating the afpd
child process.
jmarcus [Sun, 2 Jun 2002 22:34:36 +0000 (22:34 +0000)]
Allow mangling to work correctly when moving and copying files. The
downside of this is that the mangling database currently has no way to
purge itself. I'll work on that next.
jmarcus [Thu, 30 May 2002 06:41:16 +0000 (06:41 +0000)]
First round of mangling debugging. This should actually work. I ran into
some problems with read-only files, but that may be a product of 1.6cvs, and
not necessarily my code.
jmarcus [Wed, 29 May 2002 18:02:57 +0000 (18:02 +0000)]
Add support for long filename mangling. Basically, tis code will take
filenames greater than MACFILELEN characters, and mangle them much like
DOS does. The mangled filenames are stored in a Berkeley database per
volume.
NOTE: This code is _not_ tested, and may cause data loss. Use at your own
risk. To enable it, configure with --with-mangling.
rufustfirefly [Thu, 23 May 2002 15:58:55 +0000 (15:58 +0000)]
patch #547180 for unprintable characters in psf. Previous behavior was to simply die, now prints a question mark. (Jason R. McVetta <jmcvetta@users.sourceforge.net>)
sibaz [Tue, 14 May 2002 18:47:06 +0000 (18:47 +0000)]
surrounded new function body with the #ifdef that turns it off when --without-logfile is set. Looking at it though this whole file should be turned off when --without-logfile is set, and the LOG macro should just ignore the unused parameters and send a ... with all the vprintf parameters to syslog, thus rendering the code that's left, unneeded