1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys/nfs
Joerg Wunsch ec05e1f5d7 The duplicate information returned in fa_type and fa_mode
is an ambiguity in the NFS version 2 protocol.

VREG should be taken literally as a regular file.  If a
server intents to return some type information differently
in the upper bits of the mode field (e.g. for sockets, or
FIFOs), NFSv2 mandates fa_type to be VNON.  Anyway, we
leave the examination of the mode bits even in the VREG
case to avoid breakage for bogus servers, but we make sure
that there are actually type bits set in the upper part of
fa_mode (and failing that, trust the va_type field).

NFSv3 cleared the issue, and requires fa_mode to not
contain any type information (while also introduing sockets
and FIFOs for fa_type).

The fix has been tested against a variety of NFS servers.
It fixes problems with the ``Tropic'' NFS server for Windows,
while apparently not breaking anything.

Pointed-out by: scott@zorch.sf-bay.org (Scott Hazen Mueller)
1995-06-14 06:23:38 +00:00
..
nfs_bio.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
nfs_common.c The duplicate information returned in fa_type and fa_mode 1995-06-14 06:23:38 +00:00
nfs_common.h Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
nfs_node.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
nfs_nqlease.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
nfs_serv.c Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
nfs_socket.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
nfs_srvcache.c This is a bunch of changes from NetBSD. There are a couple of bug-fixes. 1994-10-17 17:47:45 +00:00
nfs_subs.c The duplicate information returned in fa_type and fa_mode 1995-06-14 06:23:38 +00:00
nfs_syscalls.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
nfs_vfsops.c Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
nfs_vnops.c Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
nfs.h YFfix 1995-02-14 06:22:18 +00:00
nfsdiskless.h
nfsm_subs.h Remove trailing whitespace. 1995-05-30 08:16:23 +00:00
nfsmount.h This is a bunch of changes from NetBSD. There are a couple of bug-fixes. 1994-10-17 17:47:45 +00:00
nfsnode.h Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
nfsrtt.h
nfsrvcache.h This is a bunch of changes from NetBSD. There are a couple of bug-fixes. 1994-10-17 17:47:45 +00:00
nfsv2.h
nqnfs.h This is a bunch of changes from NetBSD. There are a couple of bug-fixes. 1994-10-17 17:47:45 +00:00
rpcv2.h
xdr_subs.h Fix conversion to/from nfs v2 time in handling microseconds. 1995-01-10 13:11:42 +00:00