History log of /freebsd-current/sys/sys/apm.h
Revision Date Author Comments
# 71625ec9 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c comment pattern

Remove /^/[*/]\s*\$FreeBSD\$.*\n/


# 50875ed2 15-Oct-2016 Marcel Moolenaar <marcel@FreeBSD.org>

Re-apply change 306811 or alternatively, revert change 307385.


# 9ffbf09f 15-Oct-2016 Marcel Moolenaar <marcel@FreeBSD.org>

Revert change 306811 so that the change can be re-done using
svn copy instead of svn move. This to preserve history on
the originals headers as well.


# 0974f66d 07-Oct-2016 Marcel Moolenaar <marcel@FreeBSD.org>

In order to allow mkimg(1) (and other tools) to become a build tool
that can be compiled on various OSes (including on older versions
of FreeBSD), make it possible to have it include the partitioning
scheme definitions without pulling in FreeBSD specifics.
In particular this means:
o move the scheme definitions iand related defines to header files
under sys/disk,
o make them (more) portable by using uint#_t (where applicable)
and renaming defines so that they at least have a good prefix,
o make the new headers stand-alone so that they don't need FreeBSD
definitions, like struct uuid(*)
o keep the original headers for compatibility, but rewrite them to
get the scheme definitions from <sys/disk/$scheme.h>.

(*) since UUID/GUID type definitions are non-portable and the GPT
scheme uses them, make it possible to have the scheme definitions
use an external type by allowing consumers of the header to set
GPT_UUID_TYPE. When GPT_UUID_TYPE has not been defined, the header
will use it's own type definition, which is the same as struct uuid.
The gpt_uuid_t typedef is created to abstract the details and allows
consumers to refer to a single type.

There is not conflict between the partitioning scheme headers and
what is defined in them. All headers can be included in the same
source files.

Note: consumers of the old headers have not been changed yet. Such
will be done if and when needed/beneficial.

Reviewed by: imp, jhb
MFC after: 1 month
Sponsored by: Bracket Computing


# f24a8224 25-May-2012 Marcel Moolenaar <marcel@FreeBSD.org>

Add a partition type for nandfs to the apm, bsd, gpt and vtoc8 schemes.
The gpart alias for these partition types is "freebsd-nandfs".


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 4509665b 22-May-2010 Nathan Whitehorn <nwhitehorn@FreeBSD.org>

MFC r200557,208173:

Teach gpart about bootcode on APM.


# 37c90cfe 14-Dec-2009 Rui Paulo <rpaulo@FreeBSD.org>

Add apple-boot and apple-ufs.

Submitted by: nwhitehorn


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 26371d59 11-Jun-2008 Marcel Moolenaar <marcel@FreeBSD.org>

Define APM_ENT_NAMELEN and APM_ENT_TYPELEN for general use.


# d4ffc7ac 21-Oct-2007 Marcel Moolenaar <marcel@FreeBSD.org>

Add a partition type for ZFS.


# 1d3aed33 07-Feb-2007 Marcel Moolenaar <marcel@FreeBSD.org>

Evolve the ctlreq interface added to geom_gpt into a generic
partitioning class that supports multiple schemes. Current
schemes supported are APM (Apple Partition Map) and GPT.
Change all GEOM_APPLE anf GEOM_GPT options into GEOM_PART_APM
and GEOM_PART_GPT (resp).

The ctlreq interface supports verbs to create and destroy
partitioning schemes on a disk; to add, delete and modify
partitions; and to commit or undo changes made.