Handling of NFS4ERR_OP_NOT_IN_SESSION and NFS4ERR_NOT_ONLY_OP errors.

Operations  other than SEQUENCE, BIND_CONN_TO_SESSION, EXCHANGE_ID,
CREATE_SESSION, and DESTROY_SESSION, MUST NOT appear as the first
operation in a COMPOUND.  Such operations MUST yield the error
NFS4ERR_OP_NOT_IN_SESSION if they do appear at the start of a COMPOUND.

If any of CREATE_SESSION, EXCHANGE_ID, DESTROY_SESSION and DESTROY_CLIENTID
are sent without a preceding SEQUENCE op, then it should be the only op in the COMPOUND.
Server must enforce utf8 encoding for the compound 'tag' argument.
Compound request with an invalid 'tag' should be replied with NFS4ERR_INVAL
Fix problems in DESTROY_SESSSION and DESTROY_CLIENTID
DESTROY_SESSION can only be invoked on a connection associated with the session
DESTROY_CLIENTID on a non-existent CLIENTID should return STALE_CLIENTID
Use display buffer in log_functions

Ported from 1.5.x:
	314ffb7990694f588112d2c74e45887b1b680b53

Signed-off-by: Frank Filz <ffilz@us.ibm.com>

Conflicts:
	src/Log/log_functions.c
	src/include/log.h

Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>
Trim thread name length

Ported from 1.5:
	4d3c2416351e482bca4a0b646be592034c42b876

Signed-off-by: Frank Filz <ffilz@us.ibm.com>

Conflicts:
	src/Cache_inode/cache_inode_lru.c
	src/FSAL/FSAL_GPFS/fsal_up.c
	src/Log/log_functions.c
	src/MainNFSD/nfs_reaper_thread.c
	src/MainNFSD/nfs_recovery_thread.c
	src/MainNFSD/nfs_rpc_dispatcher_thread.c
	src/MainNFSD/nfs_stat_exporter_thread.c
	src/MainNFSD/nfs_worker_thread.c
	src/SAL/state_async.c
	src/include/log.h

Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>
Deprecate log config in component config stanzas

Ported from 1.5:
	6e33d163b52abcafa4a510734f2d31f517c16d70

Signed-off-by: Frank Filz <ffilz@us.ibm.com>

Conflicts:
	src/Cache_inode/cache_inode_read_conf.c
	src/FSAL/FSAL_HPSS/fsal_tools.c
	src/FSAL/FSAL_TEMPLATE/fsal_tools.c
	src/FSAL/common_methods.c
	src/MFSL/MFSL_ASYNC/mfsl_async_read_conf.c

Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>
Add some Doxygen comments

Ported from 1.5:
	c13a01314786a5e3856f16d71945d4a601df4a79

Signed-off-by: Frank Filz <ffilz@us.ibm.com>
Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>
Change from log dest per component to global log dest

Which allows us to have multiple log destinations with a maximum log
level for each (so errors can go to syslog while debug goes to a file).

Also add reload of LOG config on SIGHUP.

Ported from 1.5:
	6e6f2dd1c6203c89b941f73dcc9e5bd3d012c363

Signed-off-by: Frank Filz <ffilz@us.ibm.com>

Conflicts:

	src/Log/log_functions.c

Conflicts:

	src/Log/log_functions.c

Conflicts:

	src/Log/log_functions.c

Conflicts:
	src/Log/log_functions.c
	src/include/log.h

Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>
Add optional FILE_NAME and LINE_NUM to log headers

Add two new log message header fields for line number and file name.

LogError moves it's line number into the LINE_NUM field.

Ported from 1.5:
	1eefd523ea4136f4d188054fb61686f0f1eb9d62

Signed-off-by: Frank Filz <ffilz@us.ibm.com>

Conflicts:

	src/Log/log_functions.c

Conflicts:
	src/Cache_inode/cache_inode_access.c
	src/include/log.h

Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>
Get rid of unused LOG_MESSAGE_VERBOSITY

Ported from 1.5:
	99811228d6e51a565a1feba297d6f8ea70e4f98a

Signed-off-by: Frank S. Filz <ffilz@us.ibm.com>

Conflicts:
	src/Log/log_functions.c

Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>
Added support for rotation and compression of log files.
Added a sample log configuration file.

Ported from 1.5:
	1f40a8d558ea70e4bec5388f9c64ac3d87051eb8

Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>

Conflicts:
	src/Log/log_functions.c
	src/config_samples/Makefile.am

Signed-off-by: Poornima Gupte <poornima.gupte@in.ibm.com>

Conflicts:
	src/Log/CMakeLists.txt