1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00
freebsd/sys
Bruce Evans 438abdb9c6 Backed out previous commit. It cause massive filesystem corruption,
not to mention a compile-time warning about the critical function
becoming unused, by replacing spec_bmap() with vop_stdbmap().

ntfs seems to have the same bug.

The factor for converting specfs block numbers to physical block
numbers is 1, but vop_stdbmap() uses the bogus factor
btodb(ap->a_vp->v_mount->mnt_stat.f_iosize), which is 16 for ffs with
the default block size of 8K.  This factor is bogus even for vop_stdbmap()
-- the correct factor is related to the filesystem blocksize which is not
necessarily the same to the optimal i/o size.  vop_stdbmap() was apparently
cloned from nfs where these sizes happen to be the same.

There may also be a problem with a_vp->v_mount being null.  spec_bmap()
still checks for this, but I think the checks in specfs are dead code
which used to support block devices.
2001-04-30 14:35:35 +00:00
..
alpha Overhaul of the SMP code. Several portions of the SMP kernel support have 2001-04-27 19:28:25 +00:00
amd64 Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
arm/include
boot Bring in ficl 2.05. 2001-04-29 02:36:36 +00:00
cam Fix the `tape drive spinning indefinately upon mt stat' problem. 2001-04-22 20:13:28 +00:00
coda fix it so it compiles again 2001-04-23 18:51:54 +00:00
compat Add a vop_stdbmap(), and make it part of the default vop vector. 2001-04-29 11:48:41 +00:00
compile
conf Add back in the bits to remove any existing "schg" flags as we have 2001-04-29 01:53:57 +00:00
contrib/dev Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
crypto Kernel crypto need binary key material, not symbolic ascii. 2001-03-10 13:02:58 +00:00
ddb Catch up to header include changes: 2001-03-28 09:17:56 +00:00
dev don't unlock the channel in chn_read, msleep will do it for us. 2001-04-29 02:31:02 +00:00
fs Backed out previous commit. It cause massive filesystem corruption, 2001-04-30 14:35:35 +00:00
geom fix a number of printf format string warnings inside DEBUG ifdefs 2001-03-29 15:05:08 +00:00
gnu VOP_BALLOC was never really a VOP in the first place, so convert it 2001-04-29 12:36:52 +00:00
i4b Send the remains (such as I have located) of "block major numbers" to 2001-03-26 12:41:29 +00:00
i386 Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
ia64 Overhaul of the SMP code. Several portions of the SMP kernel support have 2001-04-27 19:28:25 +00:00
isa Add in a missing call to forward_hardclock() in the SMP case. 2001-04-28 01:37:44 +00:00
isofs/cd9660 Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
kern When panic()'ing because of recursion on a non-recursive mutex, print 2001-04-30 01:01:52 +00:00
libkern Add function prototypes and base module for kernel side iconv library. 2001-04-09 09:39:29 +00:00
miscfs Backed out previous commit. It cause massive filesystem corruption, 2001-04-30 14:35:35 +00:00
modules Revert previous delta, which was completely bogus. 2001-04-24 12:30:49 +00:00
msdosfs Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
net Better handling of ioctl(SIOCSIFFLAGS) failing in ifpromisc(): 2001-04-27 22:20:22 +00:00
netatalk
netatm Silence some warnings 2001-03-20 10:42:49 +00:00
netgraph Don't reference a node after we dropped a reference to it 2001-04-11 22:04:47 +00:00
netinet Say goodbye to TCP_COMPAT_42 2001-04-20 11:58:56 +00:00
netinet6 Fix typo in previous commit. 2001-04-20 08:43:20 +00:00
netipx
netkey
netnatm Change a couple of M_WAITOKs used in M_PREPEND() to M_TRYWAITs, which 2001-04-05 04:20:48 +00:00
netncp Move bindery authentication ncps to ncp_ncp.c file. ncp_login.c will stay 2001-03-22 10:38:16 +00:00
netns
netsmb This file also depends on sys/types.h and sys/ioccom.h. 2001-04-13 10:50:48 +00:00
nfs Add a vop_stdbmap(), and make it part of the default vop vector. 2001-04-29 11:48:41 +00:00
nfsclient Add a vop_stdbmap(), and make it part of the default vop vector. 2001-04-29 11:48:41 +00:00
nfsserver Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
ntfs Add a vop_stdbmap(), and make it part of the default vop vector. 2001-04-29 11:48:41 +00:00
nwfs Add a vop_stdbmap(), and make it part of the default vop vector. 2001-04-29 11:48:41 +00:00
pc98 Overhaul of the SMP code. Several portions of the SMP kernel support have 2001-04-27 19:28:25 +00:00
pccard My fix to NEWCARD for getting the function type broke oldcard due to 2001-04-21 14:10:32 +00:00
pci Fix the definitions for memory bank sizes, which I somehow got wrong. 2001-04-26 16:40:45 +00:00
posix4 Overhaul of the SMP code. Several portions of the SMP kernel support have 2001-04-27 19:28:25 +00:00
powerpc Overhaul of the SMP code. Several portions of the SMP kernel support have 2001-04-27 19:28:25 +00:00
rpc Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and 2001-03-19 12:50:13 +00:00
svr4
sys Add a vop_stdbmap(), and make it part of the default vop vector. 2001-04-29 11:48:41 +00:00
tools replace calls to non-existant bail() subroutine with calls to 2001-03-23 11:48:50 +00:00
ufs VOP_BALLOC was never really a VOP in the first place, so convert it 2001-04-29 12:36:52 +00:00
vm Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
Makefile