Fix cut-paste bug in clean_credentials (coverity reported)

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Merge remote-tracking branch 'malahal/pull-request' into dev-14-merge
V2.1-dev_14

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add statfs support for any directory below the mount point.
Add an option to let the FSAL handle reclaims during grace period.
Add libblkid and libuuid

These will be used to get unique fsid for exported file systems

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
GPFS_FSAL Set exec flag on close.
Global export defaults must not indicate FSID was set

Also cleanup some logging.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Use fsid from file system if not configured for export

Also fix posix2fsal_fsid to convert dev_t minor and major to fsid minor
and major.

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Add open_dir_by_path_walk for safe implementation of lookup_path

FSAL lookup_path implementations (which are called to get the root
handle of an export at init time AND for v3 mounts of a sub-directory of
the export) are vulnerable to two attacks:

- First, if a symlink is in the path other than as the last element, the
old code does not reject the lookup.

- Second, and worse, the .. entry is not looked for...

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
pass correct buffer size to getpwnam and getpwuid

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Add CONF_*_TOKEN macros for scalar enum processing

log components needs array indexing too

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Replace use of tab_log_flag array with logfields struct

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

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add new log facility api

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Add new config infrastructure to log_functions.c

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Update init_logging to use new log facility api

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Rework GPFS logging setup to new api

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Remove obsolete log functions data structures and dead code

SNMP was still hanging around...

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Replace struct log_facility arg for logging functions and replace by scalars

Unecessarily exposes everything else in the struct.

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