Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: Martin Husemann <martin@netbsd.org>
List: source-changes
Date: 07/13/2006 12:00:27
Module Name:	src
Committed By:	martin
Date:		Thu Jul 13 12:00:27 UTC 2006

Modified Files:
	src/lib/libc/compat/sys: Makefile.inc
	src/lib/libc/sys: Makefile.inc getfh.2
	src/libexec/lfs_cleanerd: cleaner.h lfs_cleanerd.c
	src/regress/sys/fs/tmpfs: h_tools.c
	src/sys/compat/common: vfs_syscalls_20.c vfs_syscalls_30.c
	src/sys/compat/netbsd32: netbsd32.h netbsd32_compat_30.c netbsd32_fs.c
	    netbsd32_netbsd.c netbsd32_syscall.h netbsd32_syscallargs.h
	    netbsd32_syscalls.c netbsd32_sysent.c syscalls.master
	src/sys/compat/sys: mount.h
	src/sys/fs/adosfs: advfsops.c
	src/sys/fs/cd9660: cd9660_extern.h cd9660_vfsops.c
	src/sys/fs/filecorefs: filecore_extern.h filecore_vfsops.c
	src/sys/fs/msdosfs: msdosfs_vfsops.c
	src/sys/fs/ntfs: ntfs_vfsops.c
	src/sys/fs/sysvbfs: sysvbfs.h sysvbfs_vfsops.c
	src/sys/fs/tmpfs: tmpfs_vfsops.c
	src/sys/fs/udf: udf_vfsops.c
	src/sys/kern: init_sysent.c syscalls.c syscalls.master vfs_syscalls.c
	    vnode_if.c
	src/sys/miscfs/genfs: layer_extern.h layer_vfsops.c
	src/sys/nfs: nfs.h nfs_export.c nfs_nqlease.c nfs_serv.c nfs_subs.c
	    nfs_vfsops.c nfsmount.h nfsproto.h nqnfs.h
	src/sys/sys: fstypes.h mount.h syscall.h syscallargs.h vnode_if.h
	src/sys/ufs/ext2fs: ext2fs_extern.h ext2fs_vfsops.c
	src/sys/ufs/ffs: ffs_extern.h ffs_vfsops.c
	src/sys/ufs/lfs: lfs.h lfs_extern.h lfs_vfsops.c lfs_vnops.c
	src/usr.bin/ktruss: dump.c
	src/usr.sbin/mountd: mountd.c
	src/usr.sbin/rpc.lockd: lockd_lock.c

Log Message:
Fix alignement problems for fhandle_t, exposed by gcc4.1.

While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.

Discussed on tech-kern, with lots of help from yamt (thanks!).


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 src/lib/libc/compat/sys/Makefile.inc
cvs rdiff -r1.167 -r1.168 src/lib/libc/sys/Makefile.inc
cvs rdiff -r1.17 -r1.18 src/lib/libc/sys/getfh.2
cvs rdiff -r1.2 -r1.3 src/libexec/lfs_cleanerd/cleaner.h
cvs rdiff -r1.8 -r1.9 src/libexec/lfs_cleanerd/lfs_cleanerd.c
cvs rdiff -r1.3 -r1.4 src/regress/sys/fs/tmpfs/h_tools.c
cvs rdiff -r1.10 -r1.11 src/sys/compat/common/vfs_syscalls_20.c
cvs rdiff -r1.9 -r1.10 src/sys/compat/common/vfs_syscalls_30.c
cvs rdiff -r1.53 -r1.54 src/sys/compat/netbsd32/netbsd32.h
cvs rdiff -r1.8 -r1.9 src/sys/compat/netbsd32/netbsd32_compat_30.c
cvs rdiff -r1.27 -r1.28 src/sys/compat/netbsd32/netbsd32_fs.c
cvs rdiff -r1.105 -r1.106 src/sys/compat/netbsd32/netbsd32_netbsd.c
cvs rdiff -r1.54 -r1.55 src/sys/compat/netbsd32/netbsd32_syscall.h \
    src/sys/compat/netbsd32/netbsd32_syscallargs.h \
    src/sys/compat/netbsd32/netbsd32_syscalls.c \
    src/sys/compat/netbsd32/netbsd32_sysent.c
cvs rdiff -r1.48 -r1.49 src/sys/compat/netbsd32/syscalls.master
cvs rdiff -r1.3 -r1.4 src/sys/compat/sys/mount.h
cvs rdiff -r1.28 -r1.29 src/sys/fs/adosfs/advfsops.c
cvs rdiff -r1.19 -r1.20 src/sys/fs/cd9660/cd9660_extern.h
cvs rdiff -r1.32 -r1.33 src/sys/fs/cd9660/cd9660_vfsops.c
cvs rdiff -r1.13 -r1.14 src/sys/fs/filecorefs/filecore_extern.h
cvs rdiff -r1.25 -r1.26 src/sys/fs/filecorefs/filecore_vfsops.c
cvs rdiff -r1.31 -r1.32 src/sys/fs/msdosfs/msdosfs_vfsops.c
cvs rdiff -r1.41 -r1.42 src/sys/fs/ntfs/ntfs_vfsops.c
cvs rdiff -r1.2 -r1.3 src/sys/fs/sysvbfs/sysvbfs.h
cvs rdiff -r1.4 -r1.5 src/sys/fs/sysvbfs/sysvbfs_vfsops.c
cvs rdiff -r1.12 -r1.13 src/sys/fs/tmpfs/tmpfs_vfsops.c
cvs rdiff -r1.6 -r1.7 src/sys/fs/udf/udf_vfsops.c
cvs rdiff -r1.174 -r1.175 src/sys/kern/init_sysent.c
cvs rdiff -r1.169 -r1.170 src/sys/kern/syscalls.c
cvs rdiff -r1.154 -r1.155 src/sys/kern/syscalls.master
cvs rdiff -r1.243 -r1.244 src/sys/kern/vfs_syscalls.c
cvs rdiff -r1.65 -r1.66 src/sys/kern/vnode_if.c
cvs rdiff -r1.21 -r1.22 src/sys/miscfs/genfs/layer_extern.h
cvs rdiff -r1.23 -r1.24 src/sys/miscfs/genfs/layer_vfsops.c
cvs rdiff -r1.57 -r1.58 src/sys/nfs/nfs.h
cvs rdiff -r1.14 -r1.15 src/sys/nfs/nfs_export.c
cvs rdiff -r1.66 -r1.67 src/sys/nfs/nfs_nqlease.c
cvs rdiff -r1.113 -r1.114 src/sys/nfs/nfs_serv.c
cvs rdiff -r1.165 -r1.166 src/sys/nfs/nfs_subs.c
cvs rdiff -r1.157 -r1.158 src/sys/nfs/nfs_vfsops.c
cvs rdiff -r1.39 -r1.40 src/sys/nfs/nfsmount.h
cvs rdiff -r1.13 -r1.14 src/sys/nfs/nfsproto.h
cvs rdiff -r1.19 -r1.20 src/sys/nfs/nqnfs.h
cvs rdiff -r1.8 -r1.9 src/sys/sys/fstypes.h
cvs rdiff -r1.142 -r1.143 src/sys/sys/mount.h
cvs rdiff -r1.168 -r1.169 src/sys/sys/syscall.h
cvs rdiff -r1.150 -r1.151 src/sys/sys/syscallargs.h
cvs rdiff -r1.61 -r1.62 src/sys/sys/vnode_if.h
cvs rdiff -r1.33 -r1.34 src/sys/ufs/ext2fs/ext2fs_extern.h
cvs rdiff -r1.98 -r1.99 src/sys/ufs/ext2fs/ext2fs_vfsops.c
cvs rdiff -r1.53 -r1.54 src/sys/ufs/ffs/ffs_extern.h
cvs rdiff -r1.182 -r1.183 src/sys/ufs/ffs/ffs_vfsops.c
cvs rdiff -r1.108 -r1.109 src/sys/ufs/lfs/lfs.h
cvs rdiff -r1.84 -r1.85 src/sys/ufs/lfs/lfs_extern.h
cvs rdiff -r1.215 -r1.216 src/sys/ufs/lfs/lfs_vfsops.c
cvs rdiff -r1.180 -r1.181 src/sys/ufs/lfs/lfs_vnops.c
cvs rdiff -r1.24 -r1.25 src/usr.bin/ktruss/dump.c
cvs rdiff -r1.106 -r1.107 src/usr.sbin/mountd/mountd.c
cvs rdiff -r1.22 -r1.23 src/usr.sbin/rpc.lockd/lockd_lock.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.