diff options
author | phk <phk@FreeBSD.org> | 2003-07-26 07:32:23 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-07-26 07:32:23 +0000 |
commit | 6221ef9078c60fa7c0eff8539ec7b1d959370e2a (patch) | |
tree | 4b10a3edcceb3eb7cae2e63c46cb2b1d26c145bf /sys/ufs | |
parent | e33bcc1872887407faa57becf9cde30a67fe1596 (diff) | |
download | FreeBSD-src-6221ef9078c60fa7c0eff8539ec7b1d959370e2a.zip FreeBSD-src-6221ef9078c60fa7c0eff8539ec7b1d959370e2a.tar.gz |
Add a "int fd" argument to VOP_OPEN() which in the future will
contain the filedescriptor number on opens from userland.
The index is used rather than a "struct file *" since it conveys a bit
more information, which may be useful to in particular fdescfs and /dev/fd/*
For now pass -1 all over the place.
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ffs/ffs_vfsops.c | 4 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_extattr.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index f74affb..7a41015 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -610,9 +610,9 @@ ffs_mountfs(devvp, mp, td) * XXX: start to avoid getting trashed later on. */ #ifdef notyet - error = VOP_OPEN(devvp, ronly ? FREAD : FREAD|FWRITE, FSCRED, td); + error = VOP_OPEN(devvp, ronly ? FREAD : FREAD|FWRITE, FSCRED, td, -1); #else - error = VOP_OPEN(devvp, FREAD|FWRITE, FSCRED, td); + error = VOP_OPEN(devvp, FREAD|FWRITE, FSCRED, td, -1); #endif VOP_UNLOCK(devvp, 0, td); if (error) diff --git a/sys/ufs/ufs/ufs_extattr.c b/sys/ufs/ufs/ufs_extattr.c index b916d2d..8819698 100644 --- a/sys/ufs/ufs/ufs_extattr.c +++ b/sys/ufs/ufs/ufs_extattr.c @@ -324,7 +324,7 @@ ufs_extattr_enable_with_open(struct ufsmount *ump, struct vnode *vp, { int error; - error = VOP_OPEN(vp, FREAD|FWRITE, td->td_ucred, td); + error = VOP_OPEN(vp, FREAD|FWRITE, td->td_ucred, td, -1); if (error) { printf("ufs_extattr_enable_with_open.VOP_OPEN(): failed " "with %d\n", error); |