freebsd-nq/sys/geom
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
..
bde Fix an obscure fencepost error in GBDE's sector mapping code: 2003-04-29 19:46:42 +00:00
geom_aes.c Time has run from the "run GEOM in userland" harness, and the new regression 2003-04-13 09:02:06 +00:00
geom_apple.c Time has run from the "run GEOM in userland" harness, and the new regression 2003-04-13 09:02:06 +00:00
geom_bsd_enc.c These two files fell off during my previous commit: put the encoding 2003-04-17 08:41:08 +00:00
geom_bsd.c Rename g_call_me() to g_post_event(), and give it a flag 2003-04-23 20:46:12 +00:00
geom_ccd.c More correct patch: Only call biofinish if we have not already sent 2003-04-14 08:49:54 +00:00
geom_ctl.c Introduce gctl_get_paraml() which gets a parameter only if it has the 2003-04-23 08:03:47 +00:00
geom_ctl.h Add "CONFIG_GEOM" operation to the OAM API. 2003-04-22 21:00:49 +00:00
geom_dev.c Deprecate machine/limits.h in favor of new sys/limits.h. 2003-04-29 13:36:06 +00:00
geom_disk.c Introduce a g_waitfor_event() function which posts an event and waits for 2003-04-23 21:28:27 +00:00
geom_disk.h Change events to have an array of "void *" references, and give the 2003-04-02 20:41:18 +00:00
geom_dump.c Introduce a g_waitfor_event() function which posts an event and waits for 2003-04-23 21:28:27 +00:00
geom_event.c Introduce a g_waitfor_event() function which posts an event and waits for 2003-04-23 21:28:27 +00:00
geom_ext.h Run a revision on the OAM api. 2003-03-27 14:35:00 +00:00
geom_gpt.c Time has run from the "run GEOM in userland" harness, and the new regression 2003-04-13 09:02:06 +00:00
geom_int.h More of the event stuff can now be private to geom_event.c 2003-04-23 20:54:42 +00:00
geom_io.c Time has run from the "run GEOM in userland" harness, and the new regression 2003-04-13 09:02:06 +00:00
geom_kern.c Introduce a g_waitfor_event() function which posts an event and waits for 2003-04-23 21:28:27 +00:00
geom_mbr_enc.c Move the functions for encoding decoding struct dos_partition into 2003-04-12 08:34:40 +00:00
geom_mbr.c Rename g_call_me() to g_post_event(), and give it a flag 2003-04-23 20:46:12 +00:00
geom_mirror.c Time has run from the "run GEOM in userland" harness, and the new regression 2003-04-13 09:02:06 +00:00
geom_pc98.c Rename g_call_me() to g_post_event(), and give it a flag 2003-04-23 20:46:12 +00:00
geom_slice.c Rename g_call_me() to g_post_event(), and give it a flag 2003-04-23 20:46:12 +00:00
geom_slice.h Rename g_call_me() to g_post_event(), and give it a flag 2003-04-23 20:46:12 +00:00
geom_subr.c Rename g_call_me() to g_post_event(), and give it a flag 2003-04-23 20:46:12 +00:00
geom_sunlabel_enc.c Use #defines from <sys/sun_disklabel.h> instead of private ones. 2003-04-21 19:42:36 +00:00
geom_sunlabel.c Introduce a g_waitfor_event() function which posts an event and waits for 2003-04-23 21:28:27 +00:00
geom_vol_ffs.c Time has run from the "run GEOM in userland" harness, and the new regression 2003-04-13 09:02:06 +00:00
geom.h Introduce a g_waitfor_event() function which posts an event and waits for 2003-04-23 21:28:27 +00:00
notes A note about which #include files may be used where. 2003-03-23 10:08:13 +00:00