]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r333592
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 Jun 2018 20:40:22 +0000 (20:40 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 Jun 2018 20:40:22 +0000 (20:40 +0000)
commit8a5ead83e6db97157367b696e7eda16a039b76d0
tree9697b0c97abaa5fe93fcb226e205cb79ab5b677b
parent90c4f810e4d822a6de3850826404815ad3edb5bb
MFC: r333592
Fix the eir_server_scope reply argument for NFSv4.1 ExchangeID.

In the reply to an ExchangeID operation, the NFSv4.1 server returns a
"scope" value (eir_server_scope). If this value is the same, it indicates
that two servers share state, which is never the case for FreeBSD servers.
As such, the value needs to be unique and it was without this patch.
However, I just found out that it is not supposed to change when the
server reboots and without this patch, it did change.
This patch fixes eir_server_scope so that it does not change when the
server is rebooted.
The only affect not having this patch has is that Linux clients don't
reclaim opens and locks after a server reboot, which meant they lost
any byte range locks held before the server rebooted.
It only affects NFSv4.1 mounts and the FreeBSD NFSv4.1 client was not
affected by this bug.

git-svn-id: svn://svn.freebsd.org/base/stable/10@334633 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsserver/nfs_nfsdserv.c