From 6221ef9078c60fa7c0eff8539ec7b1d959370e2a Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 26 Jul 2003 07:32:23 +0000 Subject: 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. --- sys/fs/cd9660/cd9660_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/fs/cd9660') diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c index c076d08..42455f0 100644 --- a/sys/fs/cd9660/cd9660_vfsops.c +++ b/sys/fs/cd9660/cd9660_vfsops.c @@ -154,7 +154,7 @@ iso_mountroot(mp, td) args.flags = ISOFSMNT_ROOT; vn_lock(rootvp, LK_EXCLUSIVE | LK_RETRY, td); - error = VOP_OPEN(rootvp, FREAD, FSCRED, td); + error = VOP_OPEN(rootvp, FREAD, FSCRED, td, -1); VOP_UNLOCK(rootvp, 0, td); if (error) return error; @@ -304,7 +304,7 @@ iso_mountfs(devvp, mp, td, argp) return (error); vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, td); - error = VOP_OPEN(devvp, FREAD, FSCRED, td); + error = VOP_OPEN(devvp, FREAD, FSCRED, td, -1); VOP_UNLOCK(devvp, 0, td); if (error) return error; -- cgit v1.1