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/fs/smbfs | |
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/fs/smbfs')
-rw-r--r-- | sys/fs/smbfs/smbfs_io.c | 4 | ||||
-rw-r--r-- | sys/fs/smbfs/smbfs_vnops.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/smbfs/smbfs_io.c b/sys/fs/smbfs/smbfs_io.c index fb56649..c5de3a6 100644 --- a/sys/fs/smbfs/smbfs_io.c +++ b/sys/fs/smbfs/smbfs_io.c @@ -594,7 +594,7 @@ smbfs_putpages(ap) #ifdef SMBFS_RWGENERIC td = curthread; /* XXX */ cred = td->td_ucred; /* XXX */ - VOP_OPEN(vp, FWRITE, cred, td); + VOP_OPEN(vp, FWRITE, cred, td, -1); error = vop_stdputpages(ap); VOP_CLOSE(vp, FWRITE, cred, td); return error; @@ -612,7 +612,7 @@ smbfs_putpages(ap) td = curthread; /* XXX */ cred = td->td_ucred; /* XXX */ -/* VOP_OPEN(vp, FWRITE, cred, td);*/ +/* VOP_OPEN(vp, FWRITE, cred, td, -1);*/ np = VTOSMB(vp); smp = VFSTOSMBFS(vp->v_mount); pages = ap->a_m; diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c index 41918b9..826706d 100644 --- a/sys/fs/smbfs/smbfs_vnops.c +++ b/sys/fs/smbfs/smbfs_vnops.c @@ -380,7 +380,7 @@ smbfs_setattr(ap) */ if ((np->n_flag & NOPEN) == 0) { if (vcp->vc_flags & SMBV_WIN95) { - error = VOP_OPEN(vp, FWRITE, ap->a_cred, ap->a_td); + error = VOP_OPEN(vp, FWRITE, ap->a_cred, ap->a_td, -1); if (!error) { /* error = smbfs_smb_setfattrNT(np, 0, mtime, atime, &scred); VOP_GETATTR(vp, &vattr, ap->a_cred, ap->a_td);*/ |