1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sys/geom
Poul-Henning Kamp 56dde750d5 Make bsd_disklabel_le_enc calculate the checksum and fill it in.
(If there is a legitimate need to correctly encode and pack a
disklabel with an invalid checksum custom tools can be built for
that.)

Make bsd_disklabel_le_dec() validate the magics, number of partitions
(against a new parameter) and the checksum.

Vastly simplify the logic of the GEOM::BSD class implementation:

Let g_bsd_modify() always take a byte-stream label.

This simplifies all users, except the ioctl's which now have to
convert to a byte-stream first.  Their loss.

g_bsd_modify() is called with topology held now, and it returns
with it held.

Always update the md5sum in g_bsd_modify(), otherwise the check
is no use after the first modification of the label.  Make the
MD5 over the bytestream version of the label.

Move the rawoffset hack to g_bsd_modify() and remove all the
inram/ondisk conversions.

Don't configure hotspots in g_bsd_modify(), do it in taste instead,
we do not support moving the label to a different location on the
fly anyway.

This passes all current regression tests.
2003-05-02 22:46:13 +00:00
..
bde Considering that I did cast the arguments to (intmax_t) I must have 2003-05-02 19:08:57 +00:00
geom_aes.c Use g_wither_geom() and plug memory leaks. 2003-05-02 12:52:51 +00:00
geom_apple.c Use g_slice_spoiled() rather than g_std_spoiled(). 2003-05-02 06:36:14 +00:00
geom_bsd_enc.c Make bsd_disklabel_le_enc calculate the checksum and fill it in. 2003-05-02 22:46:13 +00:00
geom_bsd.c Make bsd_disklabel_le_enc calculate the checksum and fill it in. 2003-05-02 22:46:13 +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 Plug memory leaks. 2003-05-02 12:49:41 +00:00
geom_ctl.h Add "CONFIG_GEOM" operation to the OAM API. 2003-04-22 21:00:49 +00:00
geom_dev.c Back out all the stuff that didn't belong in the last commit. 2003-05-02 06:42:59 +00:00
geom_disk.c Use g_wither_geom() for cleanup. 2003-05-02 06:22:32 +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 Get rid of trivial function g_destroy_event(). 2003-05-02 05:26:19 +00:00
geom_ext.h Run a revision on the OAM api. 2003-03-27 14:35:00 +00:00
geom_gpt.c Use g_slice_spoiled() instead of g_std_spoiled(). 2003-05-02 08:33:26 +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 Use an uma-zone for allocation bio requests. 2003-05-02 12:36:12 +00:00
geom_kern.c Fix some easy, global, lint warnings. In most cases, this means 2003-04-30 12:57:40 +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 Use g_slice_spoiled(). 2003-05-02 08:13:03 +00:00
geom_mirror.c Style improvement. 2003-05-02 06:22:48 +00:00
geom_pc98_enc.c - Move decoding pc98_partition function into geom_pc98_enc.c. 2003-05-01 13:44:24 +00:00
geom_pc98.c Use g_slice_spoiled() not g_std_spoiled() 2003-05-02 06:34:51 +00:00
geom_slice.c Use a more tailored spoil routine for slices, and take advantage of 2003-05-02 06:29:33 +00:00
geom_slice.h Use a more tailored spoil routine for slices, and take advantage of 2003-05-02 06:29:33 +00:00
geom_subr.c Back out all the stuff that didn't belong in the last commit. 2003-05-02 06:42:59 +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 Style improvement. 2003-05-02 12:57:40 +00:00
geom_vol_ffs.c Use g_slice_spoiled() instead of g_std_spoiled(). 2003-05-02 08:21:02 +00:00
geom.h Rework the "withering" mechanism: 2003-05-02 06:15:27 +00:00
notes A note about which #include files may be used where. 2003-03-23 10:08:13 +00:00