summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/div.c
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2009-02-26 18:58:41 +0000
committeravg <avg@FreeBSD.org>2009-02-26 18:58:41 +0000
commit2b666c76d21981720da7ad4acb258421af23d85e (patch)
tree125c079d76bf54373b96a99842f4f442c44d9436 /lib/libc/stdlib/div.c
parentdfd6f02e2ffd77ba010288c4ecd81941adcc4c65 (diff)
downloadFreeBSD-src-2b666c76d21981720da7ad4acb258421af23d85e.zip
FreeBSD-src-2b666c76d21981720da7ad4acb258421af23d85e.tar.gz
udf_readatoffset: read through directory vnode, do not read > MAXBSIZE
Currently bread()-ing through device vnode with (1) VMIO enabled, (2) bo_bsize != DEV_BSIZE (3) more than 1 block results in data being incorrectly cached. So instead a more common approach of using a vnode belonging to fs is now employed. Also, prevent attempt to bread more than MAXBSIZE bytes because of adjustments made to account for offset that doesn't start on block boundary. Add expanded comments to explain the calculations. Also drop unused inline function while here. PR: kern/120967 PR: kern/129084 Reviewed by: scottl, kib Approved by: jhb (mentor)
Diffstat (limited to 'lib/libc/stdlib/div.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud