netatalk.git
9 years agoIPv6 support for afpd and cnid_metad after-ipv6
franklahm [Thu, 5 Nov 2009 14:38:07 +0000 (14:38 +0000)]
IPv6 support for afpd and cnid_metad

9 years agosmall clean up, use of_ad when we can before-ipv6
didg [Mon, 2 Nov 2009 14:35:27 +0000 (14:35 +0000)]
small clean up, use of_ad when we can

9 years agoUntabify and reindent
franklahm [Mon, 2 Nov 2009 10:27:13 +0000 (10:27 +0000)]
Untabify and reindent

9 years agoFix some webmin installation stuff
franklahm [Sun, 1 Nov 2009 10:58:50 +0000 (10:58 +0000)]
Fix some webmin installation stuff

9 years agoMerge NEWS from 2.0.5
franklahm [Fri, 30 Oct 2009 15:28:54 +0000 (15:28 +0000)]
Merge NEWS from 2.0.5

9 years agoUntabify and reindent
franklahm [Fri, 30 Oct 2009 07:00:03 +0000 (07:00 +0000)]
Untabify and reindent

9 years agoForce conversion of EA names
franklahm [Thu, 29 Oct 2009 19:20:28 +0000 (19:20 +0000)]
Force conversion of EA names

9 years agobuild.sh is obsolete
franklahm [Thu, 29 Oct 2009 18:38:48 +0000 (18:38 +0000)]
build.sh is obsolete

9 years agomove most of a LOG macros in the logger function
didg [Thu, 29 Oct 2009 16:19:49 +0000 (16:19 +0000)]
move most of a LOG macros in the logger function

9 years agothe use of the new LOG code introduce a 50% code size penalty, text size with LOG...
didg [Thu, 29 Oct 2009 15:04:41 +0000 (15:04 +0000)]
the use of the new LOG code introduce a 50% code size penalty, text size with LOG: 514748 Bytes, without it : 365325 Bytes, no way that this stuff can stay. Add a new NO_DEBUG which remove log_debug when compile with O2, need a configure option

9 years agouse log_debug9 rather than log_debug for LOG inside ifdef DEBUG
didg [Thu, 29 Oct 2009 13:38:15 +0000 (13:38 +0000)]
use log_debug9 rather than log_debug for LOG inside ifdef DEBUG

9 years agovfs->ad_path wasn't set
franklahm [Thu, 29 Oct 2009 13:28:57 +0000 (13:28 +0000)]
vfs->ad_path wasn't set

9 years agouse log_debug rather than log_info for LOG inside ifdef DEBUG
didg [Thu, 29 Oct 2009 13:17:28 +0000 (13:17 +0000)]
use log_debug rather than log_info for LOG inside ifdef DEBUG

9 years agoMove VFS stack from _one_ global stack to per volume stack
franklahm [Thu, 29 Oct 2009 13:06:19 +0000 (13:06 +0000)]
Move VFS stack from _one_ global stack to per volume stack

9 years agoremove redundant debug output, it's already print in afp_dsi
didg [Thu, 29 Oct 2009 12:58:11 +0000 (12:58 +0000)]
remove redundant debug output, it's already print in afp_dsi

9 years agoconvert_string can deal with not 0 terminated strings thus move the copy outside...
didg [Thu, 29 Oct 2009 12:48:34 +0000 (12:48 +0000)]
convert_string can deal with not 0 terminated strings thus move the copy outside the fast path in the LOG macros

9 years agocompute the right size if len == -1 in convert_string and use -1 than strlen(in)...
didg [Thu, 29 Oct 2009 11:35:57 +0000 (11:35 +0000)]
compute the right size if len == -1 in convert_string and use -1 than strlen(in) in most calls

9 years agouse _USE_GNU_SOURCE rather than the internal __USE_GNU
didg [Thu, 29 Oct 2009 11:19:23 +0000 (11:19 +0000)]
use _USE_GNU_SOURCE rather than the internal __USE_GNU

9 years agoRemove etc/afpd/afp_vfs.h. Obsolete and moved to include/atalk/vfs.h
franklahm [Thu, 29 Oct 2009 10:55:45 +0000 (10:55 +0000)]
Remove etc/afpd/afp_vfs.h. Obsolete and moved to include/atalk/vfs.h

9 years agoconvert_string always 0-terminate or return an error
didg [Thu, 29 Oct 2009 10:53:52 +0000 (10:53 +0000)]
convert_string always 0-terminate or return an error

9 years agoremove unused parameter warning
didg [Thu, 29 Oct 2009 10:34:15 +0000 (10:34 +0000)]
remove unused parameter warning

9 years agoonly call stat(path) if it's not done in cname
didg [Thu, 29 Oct 2009 10:27:45 +0000 (10:27 +0000)]
only call stat(path) if it's not done in cname

9 years agoremove include already in adouble.h
didg [Thu, 29 Oct 2009 10:04:35 +0000 (10:04 +0000)]
remove include already in adouble.h

9 years agouse the parent directory id in the hash
didg [Thu, 29 Oct 2009 09:47:11 +0000 (09:47 +0000)]
use the parent directory id in the hash

9 years agoattribute name length is 16bits not 32bits, on big endian was returning junk
didg [Wed, 28 Oct 2009 01:52:49 +0000 (01:52 +0000)]
attribute name length is 16bits not 32bits, on big endian was returning junk

9 years agouse sizeof(foo) rather than 2 or 4 when copying from/to cmd buffers so variables...
didg [Wed, 28 Oct 2009 01:44:58 +0000 (01:44 +0000)]
use sizeof(foo) rather than 2 or 4 when copying from/to cmd buffers so variables with a wrong type bug quickly

9 years agoapple attributes' name are constant
didg [Wed, 28 Oct 2009 01:31:57 +0000 (01:31 +0000)]
apple attributes' name are constant

9 years agofcntl.h is already included in adouble.h
didg [Wed, 28 Oct 2009 01:30:25 +0000 (01:30 +0000)]
fcntl.h is already included in adouble.h

9 years agodirent.h is included in directory.h
didg [Tue, 27 Oct 2009 23:35:17 +0000 (23:35 +0000)]
dirent.h is included in directory.h

9 years agoadd missing include files in 'make dist'
didg [Tue, 27 Oct 2009 13:49:34 +0000 (13:49 +0000)]
add missing include files in 'make dist'

9 years agoSome declarations were missing static keyword
franklahm [Tue, 27 Oct 2009 12:35:23 +0000 (12:35 +0000)]
Some declarations were missing static keyword

9 years agomv unix_rename from etc/afpd/unix.c to libatalk/vfs/unix.c.
franklahm [Tue, 27 Oct 2009 10:24:02 +0000 (10:24 +0000)]
mv unix_rename from etc/afpd/unix.c to libatalk/vfs/unix.c.
Untabify and reindent libatalk/vfs/unix.c.

9 years agoAdjust args names to match new VFS args names
franklahm [Mon, 26 Oct 2009 13:12:00 +0000 (13:12 +0000)]
Adjust args names to match new VFS args names

9 years agoUse fcntl O_NONBLOCK instead of ioctl FIONBIO
franklahm [Mon, 26 Oct 2009 12:35:56 +0000 (12:35 +0000)]
Use fcntl O_NONBLOCK instead of ioctl FIONBIO

9 years agoC99 forbids _XOPEN_SOURCE < 600
franklahm [Mon, 26 Oct 2009 12:34:18 +0000 (12:34 +0000)]
C99 forbids _XOPEN_SOURCE < 600

9 years agosendfile commit didn't compile if sendfile disable
didg [Sun, 25 Oct 2009 12:09:00 +0000 (12:09 +0000)]
sendfile commit didn't compile if sendfile disable

9 years agouse off_t rather than size_t for read/write_count, doesn't overflow at 4GB, yes movin...
didg [Sun, 25 Oct 2009 12:06:28 +0000 (12:06 +0000)]
use off_t rather than size_t for read/write_count, doesn't overflow at 4GB, yes moving more than 4GB of data over asp is a bad idea

9 years agoon linux put sendfile back
didg [Sun, 25 Oct 2009 09:47:03 +0000 (09:47 +0000)]
on linux put sendfile back

9 years agoseteuid back to our login user in logout in case there're volumes' prexec_close scripts.
didg [Sun, 25 Oct 2009 07:18:11 +0000 (07:18 +0000)]
seteuid back to our login user in logout in case there're volumes' prexec_close scripts.

9 years ago1) try a better workaround for deadlocks when both the server and the client are...
didg [Sun, 25 Oct 2009 06:12:51 +0000 (06:12 +0000)]
1) try a better workaround for deadlocks when both the server and the client are sleeping in write by using a timeout. 2) Don't block signals when the server write to the socket, SIGTERM is not fully protect yet, the server can still disconnect in a middle of a write

9 years agoEA, don't use st.st_mode if stat() failed. and goto exit was filling the log with...
didg [Sun, 25 Oct 2009 05:45:59 +0000 (05:45 +0000)]
EA, don't use st.st_mode if stat() failed. and goto exit was filling the log with ea_close('.'): non initialized ea

9 years agoafp_delete don't call deletefile if we already know that there's no file from cname()
didg [Fri, 23 Oct 2009 17:35:06 +0000 (17:35 +0000)]
afp_delete don't call deletefile if we already know that there's no file from cname()

9 years agoWe didn't always seteuid back. Thanks to Didier for spotting this.
franklahm [Fri, 23 Oct 2009 14:49:30 +0000 (14:49 +0000)]
We didn't always seteuid back. Thanks to Didier for spotting this.

9 years agoBegin Solaris EA VFS cleanup
franklahm [Fri, 23 Oct 2009 14:09:50 +0000 (14:09 +0000)]
Begin Solaris EA VFS cleanup

9 years agoad_open mask out O_EXCL with O_CREAT
didg [Fri, 23 Oct 2009 08:24:33 +0000 (08:24 +0000)]
ad_open mask out O_EXCL with O_CREAT

9 years agoFix all remaining warnings from gcc -Wall that can be fixed
franklahm [Thu, 22 Oct 2009 13:40:11 +0000 (13:40 +0000)]
Fix all remaining warnings from gcc -Wall that can be fixed

9 years agoFix incompatible func args warnings
franklahm [Thu, 22 Oct 2009 12:35:38 +0000 (12:35 +0000)]
Fix incompatible func args warnings

9 years agoPrivate Webmin installation with our netatalk.wbm module
franklahm [Thu, 22 Oct 2009 08:36:30 +0000 (08:36 +0000)]
Private Webmin installation with our netatalk.wbm module

9 years agooops, a previous commit wrongly removed this
didg [Thu, 22 Oct 2009 07:40:50 +0000 (07:40 +0000)]
oops, a previous commit wrongly removed this

9 years agoremove SIGUSR2 (message) from the list of blocked signals when writing to the client...
didg [Thu, 22 Oct 2009 05:53:20 +0000 (05:53 +0000)]
remove SIGUSR2 (message) from the list of blocked signals when writing to the client, move readmessage outside the signal handler and exit if it can't seteuid back to the suser

9 years agoremove SIGHUP from the list of blocked signals when writing to the client
didg [Thu, 22 Oct 2009 05:19:29 +0000 (05:19 +0000)]
remove SIGHUP from the list of blocked signals when writing to the client

9 years agoremove obsolete DSI #ifdef DEBUG1 code
didg [Thu, 22 Oct 2009 05:09:56 +0000 (05:09 +0000)]
remove obsolete DSI #ifdef DEBUG1 code

9 years agoremove the need for blocking SIGALRM (still need to deal with attention volumes changed)
didg [Thu, 22 Oct 2009 04:59:50 +0000 (04:59 +0000)]
remove the need for blocking SIGALRM (still need to deal with attention volumes changed)

9 years agoConvert EA names from UTF8-MAC to volcharset with CONV_ESCAPEHEX
franklahm [Wed, 21 Oct 2009 17:41:45 +0000 (17:41 +0000)]
Convert EA names from UTF8-MAC to volcharset with CONV_ESCAPEHEX

9 years agoconst pointers
franklahm [Wed, 21 Oct 2009 16:16:30 +0000 (16:16 +0000)]
const pointers

9 years agofactorize lock test (fewer fcntl calls)
didg [Wed, 21 Oct 2009 13:28:17 +0000 (13:28 +0000)]
factorize lock test (fewer fcntl calls)

9 years agolock use F_GETLK for testing lock
didg [Wed, 21 Oct 2009 10:49:36 +0000 (10:49 +0000)]
lock use F_GETLK for testing lock

9 years agoad_lock rename user --> fork, this code is confusing enough
didg [Wed, 21 Oct 2009 07:33:50 +0000 (07:33 +0000)]
ad_lock rename user --> fork, this code is confusing enough

9 years agodon't reset timer each time afpd get a request
didg [Wed, 21 Oct 2009 07:03:08 +0000 (07:03 +0000)]
don't reset timer each time afpd get a request

9 years agoEA support with AppleDouble files
franklahm [Tue, 20 Oct 2009 14:17:59 +0000 (14:17 +0000)]
EA support with AppleDouble files

9 years agoImport NEWS for 2.0.1 to 2.0.5
franklahm [Tue, 20 Oct 2009 14:14:59 +0000 (14:14 +0000)]
Import NEWS for 2.0.1 to 2.0.5

9 years agoDefault and empty FinderInfo for dirs are not all 0 like files are
franklahm [Tue, 20 Oct 2009 09:53:42 +0000 (09:53 +0000)]
Default and empty FinderInfo for dirs are not all 0 like files are

9 years agoEA VFS: chmod for files and directorires
franklahm [Tue, 20 Oct 2009 08:38:41 +0000 (08:38 +0000)]
EA VFS: chmod for files and directorires

9 years ago'if filename is empty use syslog...' test that filename is not null first
didg [Tue, 20 Oct 2009 06:06:06 +0000 (06:06 +0000)]
'if filename is empty use syslog...' test that filename is not null first

9 years agodsi, remove never used ifdef TIMER_ON_WRITE
didg [Tue, 20 Oct 2009 04:53:19 +0000 (04:53 +0000)]
dsi, remove never used ifdef TIMER_ON_WRITE

9 years agodsi, remove never used ifdef TIMER_ON_READ
didg [Tue, 20 Oct 2009 04:31:41 +0000 (04:31 +0000)]
dsi, remove never used ifdef TIMER_ON_READ

9 years agologger, if filename is empty use syslog, make cnid_metad syslog work again
didg [Mon, 19 Oct 2009 13:08:00 +0000 (13:08 +0000)]
logger, if filename is empty use syslog, make cnid_metad syslog work again

9 years agoDont duplicate CFLAGS in AM_CFLAGS. Inspired by Jonas Smedegaard.
franklahm [Mon, 19 Oct 2009 12:27:26 +0000 (12:27 +0000)]
Dont duplicate CFLAGS in AM_CFLAGS. Inspired by Jonas Smedegaard.

9 years ago'logger, better buffer overrun tests' and of course I screwed it, off by one error...
didg [Mon, 19 Oct 2009 12:14:43 +0000 (12:14 +0000)]
'logger, better buffer overrun tests' and of course I screwed it, off by one error...

9 years agologger, test return code for seteuid
didg [Mon, 19 Oct 2009 11:53:30 +0000 (11:53 +0000)]
logger, test return code for seteuid

9 years agologger, better buffer overrun tests
didg [Mon, 19 Oct 2009 11:32:41 +0000 (11:32 +0000)]
logger, better buffer overrun tests

9 years agocheck the return value of nprintf functions
didg [Mon, 19 Oct 2009 11:15:45 +0000 (11:15 +0000)]
check the return value of nprintf functions

9 years agodsi, when reading functions' packet try to do it with one read call rather than two
didg [Mon, 19 Oct 2009 11:01:51 +0000 (11:01 +0000)]
dsi, when reading functions' packet try to do it with one read call rather than two

9 years agoafpd dbd, don't use select but setsockopt timeout
didg [Mon, 19 Oct 2009 11:00:28 +0000 (11:00 +0000)]
afpd dbd, don't use select but setsockopt timeout

9 years agologger use the same order for parameters in static functions than in public ones
didg [Mon, 19 Oct 2009 10:58:30 +0000 (10:58 +0000)]
logger use the same order for parameters in static functions than in public ones

9 years agoOops, 'more descriptive name fors LOG macro parameters' didn't compile
didg [Mon, 19 Oct 2009 10:41:40 +0000 (10:41 +0000)]
Oops, 'more descriptive name fors LOG macro parameters' didn't compile

9 years agomore descriptive name fors LOG macro parameters and missing void in log_close functio...
didg [Mon, 19 Oct 2009 10:33:14 +0000 (10:33 +0000)]
more descriptive name fors LOG macro parameters and missing void in log_close function declaration

9 years agologger don't generate the log string if there's nowhere to write it
didg [Mon, 19 Oct 2009 10:29:58 +0000 (10:29 +0000)]
logger don't generate the log string if there's nowhere to write it

9 years agoInclude NetBSD downstream patches. From HAT.
franklahm [Mon, 19 Oct 2009 10:13:28 +0000 (10:13 +0000)]
Include NetBSD downstream patches. From HAT.

9 years agoInclude NetBSD downstream patches. From HAT.
franklahm [Mon, 19 Oct 2009 10:01:07 +0000 (10:01 +0000)]
Include NetBSD downstream patches. From HAT.

9 years agoMerge from branch-2-0.
franklahm [Mon, 19 Oct 2009 09:51:10 +0000 (09:51 +0000)]
Merge from branch-2-0.

9 years agocnid dbd remove on time() syscall in the loop
didg [Mon, 19 Oct 2009 08:09:07 +0000 (08:09 +0000)]
cnid dbd remove on time() syscall in the loop

9 years agocnid dbd don't fall back to 1 sec timeout after an idle timer if active connections
didg [Mon, 19 Oct 2009 07:46:35 +0000 (07:46 +0000)]
cnid dbd don't fall back to 1 sec timeout after an idle timer if active connections

9 years agodo some sanity checks on dbd params read from config file
didg [Mon, 19 Oct 2009 05:38:22 +0000 (05:38 +0000)]
do some sanity checks on dbd params read from config file

9 years agouse min(512, number of FD in a select set) for per/db default number of connections
didg [Mon, 19 Oct 2009 05:02:35 +0000 (05:02 +0000)]
use min(512, number of FD in a select set) for per/db default number of connections

9 years agouse SO_RCVTIMEO rather than alarm in cnid_metad
didg [Sun, 18 Oct 2009 20:21:09 +0000 (20:21 +0000)]
use SO_RCVTIMEO rather than alarm in cnid_metad

9 years agouse pselect and no timeout in cnid_metad
didg [Sun, 18 Oct 2009 19:02:43 +0000 (19:02 +0000)]
use pselect and no timeout in cnid_metad

9 years agocnid_metad don't drop the slot if it's outside the respawn window, reuse it
didg [Sun, 18 Oct 2009 18:25:13 +0000 (18:25 +0000)]
cnid_metad don't drop the slot if it's outside the respawn window, reuse it

9 years agouse pselect and a better timeout in cnid_dbd
didg [Sun, 18 Oct 2009 17:50:13 +0000 (17:50 +0000)]
use pselect and a better timeout in cnid_dbd

9 years agoad_open reuse fstat data in header if it's valid
didg [Sun, 18 Oct 2009 06:16:05 +0000 (06:16 +0000)]
ad_open reuse fstat data in header if it's valid

9 years agopsf, remove unused static stuff
didg [Fri, 16 Oct 2009 01:50:50 +0000 (01:50 +0000)]
psf, remove  unused static stuff

9 years agopap, remove or #if 0 unused static stuff
didg [Fri, 16 Oct 2009 01:10:59 +0000 (01:10 +0000)]
pap, remove or #if 0 unused static stuff

9 years agocopy_file, check close(destination) return value for error
didg [Fri, 16 Oct 2009 00:57:12 +0000 (00:57 +0000)]
copy_file, check close(destination) return value for error

9 years agocopy_file if EINTR, cc -= write(...) was corrupting the buffer the size
didg [Fri, 16 Oct 2009 00:48:08 +0000 (00:48 +0000)]
copy_file if EINTR, cc -= write(...) was corrupting the buffer the size

9 years agocopy_file use the right type ssize_t for ccor cc < 0 is always false
didg [Fri, 16 Oct 2009 00:40:48 +0000 (00:40 +0000)]
copy_file use the right type ssize_t for ccor cc < 0 is always false

9 years agomissing include file
didg [Fri, 16 Oct 2009 00:15:53 +0000 (00:15 +0000)]
missing include file

9 years agodeclare more stuff static
didg [Fri, 16 Oct 2009 00:11:42 +0000 (00:11 +0000)]
declare more stuff static

9 years agoRemove vfs_adouble.c, it's moved to libatalk/vfs/vfs.c
franklahm [Thu, 15 Oct 2009 23:00:45 +0000 (23:00 +0000)]
Remove vfs_adouble.c, it's moved to libatalk/vfs/vfs.c

9 years agoEAs for dirs did not work
franklahm [Thu, 15 Oct 2009 15:35:05 +0000 (15:35 +0000)]
EAs for dirs did not work

9 years agoVFS EA: chown
franklahm [Thu, 15 Oct 2009 15:00:55 +0000 (15:00 +0000)]
VFS EA: chown