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:
parent
108b08b24e
commit
10fa1684ed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=76797
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user