VFS_ABORTOP hasn't existed since 1999/12/15.
This commit is contained in:
parent
514ceecd1b
commit
20e967f772
@ -75,12 +75,10 @@ vop_link(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
|
||||
int error = 0;
|
||||
|
||||
if (vp->v_mount != dvp->v_mount) {
|
||||
VOP_ABORTOP(dvp, cnp);
|
||||
error = EXDEV;
|
||||
goto out2;
|
||||
}
|
||||
if (vp != dvp && (error = VOP_LOCK(vp))) {
|
||||
VOP_ABORTOP(dvp, cnp);
|
||||
goto out2;
|
||||
}
|
||||
|
||||
@ -89,13 +87,11 @@ vop_link(struct vnode *dvp, struct vnode *vp, struct componentname *cnp)
|
||||
*/
|
||||
|
||||
if (vp would have too many links) {
|
||||
VOP_ABORTOP(dvp, cnp);
|
||||
error = EMLINK;
|
||||
goto out1;
|
||||
}
|
||||
|
||||
if (vp is immutable) {
|
||||
VOP_ABORTOP(dvp, cnp);
|
||||
error = EPERM;
|
||||
goto out1;
|
||||
}
|
||||
|
@ -430,7 +430,6 @@ or
|
||||
operation would be successful
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr VOP_ABORTOP 9 ,
|
||||
.Xr VOP_ACCESS 9 ,
|
||||
.Xr VOP_CREATE 9 ,
|
||||
.Xr VOP_MKDIR 9 ,
|
||||
|
@ -85,14 +85,12 @@ vop_rename(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp,
|
||||
if (fvp->v_mount != tdvp->v_mount) {
|
||||
error = EXDEV;
|
||||
abortit:
|
||||
VOP_ABORTOP(tdvp, tcnp);
|
||||
if (tdvp == tvp)
|
||||
vrele(tdvp);
|
||||
else
|
||||
vput(tdvp);
|
||||
if (tvp)
|
||||
vput(tvp);
|
||||
VOP_ABORTOP(fdvp, fcnp);
|
||||
vrele(fdvp);
|
||||
vrele(fvp);
|
||||
return error;
|
||||
@ -115,7 +113,6 @@ vop_rename(struct vnode *fdvp, struct vnode *fvp, struct componentname *fcnp,
|
||||
/*
|
||||
* Release destination.
|
||||
*/
|
||||
VOP_ABORTOP(tdvp, tcnp);
|
||||
vput(tdvp);
|
||||
vput(tvp);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user