cvs commit: src/sys/fs/msdosfs msdosfs_vfsops.c msdosfs_vnops.c
src/sys/fs/ntfs ntfs_vfsops.c ntfs_vnops.c src/sys/fs/smbfs
smbfs_vnops.c src/sys/fs/udf udf_vfsops.c src/sys/geom geom_vfs.c
src/sys/gnu/fs/ext2fs ext2_vfsops.c ext2_vnops.c ...
Yar Tikhiy
yar at FreeBSD.org
Sun Feb 19 16:53:16 PST 2006
yar 2006-02-20 00:53:15 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
sys/fs/msdosfs msdosfs_vfsops.c msdosfs_vnops.c
sys/fs/ntfs ntfs_vfsops.c ntfs_vnops.c
sys/fs/smbfs smbfs_vnops.c
sys/fs/udf udf_vfsops.c
sys/geom geom_vfs.c
sys/gnu/fs/ext2fs ext2_vfsops.c ext2_vnops.c
sys/gnu/fs/reiserfs reiserfs_vnops.c
sys/isofs/cd9660 cd9660_vfsops.c cd9660_vnops.c
sys/nfsclient nfs_vnops.c
sys/sys vnode.h
sys/ufs/ufs ufs_vfsops.c ufs_vnops.c
sys/vm vnode_pager.c
Log:
Work around the shortness of the size argument to
vnode_create_vobject() while preserving the binary ABI
to filesystem modules in RELENG_6: introduce a new function
vnode_create_vobject_off() that takes the size argument
as off_t; move all stock file systems to it; re-implement
the old vnode_create_vobject() using vnode_create_vobject_off()
so that old or binary-only FS modules can work w/o hitting the
bug. The trick is to pass a size of 0 to vnode_create_vobject_off()
so that it will call VOP_GETATTR() and thus get the actual,
untruncated file size even if the calling module still uses
the old vnode_create_vobject().
PR: kern/92243
Approved by: re (scottl)
Revision Changes Path
1.144.2.3 +1 -1 src/sys/fs/msdosfs/msdosfs_vfsops.c
1.160.2.1 +1 -1 src/sys/fs/msdosfs/msdosfs_vnops.c
1.78.2.2 +1 -1 src/sys/fs/ntfs/ntfs_vfsops.c
1.55.2.1 +1 -1 src/sys/fs/ntfs/ntfs_vnops.c
1.61.2.1 +1 -1 src/sys/fs/smbfs/smbfs_vnops.c
1.33.2.2 +1 -1 src/sys/fs/udf/udf_vfsops.c
1.9.2.1 +1 -1 src/sys/geom/geom_vfs.c
1.151.2.4 +1 -1 src/sys/gnu/fs/ext2fs/ext2_vfsops.c
1.103.2.3 +1 -1 src/sys/gnu/fs/ext2fs/ext2_vnops.c
1.1.2.1 +1 -1 src/sys/gnu/fs/reiserfs/reiserfs_vnops.c
1.140.2.2 +1 -1 src/sys/isofs/cd9660/cd9660_vfsops.c
1.110.2.2 +1 -1 src/sys/isofs/cd9660/cd9660_vnops.c
1.258.2.2 +1 -1 src/sys/nfsclient/nfs_vnops.c
1.304.2.6 +1 -0 src/sys/sys/vnode.h
1.45.2.1 +1 -1 src/sys/ufs/ufs/ufs_vfsops.c
1.271.2.3 +1 -1 src/sys/ufs/ufs/ufs_vnops.c
1.221.2.4 +23 -2 src/sys/vm/vnode_pager.c
More information about the cvs-src
mailing list