nfsv3: fix hard link creation (similar to http://rb.dcache.org/r/6224)

    Acked-by: Tigran Mkrtchyan (tigran.mkrtchyan@desy.de)
    Patch: http://rb.dcache.org/r/6253/
    Target: trunk
    Target: 2.6
    Target: 2.7
    Require-book: no
    Require-notes: no

(cherry picked from commit f3a8db4227520899696c9d203b13c61518be068e)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
[maven-release-plugin] prepare release nfs4j-0.6.3
[maven-release-plugin] prepare for next development iteration
test: do not use obsolete ip host name

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
nfsv4: add state dispose listener

this mechanism is used by proxy-io module to
free allocated resources.

Acked-by: Albert Rossi
Target: master, 0.6
(cherry picked from commit 5958f9730d73771ce14dde224d2918f67ee98b35)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
[maven-release-plugin] prepare release nfs4j-0.6.4
[maven-release-plugin] prepare for next development iteration
vfs: chimera: let inode to call setStat()

in case of special files, FsInode#setStat() triggers
some actions.

Acked-by: Paul Millar
Target: master, 0.7, 0.6
(cherry picked from commit 8b534f743a1886903f9c3c2363aba781495ccfcb)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
pom: enforce  maven-release-plugin 2.4.2

(cherry picked from commit d56193f808e5a91c181cda96ba2fe3994ae690d6)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
vfs: chimera: translate exceptions to nfs errors

chimera's move may throw several exceptions. We
need to convert them into corresponding nfs status code

Acked-by: Paul Millar
Target: master, 0.7, 0.6
(cherry picked from commit 9c342a96b56b0f9c5cff19a50e85da9b5c1698bf)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
nfs: propagate nfs exception on readdir

do not convert any exception to IO error. Current
behavior reported access deny as io error.

Acked-by: Paul Millar
Target: master, 0.7, 0.6
(cherry picked from commit 7ba3337e2716a6d181872243ad80e9b1d44b99c5)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
vfs: chimera: do extra access check only for regular inodes

do not check for a file location id FsInode represents special DOT file.

Acked-by: Dmitry Litvintsev
Target: master, 0.7, 0.6
(cherry picked from commit d3ac4a165578214af64a902fcadf09134928943c)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
calculate index in the FsExport constructor

While debugging slow NFS performance accompanied by high CPU usage noticed that FsExport.getIndex() determines some index on every call from what seems like immutable data. Moved it to constructor.

Target: master
Request: 0.7
Acked-by: Paul Millar <paul.millar@desy.de> Albert Rossi <arossi@fnal.gov>
Patch: https://rb.dcache.org/r/7372/
(cherry picked from commit 1ee6f7a2b91725ddee7801d5383b86039829b208)

Conflicts:
	core/src/main/java/org/dcache/nfs/FsExport.java