FSAL_VFS: Change vfs_fsal_open_and_stat so that it returns with its fd wether it should be closed

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
9P: clunk in a tool function that is used both on client exit and clunk

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
9P: lopen: make pfid->opens increment atomic in the very unlikely case a single fid is opened twice

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Open FSAL_O_RDWR if state is acquired on a file.

This is required for FSALs such as FSAL_VFS that have silly POSIX
behavior where all locks are released if ANY file descriptor is
closed.

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

For commit 140ad292d91
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
Signed-off-by: Matt Benjamin <matt@linuxbox.com>

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Strict compile fix in VFS

Missed unused var in 140ad292d918f

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Update the Changelog and README for V2.0 release.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Correct versioning comments in src/CMakeLists.txt

Changed patch level rule to better conform to RPM and debian
naming rules.

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

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

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Added ignore directive for .project files
9P: CID#23721: clunk: fix use after free

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
cache_inode: fix rename duping key after it's destroyed

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
FSAL_VFS: fix setattr to close properly as the open_and_stat ugly fix requires

Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Pull fedora patch nfs-ganesha-2.0.0rc5.patch

Leave ganestat.pl even though it is dead code for now.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Pull fedora patch nfs-ganesha-2.0.0-lustre-strict.patch

This needs more rework.

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge branch 'stable-2.0' into merge_next

Fedora packaging patches

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge remote-tracking branch 'tfb-bull/next' into merge_next

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Merge remote-tracking branch 'martinetd/next' into merge_next

for c9df00fe1d6a8
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>

Signed-off-by: Jim Lieb <jlieb@panasas.com>
Various fixes focused on xattr and system.* xattr namespace.

They are required to have usable ACLs managed via 9P
- 9P/xattr : bug fixed, assumption was made that xattr's
  value is a string. This prevented ACLs
   (content of system.posix_acl_access), which is a binary buffer,
   to be set properly.
- 9P/ACL: Hook added to deal properly with pseudo xattr "system.posix_acl_access"
- 9P/ACL: the protocol implements hooks to deal correctly with "system.posix_acl_access"
  pseudo xattr
- 9P/xattr : an ACL corner case (visible with FSAL_VFS and not FSAL_LUSTRE) was fixed.
- FSAL_VFS/xattr : code in xattrs.c has been hardened as 9P ACL support was backported
  to VFS

(cherry picked from commit 87a89e9ce74da1315c43c17db4c60bb97aad0217)
Signed-off-by: Jim Lieb <jlieb@panasas.com>