aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vtoc.h
Commit message (Collapse)AuthorAgeFilesLines
* Re-apply change 306811 or alternatively, revert change 307385.Marcel Moolenaar2016-10-161-106/+3
| | | | Notes: svn path=/head/; revision=307386
* Revert change 306811 so that the change can be re-done usingMarcel Moolenaar2016-10-161-3/+106
| | | | | | | | svn copy instead of svn move. This to preserve history on the originals headers as well. Notes: svn path=/head/; revision=307385
* In order to allow mkimg(1) (and other tools) to become a build toolMarcel Moolenaar2016-10-071-106/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=306811
* Add a partition type for nandfs to the apm, bsd, gpt and vtoc8 schemes.Marcel Moolenaar2012-05-251-0/+1
| | | | | | | The gpart alias for these partition types is "freebsd-nandfs". Notes: svn path=/head/; revision=236023
* - In gpart_bootfile_read() fix an off-by-one error preventing the bootstrapMarius Strobl2010-06-031-1/+2
| | | | | | | | | | | | | | | | file to be of maximum size. - Add special handling required for SMI/VTOC8 disklabel partcode, i.e. avoid overwriting the label when writing the bootstrap code to the partition starting at 0 and install it to all partitions when the -i option is omitted just like geom_sunlabel(4) and sunlabel(8) do by default. - Add missing prototypes. - Add const where applicable. Reviewed by: marcel MFC after: 3 days Notes: svn path=/head/; revision=208777
* Mark the vtoc.h structure as packed so that it is the right size andWarner Losh2010-03-291-1/+1
| | | | | | | | | layout on arm. MFC after: 7 days Notes: svn path=/head/; revision=205838
* Add __packed to the part sub-structure to compensate forMarcel Moolenaar2008-12-141-1/+1
| | | | | | | the 32-bit default structure alignment on ARM. Notes: svn path=/head/; revision=186096
* Add support for VTOC8 labels (aka sun disk labels). When a label doesMarcel Moolenaar2008-03-021-0/+106
not have VTOC information about the partitions, it will be created. This is because the VTOC information is used for the partition type and FreeBSD's sunlabel(8) does not create nor use VTOC information. For this purpose, new tags have been added to support FreeBSD's partition types. Notes: svn path=/head/; revision=176718