CID 72601: remove dead code.
cmake: allow the FSAL_DESTINATION to be overwritten

In certain environments, the library pathes are no longer
lib, lib32, and lib64 - such as Debian based systems that support
multiarch where the library path for the 64-bit architectures
are actually /usr/lib/x86_64-linux-gnu/ganesha and use the gnu
tuple based definition for the library.

So, to maintain backwards compatibility just allow an
override to cmake that can install the FSAL modules into
a different location.

Usage:

$ cmake -DFSAL_DESTINATION=lib/x86_64-linux-gnu/ganesha

Signed-off-by: Charles Hardin <ckhardin@gmail.com>
cmake: use the environment DESTDIR override for python installs

In several packaging steps, the DESTDIR is specified to install
the results to a local directory without changing the prefix
of the compilation.

So, in this case use the DESTDIR for the python installation
command to avoid any attempts to install to the root "/usr"
path when doing package installs.

Signed-off-by: Charles Hardin <ckhardin@gmail.com>
cmake: add a debian cmake build configuration

In the long run, the cmake packager can be used to create the debian
package by adding all of the appropriate glue definitions into this
file.

In the short term, this configuration is just referenced from
the debian/rules to trampoline from a "git-buildpackage" or a
"dpkg-buildpackage" command into the debian specific build
configuration.

Signed-off-by: Charles Hardin <ckhardin@gmail.com>
debian: update the debian configuration for packaging

Update to a 2.1.0 package and remove the specific 1.5.0 patches.

Rough cut, can easily be refined from here

Signed-off-by: Charles Hardin <ckhardin@gmail.com>
fsal-proxy: implement the status() of FSAL API

Now is_open() depends on the status() API to get open flags, so we need a
proper pxy_status().  Otherwise, cache_inode_rdwr_plus() will loop forever as
the default status() returns FSAL_O_CLOSED.

Signed-off-by: Ming Chen <mchen@cs.stonybrook.edu>
fsal-proxy: fix NFS4ERR_BAD_SEQID in pxy_create()

As ffilz pointed out long time ago in
http://sourceforge.net/p/nfs-ganesha/mailman/message/30876823,
pxy_create() mistakes stateid->seqid for open owner seqid and causes
NFS4ERR_BAD_SEQID errors.

This patch maintains an open owner seqid in the client side (proxy FSAL in this
case), and increments the open owner seqid upon state mutating operations
(OPEN, OPEN_CONFIRM, and CLOSE).

Signed-off-by: Ming Chen <mchen@cs.stonybrook.edu>
uid2grp: make it static like other support libs

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
FSAL LUSTRE: store fsid in handle instead of dev_t

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Merge remote-tracking branch 'ckhardin/master' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'sbu-fsl/next' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'marc/CID72601' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Merge remote-tracking branch 'martinetd/next' into next

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
V2.2-dev-9

Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Use non-printable character instead of DOT for revoked file handles

Revoked delegation file handles are stored as a file name in the client
recovery directory by prefixing a "." to the base16 encoding of the file
handle. nfs4_clean_old_recov_dir() assumes that anything that starts
with "." inside base recovery directory is a revoked file handle but a
client specific recovery directory may have components that start with
"." as well.

This patch prefixes non-printable character '\x1' to the base16 encoding
of the revoked file handle to create file name. This should not conflict
with client recovery directory as it will have only printable
characters.

Also fixed nfs4_clean_old_recov_dir() to not make recursive calls on
revoked file handle names.  Also, removed an unneeded memset to 0.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Acked-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Use continue to avoid extra indentation in nfs4_read_recov_clids()

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Acked-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>