freebsd-nq/sys
Poul-Henning Kamp c7f3baedf3 Fix an obscure fencepost error in GBDE's sector mapping code:
For certain combinations of sectorsize, mediasize and random numbers
(used to define the mapping), a multisector read or write would ignore
some subset of the sectors past the first sector in the request because
those sectors would be mapped past the end of the parent device, and
normal "end of media" truncation would zap that part of the request.

Rev 1.19+1.20 of g_bde_work.c added the check which should have alerted
me to this happening.  This commit maps the request correctly and
adds KASSERTS to make sure things stay inside the parent device.

This does not change the on-disk layout of GBDE, there is no need to
backup/restore.
2003-04-29 19:46:42 +00:00
..
alpha Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
amd64 Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
arm Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
boot Support functions for the new ACPI import. 2003-04-29 18:50:34 +00:00
cam Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
coda
compat Initialize tbuf in newstat_copyout() too. 2003-04-29 17:03:22 +00:00
conf Catch up with the new acpi files. 2003-04-29 19:19:47 +00:00
contrib Resolve conflicts. 2003-04-29 19:11:00 +00:00
crypto
ddb
dev Support functions for the new ACPI import. 2003-04-29 18:50:34 +00:00
fs Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
geom Fix an obscure fencepost error in GBDE's sector mapping code: 2003-04-29 19:46:42 +00:00
gnu
i4b
i386 Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
ia64 Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
isa Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
isofs/cd9660
kern Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
libkern Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
modules Support functions for the new ACPI import. 2003-04-29 18:50:34 +00:00
net Add media types and options for ATM. While on most ATM cards media cannot 2003-04-29 17:23:23 +00:00
netatalk
netatm
netgraph Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
netinet Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
netinet6 panic() doesn't need \n 2003-04-29 08:43:56 +00:00
netipsec
netipx
netkey
netnatm
netncp
netsmb
nfs
nfsclient Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
nfsserver
opencrypto
pc98 Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
pccard
pci Add module data and version to the atm_subr and reference this info from the 2003-04-29 08:07:44 +00:00
posix4
powerpc Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
rpc
security
sparc64 Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
sys Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
tools
ufs Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
vm Remove unused declarations and definitions. 2003-04-29 18:49:25 +00:00
Makefile