Add layout statistics counters

Change server_stats_nfsv4_op_done and
server_stats_compound_done to pass status rather than success
so we can capture delays...

Note: recalls are allocated but not yet implemented in the
upcall side.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add DBUS methods for reporting v4.1 layout statistics

Signed-off-by: Jim Lieb <jlieb@panasas.com>
[FreeBSD] scandir() callback is non-const on FreeBSD platform.

This commit fixes following strict compile build breakage :
src/RPCAL/gssd/krb5_util.c: In function 'gssd_find_existing_krb5_ccache':
src/RPCAL/gssd/krb5_util.c:194: warning: passing argument 3 of 'scandir' from incompatible pointer type

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
[FreeBSD] re-organize the code to properly expose memstream APIs via header
files.

This commit fixes the strict compile build breakage on freebsd7.2 platform :
dbus_server.c: In function 'dbus_reply_introspection':
dbus_server.c:212: warning: implicit declaration of function 'open_memstream'
dbus_server.c:212: warning: assignment makes pointer from integer without a cast

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Yet another strict compile fix for 'value computed is not used' warnings.

This commit fixes following strict compile build breakage :
export_mgr.c: In function 'atomic_store_voidptr':
export_mgr.c:147: warning: value computed is not used

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
[FreeBSD] Fix miscellaneous strict compile errors in freebsd/subr.c

This commit fixes following strict compile errors :
freebsd/subr.c: In function 'vfs_readents':
freebsd/subr.c:47: warning: implicit declaration of function 'getdirentries'
freebsd/subr.c: In function 'vfs_utimesat':
freebsd/subr.c:100: warning: implicit declaration of function 'futimesat'
freebsd/subr.c: In function 'vfs_utimes':
freebsd/subr.c:117: warning: implicit declaration of function 'futimes'
freebsd/subr.c: In function 'setuser':
freebsd/subr.c:125: warning: implicit declaration of function 'syscall'

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
[FreeBSD] Fix strict compile build breakage in fsal_handle_syscalls.h

This commit fixes following strict compile warnings/errors:
fsal_handle_syscalls.h: In function 'vfs_link_by_handle':
fsal_handle_syscalls.h:163: warning: implicit declaration of function 'posix2fsal_error'

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
[FreeBSD] Fixes for misc strict compile build breakages on freebsd7.2

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Fix grace-period and lease-time.
(cherry picked from commit bded17079b5eb8e8b0dbee7726b38ed3ce96a2d6)

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Fix lock to open file for write when lock is write lock.
(cherry picked from commit 3de2e17465d92c001084b3a63b0531bd6cfea632)

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge remote-tracking branch 'linuxbox2/next' into merge_next

dev_28

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge remote-tracking branch 'sachin/next' into merge_next

Conflicts:
	src/FSAL/FSAL_VFS/export.c

Moved decl to top and added ifdef LINUX around it

Signed-off-by: Jim Lieb <jlieb@panasas.com>