]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove the unused credential argument from VOP_FSYNC() and VFS_SYNC().
authorPoul-Henning Kamp <phk@FreeBSD.org>
Tue, 11 Jan 2005 07:36:22 +0000 (07:36 +0000)
committerPoul-Henning Kamp <phk@FreeBSD.org>
Tue, 11 Jan 2005 07:36:22 +0000 (07:36 +0000)
commit8df6bac4c74fad8167cbb05a2a358a36b1ce6f78
tree7316b582ef3e13abcf40fdc592649edfe19bde75
parentad3142eda4f934d9940348293082cc1392ce550d
Remove the unused credential argument from VOP_FSYNC() and VFS_SYNC().

I'm not sure why a credential was added to these in the first place, it is
not used anywhere and it doesn't make much sense:

The credentials for syncing a file (ability to write to the
file) should be checked at the system call level.

Credentials for syncing one or more filesystems ("none")
should be checked at the system call level as well.

If the filesystem implementation needs a particular credential
to carry out the syncing it would logically have to the
cached mount credential, or a credential cached along with
any delayed write data.

Discussed with: rwatson
35 files changed:
sys/coda/coda_venus.c
sys/coda/coda_venus.h
sys/coda/coda_vfsops.c
sys/coda/coda_vnops.c
sys/fs/coda/coda_venus.c
sys/fs/coda/coda_venus.h
sys/fs/coda/coda_vfsops.c
sys/fs/coda/coda_vnops.c
sys/fs/msdosfs/msdosfs_vfsops.c
sys/fs/nullfs/null_vfsops.c
sys/fs/unionfs/union_vnops.c
sys/gnu/ext2fs/ext2_vfsops.c
sys/gnu/fs/ext2fs/ext2_vfsops.c
sys/kern/vfs_bio.c
sys/kern/vfs_default.c
sys/kern/vfs_extattr.c
sys/kern/vfs_mount.c
sys/kern/vfs_subr.c
sys/kern/vfs_syscalls.c
sys/kern/vfs_vnops.c
sys/kern/vnode_if.src
sys/nfs4client/nfs4_vfsops.c
sys/nfs4client/nfs4_vnops.c
sys/nfsclient/nfs_vfsops.c
sys/nfsclient/nfs_vnops.c
sys/nfsserver/nfs_serv.c
sys/sys/mount.h
sys/ufs/ffs/ffs_balloc.c
sys/ufs/ffs/ffs_inode.c
sys/ufs/ffs/ffs_rawread.c
sys/ufs/ffs/ffs_snapshot.c
sys/ufs/ffs/ffs_softdep.c
sys/ufs/ffs/ffs_vfsops.c
sys/ufs/ufs/ufs_lookup.c
sys/vm/vm_object.c