summaryrefslogtreecommitdiffstats
path: root/sys/coda
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-07-26 07:32:23 +0000
committerphk <phk@FreeBSD.org>2003-07-26 07:32:23 +0000
commit6221ef9078c60fa7c0eff8539ec7b1d959370e2a (patch)
tree4b10a3edcceb3eb7cae2e63c46cb2b1d26c145bf /sys/coda
parente33bcc1872887407faa57becf9cde30a67fe1596 (diff)
downloadFreeBSD-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/coda')
-rw-r--r--sys/coda/coda_fbsd.c2
-rw-r--r--sys/coda/coda_vnops.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/coda/coda_fbsd.c b/sys/coda/coda_fbsd.c
index ac52818..1c061b1 100644
--- a/sys/coda/coda_fbsd.c
+++ b/sys/coda/coda_fbsd.c
@@ -127,7 +127,7 @@ coda_fbsd_getpages(v)
if (cfvp == NULL) {
opened_internally = 1;
- error = VOP_OPEN(vp, FREAD, cred, p);
+ error = VOP_OPEN(vp, FREAD, cred, p, -1);
printf("coda_getp: Internally Opening %p\n", vp);
if (error) {
diff --git a/sys/coda/coda_vnops.c b/sys/coda/coda_vnops.c
index 20ee42d..8e44455 100644
--- a/sys/coda/coda_vnops.c
+++ b/sys/coda/coda_vnops.c
@@ -296,7 +296,7 @@ coda_open(v)
cp->c_inode = inode;
/* Open the cache file. */
- error = VOP_OPEN(vp, flag, cred, td);
+ error = VOP_OPEN(vp, flag, cred, td, -1);
if (error) {
printf("coda_open: VOP_OPEN on container failed %d\n", error);
return (error);
@@ -467,7 +467,7 @@ coda_rdwr(vp, uiop, rw, ioflag, cred, td)
opened_internally = 1;
MARK_INT_GEN(CODA_OPEN_STATS);
error = VOP_OPEN(vp, (rw == UIO_READ ? FREAD : FWRITE),
- cred, td);
+ cred, td, -1);
printf("coda_rdwr: Internally Opening %p\n", vp);
if (error) {
printf("coda_rdwr: VOP_OPEN on container failed %d\n", error);
@@ -1646,7 +1646,7 @@ coda_readdir(v)
if (cp->c_ovp == NULL) {
opened_internally = 1;
MARK_INT_GEN(CODA_OPEN_STATS);
- error = VOP_OPEN(vp, FREAD, cred, td);
+ error = VOP_OPEN(vp, FREAD, cred, td, -1);
printf("coda_readdir: Internally Opening %p\n", vp);
if (error) {
printf("coda_readdir: VOP_OPEN on container failed %d\n", error);
OpenPOWER on IntegriCloud