Currently there is no way to tell if write operation invoked via

vn_start_write() on the given vnode will be successful. VOP_LEASE() may
help to solve this problem, but its return value ignored nearly everywhere.
For now just assume that the missing upper layer on write means insufficient
access rights (which is correct for most cases).
This commit is contained in:
Boris Popov 2001-05-18 07:43:13 +00:00
parent 108b08b24e
commit 10fa1684ed
2 changed files with 2 additions and 2 deletions

View File

@ -1630,7 +1630,7 @@ union_getwritemount(ap)
return (EOPNOTSUPP);
}
VI_UNLOCK(vp);
panic("union_getwritemount: missing upper layer");
return (EACCES);
}
return(VOP_GETWRITEMOUNT(uvp, ap->a_mpp));
}

View File

@ -1630,7 +1630,7 @@ union_getwritemount(ap)
return (EOPNOTSUPP);
}
VI_UNLOCK(vp);
panic("union_getwritemount: missing upper layer");
return (EACCES);
}
return(VOP_GETWRITEMOUNT(uvp, ap->a_mpp));
}