01/15] [VFS-FSAL FreeBSD port] Add platform dependent source/header files in preparation of FreeBSD port of VFS_FSAL.

These will be enabled for build in a separate commit.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
02/15] [VFS-FSAL FreeBSD port] Make sure we pick up appropriate platform dependent extended_type definitions.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
03/15] [VFS-FSAL FreeBSD port] Use portable version of strerror_r().

Using -D_GNU_SOURCE forces the use of GNU specific version of strerror_r()
which doesn't compile on FreeBSD platform.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
04/15] [VFS-FSAL FreeBSD port] Suppress strict compile warnings with default gcc on FreeBSD.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
05/15] [VFS-FSAL FreeBSD port] Avoid re-declaration of platform dependent "CACHE_LINE_SIZE".

On FreeBSD, CACHE_LINE_SIZE is defined in machine/param.h

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
06/15] [VFS-FSAL FreeBSD port] Enable building of platform dependent sources.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
07/15] [VFS-FSAL FreeBSD port] Suppress strict compile warning caused due to uninitialized variable.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
08/15] [VFS-FSAL FreeBSD port] Avoid re-definition of 'likely' & 'unlikely'.

While gcc (v4.6.3) on Linux remains silent, default gcc (v4.2.1) on FreeBSD-9 complains about this.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
09/15] [VFS-FSAL FreeBSD port] Make sure appropriate platform dependent headers get picked up for 'quota'.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
10/15] [VFS-FSAL FreeBSD port] Portability fixes for fridgethr.c

pthread_sigmask() is in <signal.h> on FreeBSD as opposed to <sys/signal.h> on Linux.

This change also $ifdef out some places where pthread_t is cast to integer.
Currently there is no portable way of doing this on FreeBSD.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
11/15] [VFS-FSAL FreeBSD port] Implementation of portable 'by-handle' fsal APIs.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
12/15] [VFS-FSAL FreeBSD port] Portability fixes for nfs_worker_thread.c

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
13/15] [VFS-FSAL FreeBSD port] Minor portability change for nfs_tools.c

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
14/15] [VFS-FSAL FreeBSD port] dlopen() flag RTLD_DEEPBIND is not defined on FreeBSD platform.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
15/15] [VFS-FSAL FreeBSD port] Provide a preferred path for krb5-config which
determines krb5 environment during build process.

This helps on a build system where default krb5 headers/libs are old and build
needs to link against specific version installed in custom location.

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Merge branch 'next' of https://github.com/nfs-ganesha/nfs-ganesha into next

Conflicts:
	src/FSAL/FSAL_VFS/handle.c
	src/include/os/freebsd/fsal_handle_syscalls.h
	src/include/os/linux/fsal_handle_syscalls.h

Signed-off-by: Sachin Bhamare <sbhamare@panasas.com>
Merge branch 'next', remote-tracking branch 'upstream/next' into next
Merge branch 'next' of https://github.com/nfs-ganesha/nfs-ganesha into next
Merge remote-tracking branch 'upstream/next' into next
[FreeBSD-port] Add infrastructure for providing open_memstream() API.

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