Fix documentation of extract_handle

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Add -rdynamic linker option which helps shared libraries to find in-core
symbols on FreeBSD platform.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>

Conflicts:

	src/CMakeLists.txt
Change dlopen() flags to be [RTLD_NOW|RTLD_LOCAL] on FreeBSD platform.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Fix the declaration for getmntent() call in FreeBSD platform code.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Further tweaking of struct dqblk definition so that related code builds
correctly on FreeBSD versions >= 7.2

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Fix declarations of couple xattr calls.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Add at-syscall layer for FreeBSD-7.2 platform code.

Note that FreeBSD-7.2 kernel does not implement at-syscalls (They were first
introduced in FreeBSD-8). Panasas FreeBSD-7.2 kernel includes the backported
at-syscall implementation. This commit enbales Ganesha to be able to run on
Panasas version of FreeBSD-7.2 kernel.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Fix segv on uninitialized request timer

timer was initialized after dup processing which, by the way,
tried to do a timer stop...

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Resolve extended_types.h conflicts

Rework of Sachin's original.  Leaves extended_types.h where everybody
expects it.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add os specific handle management functions.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Link 'gos' library (platform dependent code) while creating libfsalvfs.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Reindent Ceph FSAL as per Boaz's suggestion

Nobody else is hacking on it, there isn't anything to foreport from
1.5, and it will make our future work on it less of a hassle.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Change readlink method in FSAL API

As discussed in the conference call of 10 January 2013, change the
FSAL readlink method to allocate the link buffer.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Acked-by: Jim Lieb <jlieb@panasas.com>
Reviewed-by: Boaz Harrosh <bharrosh@panasas.com>
Change FSAL VFS symlink refresh

As discussed with Boaz, remove the use of a stack buffer and
associated redundant copy.

TODO: These FSALs currently use a 1K stack buffer in readlink and
      should receive a fix similar to this one:

      FSAL_POSIX
      FSAL_LUSTRE
      FSAL_ZFS

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Reviewed-by: Boaz Harrosh <bharrosh@panasas.com>
Fix doxygen file comment in nfs_admin_thread.c

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Fix reversed test in nfs4_op_readlink

This comes from switching the consequent and alternative without
changing the predicate.  I am ashamed.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
LRU queue lanes have partitions (lexical change only).

The LRU queue isn't subject to fragmentation, and the "fragments"
{X lanes} partition the queue, so call these partitions.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
LRU cleanup queue.

Defer cache entry cleanup processing to the LRU thread.
Define cleanup queue and implement cache_inode_lru_cleanup_push.
Implement cleanup processing in LRU thread.  Use new cleanup
mechanism in cache_inode_kill_entry.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Remove pthread_wrlock_trylock in state_wipe_file.

The function is now called only from the LRU thread, in
deferred cleanup processing.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Streamline atomics in cache_inode_lru.

The code holds lru->mtx (modulo the one special case) in all
the paths where lru->refcount is inc/decremented, so we
should just use ordinary increment or decrement.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>