freebsd-skq/sys/fs/udf
Andriy Gapon b0c0fb5940 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)
2009-02-26 18:58:41 +00:00
..
ecma167-udf.h Use the same style as the rest of the file for the optional data string 2009-02-09 20:42:51 +00:00
osta.c
osta.h
udf_iconv.c
udf_mount.h
udf_vfsops.c udf_readatoffset: read through directory vnode, do not read > MAXBSIZE 2009-02-26 18:58:41 +00:00
udf_vnops.c udf_readatoffset: read through directory vnode, do not read > MAXBSIZE 2009-02-26 18:58:41 +00:00
udf.h udf_readatoffset: read through directory vnode, do not read > MAXBSIZE 2009-02-26 18:58:41 +00:00