]> arthur.barton.de Git - netatalk.git/log
netatalk.git
11 years agoFunction tracker_to_unix_path() is static
Frank Lahm [Wed, 31 Oct 2012 09:52:07 +0000 (10:52 +0100)]
Function tracker_to_unix_path() is static

11 years agoFix file indexing
Frank Lahm [Tue, 30 Oct 2012 23:04:33 +0000 (00:04 +0100)]
Fix file indexing

Initialize Tracker miner manager in module initialization and wrap
miner calls within become_root()/unbecome_root().

11 years agostp2
Frank Lahm [Tue, 30 Oct 2012 18:32:34 +0000 (19:32 +0100)]
stp2

11 years agoFix make distcheck error
Frank Lahm [Tue, 30 Oct 2012 18:32:07 +0000 (19:32 +0100)]
Fix make distcheck error

11 years agoFix array initializers
Frank Lahm [Tue, 30 Oct 2012 18:16:05 +0000 (19:16 +0100)]
Fix array initializers

11 years agostp1
Frank Lahm [Tue, 30 Oct 2012 17:50:40 +0000 (18:50 +0100)]
stp1

11 years agoFix _device-info service type registered with dns-sd API
Frank Lahm [Tue, 30 Oct 2012 10:49:40 +0000 (11:49 +0100)]
Fix _device-info service type registered with dns-sd API

11 years agoFix typo
Frank Lahm [Wed, 24 Oct 2012 18:08:32 +0000 (20:08 +0200)]
Fix typo

11 years ago--with-libevent-header|lib requires a path
Frank Lahm [Wed, 24 Oct 2012 10:18:43 +0000 (12:18 +0200)]
--with-libevent-header|lib requires a path

Throw an error if any either configure option is passed without a path.

Add libevent to library configure summary.

11 years agoSet Tracker index directories on startup as all our volumes
Frank Lahm [Wed, 24 Oct 2012 10:14:19 +0000 (12:14 +0200)]
Set Tracker index directories on startup as all our volumes

11 years agoFix searching from OS X cmdline
Frank Lahm [Wed, 24 Oct 2012 07:38:31 +0000 (09:38 +0200)]
Fix searching from OS X cmdline

Searching from OS X cmdline with `mdfind` will generate queries with
an empty query attribute array. In that case we must add a nil element
for every query match to the filemeta array.

Also fixed:
* marshalling of empty CNID arrays and filemeta
* return 0x23 instead of 0 when returning a non empty result list, this
  is was traces of an OS X AFP server show

11 years agoInitialize Spotlight from session child
Frank Lahm [Tue, 23 Oct 2012 19:59:10 +0000 (21:59 +0200)]
Initialize Spotlight from session child

Spotlight initialisation must be perfomed in the session childs.
Wrap all Tracker calls between become_root()/unbecome_root().
Force bus SPARQL backend, as direct connections cause problems
with some SPARQL queries.

11 years agoChange dbus path option name to 'dbus daemon path' and add TRACKER_PREFIX define
Frank Lahm [Tue, 23 Oct 2012 19:02:47 +0000 (21:02 +0200)]
Change dbus path option name to 'dbus daemon path' and add TRACKER_PREFIX define

11 years agoAdd extmap.conf to EXTRA_DIST so that it gets picked up by make dist
Frank Lahm [Thu, 18 Oct 2012 18:00:27 +0000 (20:00 +0200)]
Add extmap.conf to EXTRA_DIST so that it gets picked up by make dist

11 years agoMerge pull request #4 from hat001/develop
franklahm [Thu, 18 Oct 2012 16:39:03 +0000 (09:39 -0700)]
Merge pull request #4 from hat001/develop

afpd -v: show path of extmap.conf

11 years agoafpd -v: show path of extmap.conf
HAT [Thu, 18 Oct 2012 15:24:26 +0000 (00:24 +0900)]
afpd -v: show path of extmap.conf

11 years agoRemove gettok.c from test afpd
Frank Lahm [Thu, 18 Oct 2012 10:38:25 +0000 (12:38 +0200)]
Remove gettok.c from test afpd

11 years agoGlobal boolean option "spotlight"
Frank Lahm [Wed, 17 Oct 2012 21:38:07 +0000 (23:38 +0200)]
Global boolean option "spotlight"

Add a global know to make Spotlight support a configurable option.
Defaults to disabled.

11 years agoSupport for FTS and filename search
Frank Lahm [Wed, 17 Oct 2012 21:06:21 +0000 (23:06 +0200)]
Support for FTS and filename search

Map * and kMDItemTextContent to SPARQL FTS, map kMDItemDisplayName to SPARQL
nfo:fileName. The SPARQL query for the latter doesn't work from afpd, but
it does work with tracker-sparql.

11 years agoBound checking when marshalling SL query results
Frank Lahm [Wed, 17 Oct 2012 12:18:59 +0000 (14:18 +0200)]
Bound checking when marshalling SL query results

11 years agoIncrease DSI reply buffer size to 65k
Frank Lahm [Wed, 17 Oct 2012 12:18:26 +0000 (14:18 +0200)]
Increase DSI reply buffer size to 65k

11 years agoDefault extension mapping filename ought to be extmap.conf
Frank Lahm [Wed, 17 Oct 2012 08:15:28 +0000 (10:15 +0200)]
Default extension mapping filename ought to be extmap.conf

Also changed: an error reading the extension mappings shouldn't be
treates as a fatal error.

11 years agoAdd tracker_miner_manager and try to manually index new files
Frank Lahm [Tue, 16 Oct 2012 23:08:25 +0000 (01:08 +0200)]
Add tracker_miner_manager and try to manually index new files

Doesn't work, hangs in tracker_miner_manager_new_full() for an unknown
reason.

11 years agoFall back to CatSearch if Spotlight module can't be loaded
Frank Lahm [Tue, 16 Oct 2012 20:04:55 +0000 (22:04 +0200)]
Fall back to CatSearch if Spotlight module can't be loaded

11 years agoAdd state checks
Frank Lahm [Tue, 16 Oct 2012 18:01:10 +0000 (20:01 +0200)]
Add state checks

11 years agoUse g_object_unref
Frank Lahm [Mon, 15 Oct 2012 17:05:11 +0000 (19:05 +0200)]
Use g_object_unref

11 years agoMerge pull request #3 from hat001/develop
franklahm [Tue, 16 Oct 2012 14:32:56 +0000 (07:32 -0700)]
Merge pull request #3 from hat001/develop

Develop

11 years agoUse glib funcs for getting the path for an uri
Frank Lahm [Tue, 16 Oct 2012 14:31:19 +0000 (16:31 +0200)]
Use glib funcs for getting the path for an uri

11 years agoMerge branch 'develop' of git://github.com/franklahm/Netatalk into develop
HAT [Tue, 16 Oct 2012 13:56:33 +0000 (22:56 +0900)]
Merge branch 'develop' of git://github.com/franklahm/Netatalk into develop

11 years agoapple_dump: use open2(), from Oichinokata
HAT [Tue, 16 Oct 2012 13:55:39 +0000 (22:55 +0900)]
apple_dump: use open2(), from Oichinokata

11 years agoAppend /
Frank Lahm [Mon, 15 Oct 2012 18:11:57 +0000 (20:11 +0200)]
Append /

11 years agoRemove unused line
Frank Lahm [Mon, 15 Oct 2012 17:06:23 +0000 (19:06 +0200)]
Remove unused line

11 years agoModify SPARQL query
Frank Lahm [Mon, 15 Oct 2012 17:05:11 +0000 (19:05 +0200)]
Modify SPARQL query

11 years agoFix CNID marshalling
Frank Lahm [Mon, 15 Oct 2012 13:20:48 +0000 (15:20 +0200)]
Fix CNID marshalling

11 years agoReintroduce file extension type/creator mapping
Frank Lahm [Sun, 14 Oct 2012 12:53:51 +0000 (14:53 +0200)]
Reintroduce file extension type/creator mapping

11 years agoMove (unused) file gettok.c to libatalk
Frank Lahm [Sun, 14 Oct 2012 10:05:12 +0000 (12:05 +0200)]
Move (unused) file gettok.c to libatalk

11 years agoFix: add a '/' between basedir and subdir in the path for home volumes
Frank Lahm [Thu, 11 Oct 2012 14:42:03 +0000 (16:42 +0200)]
Fix: add a '/' between basedir and subdir in the path for home volumes

11 years agoFix a bug where Mac OS X ZIP archives can't be extracted on Netatalk shares
Frank Lahm [Tue, 9 Oct 2012 16:23:57 +0000 (18:23 +0200)]
Fix a bug where Mac OS X ZIP archives can't be extracted on Netatalk shares

Mac OS X ZIP archives may contain split AppleDouble forks named "._XXX".
The client needs to be able to fully access these files but we currently
prevent access to any valid AppleDouble file whose name starts with "._".
In order to distinguish our own ._ files from the one created by OS X,
we look at the filler bytes: luckily OS X stores a string "Mac OS X" there
which can be used to detect them.

11 years agoFix check for nested and duplicated volume paths
Frank Lahm [Thu, 11 Oct 2012 11:02:55 +0000 (13:02 +0200)]
Fix check for nested and duplicated volume paths

The previous modification was based on ensuring the volume paths are
'/' terminated. That allowed for a simple and quick implementation of
the neccessary tests. Unfortunately that completely broke the whole
directory machinery and cache.
This patch reverts the previous change and tries another simple
implementation that avoid copying the paths.

11 years agoFix memory leak and use EC_FAIL instead of returning directly
Frank Lahm [Wed, 10 Oct 2012 14:40:30 +0000 (16:40 +0200)]
Fix memory leak and use EC_FAIL instead of returning directly

11 years agoFix memory leak and use descriptive variable names
Frank Lahm [Wed, 10 Oct 2012 14:30:06 +0000 (16:30 +0200)]
Fix memory leak and use descriptive variable names

11 years agoEnsure the volume path is '/' terminated and allow nested volumes
Frank Lahm [Wed, 10 Oct 2012 13:34:34 +0000 (15:34 +0200)]
Ensure the volume path is '/' terminated and allow nested volumes

The previos change to the way checking for duplicate and nested paths only
works if the path is terminated with a '/'.
Allow nested volumes. This was working in 2.2 and can be used eg for sharing
a ZFS snapshot directory of a volume. Afaict it only works with sane AFP
semantics by adding 'cnid sheme = tdb' to the nested volume which also
makes it read-only and by adding the name of the nested directory to
the veto name list.

11 years agoBump ABI
Frank Lahm [Wed, 10 Oct 2012 12:54:16 +0000 (14:54 +0200)]
Bump ABI

11 years agoAdd ABI file
Frank Lahm [Wed, 10 Oct 2012 12:52:25 +0000 (14:52 +0200)]
Add ABI file

11 years agoAvoid excessive path copying when checking for duplicate or nested paths
Frank Lahm [Wed, 10 Oct 2012 12:42:38 +0000 (14:42 +0200)]
Avoid excessive path copying when checking for duplicate or nested paths

11 years agoMove realpath_safe() to libatalk/util/unix.c and make it a global function
Frank Lahm [Wed, 10 Oct 2012 12:13:31 +0000 (14:13 +0200)]
Move realpath_safe() to libatalk/util/unix.c and make it a global function

11 years agoRemove unneccessary call to getcwd()
Frank Lahm [Wed, 10 Oct 2012 11:51:34 +0000 (13:51 +0200)]
Remove unneccessary call to getcwd()

getcwd() was called after a chdir(vol->v_path) in order to copy
the path to vol->v_path. But as v_path is now already set in netatalk_conf.c
when parsing the volumes config, this is not neccessary anymore.

11 years agoignore duplicated or nested volume path
HAT [Thu, 4 Oct 2012 13:32:13 +0000 (22:32 +0900)]
ignore duplicated or nested volume path

11 years agoremove realpath() in afp_openvol()
HAT [Thu, 4 Oct 2012 13:30:33 +0000 (22:30 +0900)]
remove realpath() in afp_openvol()
because it has already been done, when parsing afp.conf

11 years agofix: basedir regex symlink problem
HAT [Wed, 3 Oct 2012 14:23:55 +0000 (23:23 +0900)]
fix: basedir regex symlink problem

11 years agonew function realpath_safe()
HAT [Wed, 3 Oct 2012 11:08:45 +0000 (20:08 +0900)]
new function realpath_safe()

11 years agodo realpath() immediately after parsing "path" parameter
HAT [Tue, 2 Oct 2012 17:05:54 +0000 (02:05 +0900)]
do realpath() immediately after parsing "path" parameter
in order to cope with symlink

11 years agoUse a linked list for the SL queries
Frank Lahm [Fri, 28 Sep 2012 21:29:49 +0000 (23:29 +0200)]
Use a linked list for the SL queries

11 years agoFix error handling and freeing of allocated ressources
Frank Lahm [Fri, 28 Sep 2012 14:58:58 +0000 (16:58 +0200)]
Fix error handling and freeing of allocated ressources

11 years agoFix EC macro
Frank Lahm [Fri, 28 Sep 2012 14:56:27 +0000 (16:56 +0200)]
Fix EC macro

11 years agoMerge remote branch 'sf/develop' into develop
Frank Lahm [Fri, 28 Sep 2012 09:24:07 +0000 (11:24 +0200)]
Merge remote branch 'sf/develop' into develop

11 years ago3.0.1dev
Frank Lahm [Fri, 28 Sep 2012 09:20:18 +0000 (11:20 +0200)]
3.0.1dev

11 years ago3.0.1 version and ABI
Frank Lahm [Fri, 28 Sep 2012 09:11:02 +0000 (11:11 +0200)]
3.0.1 version and ABI

11 years agoapple_dump: small fix
HAT [Wed, 26 Sep 2012 13:48:48 +0000 (22:48 +0900)]
apple_dump: small fix

11 years agoAdd close RPC call
Frank Lahm [Wed, 26 Sep 2012 02:00:04 +0000 (04:00 +0200)]
Add close RPC call

11 years agoSet cursor handle to NULL after releasing it
Frank Lahm [Tue, 25 Sep 2012 23:31:01 +0000 (01:31 +0200)]
Set cursor handle to NULL after releasing it

11 years agoRemove accesive logging
Frank Lahm [Tue, 25 Sep 2012 23:30:11 +0000 (01:30 +0200)]
Remove accesive logging

11 years agoFixes
Frank Lahm [Tue, 25 Sep 2012 21:43:17 +0000 (23:43 +0200)]
Fixes

11 years agoAdd missing call to sl_pack_filemeta
Frank Lahm [Tue, 25 Sep 2012 20:48:39 +0000 (22:48 +0200)]
Add missing call to sl_pack_filemeta

11 years agoFix dalloc_add() calls, change string handling in dalloc
Frank Lahm [Tue, 25 Sep 2012 20:41:39 +0000 (22:41 +0200)]
Fix dalloc_add() calls, change string handling in dalloc

11 years agoRename dalloc_add to dalloc_add_copy
Frank Lahm [Tue, 25 Sep 2012 18:48:55 +0000 (20:48 +0200)]
Rename dalloc_add to dalloc_add_copy

11 years agoWork on fixing filemeta handling
Frank Lahm [Tue, 25 Sep 2012 09:34:44 +0000 (11:34 +0200)]
Work on fixing filemeta handling

11 years agoAdd another spotlight packet
Frank Lahm [Tue, 25 Sep 2012 09:34:19 +0000 (11:34 +0200)]
Add another spotlight packet

11 years agoFix CNID marshalling
Frank Lahm [Thu, 20 Sep 2012 15:01:52 +0000 (17:01 +0200)]
Fix CNID marshalling

11 years agoReturn query results, CNIDs is working, FileMeta marshalling is missing
Frank Lahm [Thu, 20 Sep 2012 14:52:15 +0000 (16:52 +0200)]
Return query results, CNIDs is working, FileMeta marshalling is missing

11 years agoAdd function dalloc_size
Frank Lahm [Thu, 20 Sep 2012 14:51:20 +0000 (16:51 +0200)]
Add function dalloc_size

11 years agoMove function cnid_for_path to CNID utility libatalk file
Frank Lahm [Thu, 20 Sep 2012 12:13:31 +0000 (14:13 +0200)]
Move function cnid_for_path to CNID utility libatalk file

11 years agoDispatch queries to Tracker and get results
Frank Lahm [Thu, 20 Sep 2012 09:06:00 +0000 (11:06 +0200)]
Dispatch queries to Tracker and get results

11 years agoAdd non const LVALS macro
Frank Lahm [Thu, 20 Sep 2012 09:04:51 +0000 (11:04 +0200)]
Add non const LVALS macro

11 years agogentoo initscript from portage netatalk.init,v 1.1 2012/09/10 14:28:03 jlec
HAT [Wed, 19 Sep 2012 13:05:56 +0000 (22:05 +0900)]
gentoo initscript from portage netatalk.init,v 1.1 2012/09/10 14:28:03 jlec
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-fs/netatalk/files/netatalk.init?revision=1.1

11 years agoImport from XML
Frank Lahm [Fri, 14 Sep 2012 15:02:25 +0000 (17:02 +0200)]
Import from XML

11 years agoImport from XML
Frank Lahm [Fri, 14 Sep 2012 12:55:48 +0000 (14:55 +0200)]
Import from XML

11 years agoReplace relevant direct seteuid() calls with calls to (un)become_root()
Frank Lahm [Fri, 31 Aug 2012 09:36:08 +0000 (11:36 +0200)]
Replace relevant direct seteuid() calls with calls to (un)become_root()

11 years agolibevent configure args to pick up installed version
Frank Lahm [Mon, 27 Aug 2012 08:27:50 +0000 (10:27 +0200)]
libevent configure args to pick up installed version

Remove configure argument --disable-libevent.
Add configure args --with-libevent-header|lib.

11 years agoRemove inet_aton from compatibility library
Frank Lahm [Mon, 27 Aug 2012 07:42:42 +0000 (09:42 +0200)]
Remove inet_aton from compatibility library

Fixes bug 3531813

inet_aton isn't used at all in the codebase

11 years agoapple_dump: small fix
HAT [Fri, 24 Aug 2012 16:42:09 +0000 (01:42 +0900)]
apple_dump: small fix

11 years agosmall fix of configure summary
HAT [Thu, 23 Aug 2012 14:24:05 +0000 (23:24 +0900)]
small fix of configure summary
Samba sharemode interop is hidden
init style was not easy to notice

11 years agoFix data corruption bug
Frank Lahm [Thu, 23 Aug 2012 10:20:00 +0000 (12:20 +0200)]
Fix data corruption bug

Received data from the client was written to the read-ahead buffer
from dsi_peek() which caused data corrution.
Fix is: change the DSI command buffer from static 8192 bytes to
an allocated buffer of size DSI quantum and use this buffer in
dsi_write/write_fork. That just requires dsi_writeinit to use
memmove instead of memcpy, because now we use the same buffer.

11 years agoUpdate NEWS
Frank Lahm [Thu, 23 Aug 2012 08:18:55 +0000 (10:18 +0200)]
Update NEWS

11 years agoRestructure fork opening, fix adouble refcounting
Frank Lahm [Thu, 23 Aug 2012 08:06:04 +0000 (10:06 +0200)]
Restructure fork opening, fix adouble refcounting

Fixes Bug ID 3559783

The bug is caused by passing ADFLAGS_NOHF to ad_open() when opening a
files data fork. For files without metadata then ad_open() doesn't
return an error for the ADFLAGS_HF request to open the metadata. As a
result of the successfull ad_open return AFPFORK_META is set in the
fork struct, which implies the meta is open. Later afp_close looked at
that flag and added ADFLAGS_HF to ad_close flags, resulting in a
refcount decement of 2 although the ad_open only incremented by 1. Eg
opening such a file twice, then closing once, close the fork. Later
operations on the other still open fork fail.

afp_openfork opens the fork and metadata in one call to ad_open which
lead to an insane if/else and error checking code path.  I've
seperated this in two distincs calls to ad_open(): the first opens the
fork (data or ressource), the second opens the metadata. This gives a
cleaner code path but it required a subtle modifications to the way we
refcount and flag forks as open inside ad_open: currently we use the
fd and it's recount but these do not differente between open data and
metadata in the case of adouble:ea as both use the data fork handle,
fd and it's refcount.  Now we add real refcounting for the forks
different from the recount on the file fd by adding three refcounting
variables to struct.adouble and change the AD_XXX_OPEN macros to use
these.

Added test-suite testcases 3, 4 and 7.

11 years agoFix merge errors
Frank Lahm [Sat, 18 Aug 2012 10:59:03 +0000 (12:59 +0200)]
Fix merge errors

11 years agoFix merge error
Frank Lahm [Sat, 18 Aug 2012 06:05:02 +0000 (08:05 +0200)]
Fix merge error

11 years agoMerge remote branch 'sf/product-2-2' into develop
Frank Lahm [Fri, 17 Aug 2012 12:21:52 +0000 (14:21 +0200)]
Merge remote branch 'sf/product-2-2' into develop

Conflicts:
etc/afpd/afp_dsi.c
libatalk/dsi/dsi_stream.c

11 years agoUpdate NEWS
Frank Lahm [Fri, 17 Aug 2012 11:45:18 +0000 (13:45 +0200)]
Update NEWS

11 years agoFix macro
Frank Lahm [Wed, 15 Aug 2012 18:41:47 +0000 (20:41 +0200)]
Fix macro

11 years agoStart working on replying queries, add struct for storing query and a queue
Frank Lahm [Wed, 15 Aug 2012 18:01:38 +0000 (20:01 +0200)]
Start working on replying queries, add struct for storing query and a queue

11 years agoFix conditional Spotlight module compilation
Frank Lahm [Tue, 17 Jul 2012 17:32:23 +0000 (19:32 +0200)]
Fix conditional Spotlight module compilation

11 years agoStart DBUS after the signal mask has been reset as dbus-daemon doesn't seem to be...
Frank Lahm [Mon, 16 Jul 2012 19:57:52 +0000 (21:57 +0200)]
Start DBUS after the signal mask has been reset as dbus-daemon doesn't seem to be doing it properly itself

11 years agoStart a DBUS session daemon from netatalk master process
Frank Lahm [Mon, 16 Jul 2012 17:51:23 +0000 (19:51 +0200)]
Start a DBUS session daemon from netatalk master process

11 years agoAdd configure option for Tracker
Frank Lahm [Thu, 5 Apr 2012 10:17:01 +0000 (12:17 +0200)]
Add configure option for Tracker

11 years agolibtracker-sparql
Frank Lahm [Thu, 5 Apr 2012 08:17:54 +0000 (10:17 +0200)]
libtracker-sparql

11 years agoSpotlight module
Frank Lahm [Mon, 16 Jul 2012 08:51:50 +0000 (10:51 +0200)]
Spotlight module

11 years agoSpotlight module
Frank Lahm [Wed, 4 Jul 2012 13:36:08 +0000 (15:36 +0200)]
Spotlight module

11 years agoFix string length calculation for empty strings
Frank Lahm [Tue, 3 Jul 2012 10:15:19 +0000 (12:15 +0200)]
Fix string length calculation for empty strings

11 years agoSome refactoring
Frank Lahm [Mon, 2 Jul 2012 15:13:33 +0000 (17:13 +0200)]
Some refactoring