must pass reference to vnode pointer to nfs_loadattrcache so it can be updated
SCCS-vsn: sys/nfs/nfs_vnops.c 7.11
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#)nfs_vnops.c 7.10 (Berkeley) %G%
+ * @(#)nfs_vnops.c 7.11 (Berkeley) %G%
/* Global vars */
int nfs_lookup(),
nfs_create(),
/* Global vars */
int nfs_lookup(),
nfs_create(),
nfs_open(),
nfs_close(),
nfs_access(),
nfs_open(),
nfs_close(),
nfs_access(),
struct vnodeops nfsv2_vnodeops = {
nfs_lookup,
nfs_create,
struct vnodeops nfsv2_vnodeops = {
nfs_lookup,
nfs_create,
nfs_open,
nfs_close,
nfs_access,
nfs_open,
nfs_close,
nfs_access,
vfs_noop,
vfs_noop,
nfs_fsync,
vfs_noop,
vfs_noop,
nfs_fsync,
nfs_remove,
nfs_link,
nfs_rename,
nfs_remove,
nfs_link,
nfs_rename,
- if (error = nfs_loadattrcache(newvp, &md, &dpos, (struct vattr *)0)) {
+ if (error =
+ nfs_loadattrcache(&newvp, &md, &dpos, (struct vattr *)0)) {
if (newvp != vp)
nfs_nput(newvp);
else
if (newvp != vp)
nfs_nput(newvp);
else
return (error);
}
newvp = NFSTOV(np);
return (error);
}
newvp = NFSTOV(np);
- if (error = nfs_loadattrcache(newvp, &md, &dpos, (struct vattr *)0)) {
+ if (error =
+ nfs_loadattrcache(&newvp, &md, &dpos, (struct vattr *)0)) {
nfs_nput(newvp);
m_freem(mrep);
return (error);
nfs_nput(newvp);
m_freem(mrep);
return (error);
- if (error = nfs_loadattrcache(newvp, &md, &dpos, (struct vattr *)0)) {
+ if (error = nfs_loadattrcache(&newvp, &md, &dpos, (struct vattr *)0)) {
if (newvp != vp)
nfs_nput(newvp);
else
if (newvp != vp)
nfs_nput(newvp);
else
+/*
+ * nfs mknod call
+ * This call is currently not supported.
+ */
+/* ARGSUSED */
+nfs_mknod(ndp, vap, cred)
+ struct nameidata *ndp;
+ struct ucred *cred;
+ struct vattr *vap;
+{
+
+ nfs_abortop(ndp);
+ return (EOPNOTSUPP);
+}
+
/*
* nfs file create call
*/
/*
* nfs file create call
*/