]> git.karo-electronics.de Git - linux-beck.git/commit
Bug 11061, NFS mounts dropped
authorIan Dall <ian@beware.dropbear.id.au>
Wed, 11 Mar 2009 00:33:22 +0000 (20:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Mar 2009 00:33:22 +0000 (20:33 -0400)
commitd7371c41b0cda782256b1df759df4e8d4724584c
treec5807f0cb163db7bb4a03cdd6c986d8fa40545e0
parenta71ee337b31271e701f689d544b6153b75609bc5
Bug 11061, NFS mounts dropped

Addresses: http://bugzilla.kernel.org/show_bug.cgi?id=11061

sockaddr structures can't be reliably compared using memcmp() because
there are padding bytes in the structure which can't be guaranteed to
be the same even when the sockaddr structures refer to the same
socket. Instead compare all the relevant fields. In the case of IPv6
sin6_flowinfo is not compared because it only affects QoS and
sin6_scope_id is only compared if the address is "link local" because
"link local" addresses need only be unique to a specific link.

Signed-off-by: Ian Dall <ian@beware.dropbear.id.au>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/client.c