freebsd-skq/sys
Andriy Gapon 1b4bc5f851 bo_bsize: revert r205860 and take an alternative approch in getblk
In r205860 I missed the fact that there is code that strongly assumes
that devvp bo_bsize is equal to underlying provider's sectorsize.
In those places it is hard to obtain the sectorsize in an alternative
way if devvp bo_bsize is set to something else.
So, I am reverting bo_bsize assigment in g_vfs_open.
Instead, in getblk I use DEV_BSIZE block size for b_offset calculation
if vp is a disk vp as reported by vn_isdisk.  This should coinside with
vp being a devvp.

Reported by:	Mykola Dzham <i@levsha.me>
Tested by:	Mykola Dzham <i@levsha.me>
Pointyhat to:	avg
MFC after:	2 weeks
X-ToDo:		convert bread(devvp) in all fs to use bo_bsize-d blocks
2010-04-02 15:12:31 +00:00
..
amd64 - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
arm Oops! Wrong copy-paste in r206053. 2010-04-01 19:05:43 +00:00
boot Our boot loader is capable of booting both i386 and amd64 kernels so 2010-03-26 01:30:53 +00:00
bsm
cam Add a couple missing basic mode page codes. 2010-04-01 01:49:43 +00:00
cddl The same code is used to import and to create pool. 2010-03-19 20:14:27 +00:00
compat Re-apply r205683 with some modifications: 2010-04-02 06:50:28 +00:00
conf - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
contrib Integrate OpenBSD rev 1.5 of x86emu.c. 2010-03-09 22:42:24 +00:00
crypto
ddb Add a space before printing 'thread pid ...' to match the space before 2010-02-12 19:52:51 +00:00
dev - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
fs Add function vop_rename_fail(9) that performs needed cleanup for locks 2010-04-02 14:03:01 +00:00
gdb
geom bo_bsize: revert r205860 and take an alternative approch in getblk 2010-04-02 15:12:31 +00:00
gnu
i386 - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
ia64 Bring up-to-date: 2010-03-27 06:53:11 +00:00
isa Introduce the new kernel sub-tree x86 which should contain all the code 2010-02-25 14:13:39 +00:00
kern bo_bsize: revert r205860 and take an alternative approch in getblk 2010-04-02 15:12:31 +00:00
kgssapi
libkern
mips Enable module builds now that the build completes for them. This 2010-03-29 22:03:55 +00:00
modules - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
net Check the pointer to JIT binary filter before its de-allocation. 2010-03-29 20:24:03 +00:00
net80211 Constify vap argument of ieee80211_{note,discard}* functions. 2010-03-31 16:07:36 +00:00
netatalk
netgraph Remove alignment constraints. 2010-04-01 16:20:36 +00:00
netinet Add definition of IPv6 mobility header's protocol number, as assigned by 2010-03-31 23:02:25 +00:00
netinet6 We are holding a write lock here so avoid aquiring it twice calling 2010-03-25 10:29:00 +00:00
netipsec When tearing down IPsec as part of a (virtual) network stack, 2010-03-28 06:51:50 +00:00
netipx
netnatm
netncp
netsmb
nfs Factor out the code shared between NFS client and server into its own 2010-02-16 20:00:21 +00:00
nfsclient Simplify code a bit. 2010-02-18 22:10:55 +00:00
nfsserver Patch the regular NFS server so that it returns ESTALE to the client 2010-03-26 01:19:29 +00:00
nlm
opencrypto
pc98 Change the arguments of exec_setregs() so that it receives a pointer 2010-03-25 14:24:00 +00:00
pci
powerpc Set hw.ofwfb.relax_mmap=1 by default. While these checks may be a good 2010-03-28 17:17:32 +00:00
rpc When the regular NFS server replied to a UDP client out of the replay 2010-03-23 23:03:30 +00:00
security Update device-labeling logic for Biba, LOMAC, and MLS to recognize new-style 2010-03-02 15:05:48 +00:00
sparc64 - Try do deal gracefully with correctable ECC errors. 2010-04-02 10:36:40 +00:00
sun4v Change the arguments of exec_setregs() so that it receives a pointer 2010-03-25 14:24:00 +00:00
sys Add function vop_rename_fail(9) that performs needed cleanup for locks 2010-04-02 14:03:01 +00:00
teken Fall back to ASCII codepoints for box drawing. 2010-02-08 09:16:59 +00:00
tools
ufs When ffs_realloccg() failed to allocate bigger fragment and, because 2010-02-13 10:34:50 +00:00
vm Reject attempts to create a MAP_ANON mapping with a non-zero offset. 2010-03-23 21:08:07 +00:00
x86 Improving the clocks auto-tunning by firstly checking if the atrtc may be 2010-03-03 17:13:29 +00:00
xdr
xen don't hold spin lock across free 2010-02-21 01:12:18 +00:00
Makefile