freebsd-dev/sys/fs
Rick Macklem 25705dd5d0 Copy all bits of a file handle in case there is padding in the structure.
At least on x86, fhandle_t is a packed structure, so I believe an
assignment will copy all the bits. However, for some current/future
architectures, there might be padding in the structure that doesn't get
copied via an assignment.
Since NFS assumes a file handle is an opaque blob of bits that can be
compared via memcmp()/bcmp(), all the bits including any padding must be
copied.
This patch replaces the assignments with a call to a byte copy function.
Spotted during code inspection.
2018-08-05 19:21:50 +00:00
..
autofs
cd9660
cuse
deadfs
devfs
ext2fs
fdescfs
fifofs
fuse
msdosfs
nandfs
nfs
nfsclient
nfsserver Copy all bits of a file handle in case there is padding in the structure. 2018-08-05 19:21:50 +00:00
nullfs
procfs
pseudofs
smbfs
tmpfs
udf
unionfs