1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76797
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));
}