Avoid recursing from LRU on reclaims.

The LRU reclaim path should be optimized for speed, not aggressive
reclaims, at least by default.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
CMake: a few conditions to keep portability with cmake 2.6 (used with RHEL6.1)
Log/DBUS: do not include D-Bus header when D-Bus support is not wanted.
CMAKE: restoring libcap detection + restoring "disable FSAL_ZFS if libzfswrap is not here"
CMake: if libcap is successfully detected, link ganesha.nfsd with it.
Capabilities : now printing newly set capabilities (getcaps -like) just after they are set

NOTE: for proper quota management, capabilities have to be set by capget/capset calls from libcap
FSAL_PROXY: now using libntirpc instead of RPC within libC.
FSAL_PROXY: adding missing initialization for attributes structure in pxy_make_object()
Merge remote-tracking branch 'linuxbox2/next' into merge_next
Add DBUS defines for rhel6.

(cherry picked from commit b59ad6bf1ed422a621e8ab9ea5f758097ab94c66)
Signed-off-by: Jim Lieb <jlieb@panasas.com>
Missing ifdef block around 9p function.

(cherry picked from commit 8e0953c242de53ef1fff6dbc01f2846a1a280cf0)
Signed-off-by: Jim Lieb <jlieb@panasas.com>
Fix log manager returns

Turns out there are yet more layers of this turducken to peel.
Make return values pure python types...

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add log settings dialog to ganeshactl

You can now set log properties (mainly component log levels)
via a dialog box under Manage->Log Settings

Caveats: ganeshactl does segfault on File->Exit if you have
used the log settings dialog. The dialog uses a combobox which
is a little clunky.

This is a reference implementation of the low level classes, not a
polished GUI app.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Fix reload.py to import from Ganesha.admin

Signed-off-by: Jim Lieb <jlieb@panasas.com>
CID#18489 Resource leak
CID#23187 Double close
MT-SAFE iteration over LRU L1 (lru_thread).

The unique instance of itertion over any qlane's L1 queue
can be made MT-safe by ensuring that invalidating operations
(only delete, due to queue semantics) also update the
the iteration.

Mark qlanes as active when iteration is in progress, and
update lane iterators iif active.

Fix an apparent reference accounting problem--lru refcnt was
not elevated over lru_thread migration of entries to L2.

Remove redundant while loop checking qlength and per-lane work,
as these are checked in the iteration.

Reorder operations in L1->L2.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Make sure directory is updated correctly.
ganesha leaves dangling FSAL locks when file locked via NFSv3 and NFSv4

Signed-off-by: Rick Mesta <rmesta@us.ibm.com>
Add reindent script and readme

This is for the great reformatting.  The reindenture script will
reindent everything under a given directory.

Jim Lieb also wants us to follow kernel practice and clean things up as
per checkpatch, so there are directions for how to invoke it in the
README.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>