pNFS/LUSTRE: invalidate attrs on close (force DS/MDS coherency)
RPM: adds explicit dependencies to libuuid, libuuid-devel, libblkid, libblkid-devel in RPM spec file.
RPM: removes trailing whitespaces so that checkpatch says the spec file is OK.

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
9P: fixes a regression introduced by delegation management. The 9P protocol handles no states.
    In order to have a clean code, constant STATE_LOCK_OWNER_9P is exposed in SAL, whatever the value
    of option "USE_9P" in CMake. There should be no impact on the mere NFS behavior.

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
CMAKE: adds a "make rpm" target. This target builds rpm files and src.rpm file.

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
SCRIPTS: minor changes made to runcp.sh.
It now can ne called from outside src/scripts

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
RPM: build other FSALS rpms when asked in cmake options

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
GIT: add hooks in src/scripts plus a script to install them in place

Signed-off-by: Philippe DENIEL <philippe.deniel@cea.fr>
Add reopen object method

If a file is already open, and we need to open the file with different
open flags, we can use reopen method to avoid closing the file which
would take away all the locks we placed on the file.

This commit introduces reopen method and uses it if an FSAL provides it.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
state_test doesn't need to open a file in read-write mode.

This just gets details about an existing lock, if any. There is no need
to open a file in read-write mode here. RDONLY mode should be just fine.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Open files read-only for shared mode locking if FSAL has reopen method.

If a file is already opened in read-only mode, and needs to be opened in
read-write mode, the file needs to be closed and opened again.  Closing
a file loses all kinds of locks placed on the file. For this reason,
even for satisfying a read mode lock (shared lock), we open the file in
read-write mode.

If FSAL has reopen method, we can just open the file in read-only mode.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>