From a8d43c90af5122ecff75b55fbaf6d5806674411b Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp 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/dev/raidframe/rf_freebsdkintf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/raidframe') diff --git a/sys/dev/raidframe/rf_freebsdkintf.c b/sys/dev/raidframe/rf_freebsdkintf.c index 29a88e179d9ed..d58bf26b08997 100644 --- a/sys/dev/raidframe/rf_freebsdkintf.c +++ b/sys/dev/raidframe/rf_freebsdkintf.c @@ -2333,7 +2333,7 @@ rf_find_raid_components() vref(vp); vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); - error = VOP_OPEN(vp, FREAD, td->td_ucred, td); + error = VOP_OPEN(vp, FREAD, td->td_ucred, td, -1); VOP_UNLOCK(vp, 0, td); if (error) { vput(vp); @@ -2364,7 +2364,7 @@ rf_find_raid_components() vref(vp); vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); - error = VOP_OPEN(vp, FREAD, td->td_ucred, td); + error = VOP_OPEN(vp, FREAD, td->td_ucred, td, -1); VOP_UNLOCK(vp, 0, td); if (error) { continue; @@ -2419,7 +2419,7 @@ rf_search_label(dev_t dev, struct disklabel *label, RF_AutoConfig_t **ac_list) vref(vp); vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); - error = VOP_OPEN(vp, FREAD, td->td_ucred, td); + error = VOP_OPEN(vp, FREAD, td->td_ucred, td, -1); VOP_UNLOCK(vp, 0, td); if (error) { /* Whatever... */ -- cgit v1.3