Home | History | Annotate | Download | only in include
History log of /src/sys/arch/playstation2/include/disklabel.h
RevisionDateAuthorComments
 1.10  01-Apr-2014  martin branches: 1.10.6;
Seems we use MBR labels
 1.9  31-Mar-2014  martin Bring back the playstation2 port - now that a toolchain for it is
available again.
 1.8  05-Dec-2009  pooka branches: 1.8.10; 1.8.16;
Remove support for NetBSD/playstation2.
 1.7  23-Nov-2009  pooka If cpu_disklabel includes struct dkbad, define __HAVE_DISKLABEL_DKBAD.
This allows use of subr_disk_mbr on all archs. Default to it for
the rump disk component. No functional change for regular kernels.
(The other option would've been to include dkbad in disklabels
everywhere, but arguably this approach has less possible side-effects,
especially given that wedges and related magic will take over the
world any second now).
 1.6  11-Dec-2005  christos branches: 1.6.78; 1.6.92;
merge ktrace-lwp.
 1.5  12-Jun-2005  dyoung Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/. That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such. I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
 1.4  08-Oct-2003  lukem Overhaul MBR handling (part 1):

<sys/bootblock.h>:
* Added definitions for the Master Boot Record (MBR) used by
a variety of systems (primarily i386), including the format
of the BIOS Parameter Block (BPB).
This information was cribbed from a variety of sources
including <sys/disklabel_mbr.h> which this is a superset of.

As part of this, some data structure elements and #defines
were renamed to be more "namespace friendly" and consistent
with other bootblocks and MBR documentation.
Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
* Deprecated in favor of <sys/bootblock.h> (the latter is more
"host tool" friendly).

amd64 & i386:
* Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
be consistent with the naming convention of the msdosfs tools.

* Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
and it's confusing to have two functionally equivalent bootblocks,
especially given that "ufs" has multiple meanings (it could be
a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

* Rework pbr.S (the first sector of bootxx_*):
+ Ensure that BPB (bytes 11..89) and the partition table
(bytes 446..509) do not contain code.
+ Add support for booting from FAT partitions if BOOT_FROM_FAT
is defined. (Only set for bootxx_msdos).
+ Remove "dummy" partition 3; if people want to installboot(8)
these to the start of the disk they can use fdisk(8) to
create a real MBR partition table...
+ Compile with TERSE_ERROR so it fits because of the above.
Whilst this is less user friendly, I feel it's important
to have a valid partition table and BPB in the MBR/PBR.

* Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
with other platforms.

* Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
we can boot off FAT partitions.

* Crank version of /usr/mdec/boot to 3.1, and fix some of the other
entries in the version file.

installboot(8) (i386):
* Read the existing MBR of the filesystem and retain the BIOS
Parameter Block (BPB) in bytes 11..89 and the MBR partition
table in bytes 446..509. (Previously installboot(8) would
trash those two sections of the MBR.)

mbrlabel(8):
* Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
 1.3  18-May-2002  uch branches: 1.3.8;
BSD raw partition is obsolete. raw partition is changed to C.
 1.2  26-Mar-2002  uch branches: 1.2.2;
change MAXPARTITIONS to 16.
 1.1  16-Oct-2001  uch branches: 1.1.4; 1.1.6;
playstation2 port
 1.1.6.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1  16-Oct-2001  thorpej file disklabel.h was added on branch kqueue on 2002-01-10 19:47:36 +0000
 1.1.4.3  20-Jun-2002  nathanw Catch up to -current.
 1.1.4.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.1  16-Oct-2001  nathanw file disklabel.h was added on branch nathanw_sa on 2002-04-01 07:41:52 +0000
 1.2.2.1  30-May-2002  gehenna Catch up with -current.
 1.3.8.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.3.8.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.3.8.2  18-Sep-2004  skrll Sync with HEAD.
 1.3.8.1  03-Aug-2004  skrll Sync with HEAD
 1.6.92.1  24-Oct-2010  jym Sync with HEAD
 1.6.78.1  11-Mar-2010  yamt sync with head
 1.8.16.1  18-May-2014  rmind sync with head
 1.8.10.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10.6.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10.6.1  01-Apr-2014  tls file disklabel.h was added on branch tls-maxphys on 2014-08-20 00:03:18 +0000

RSS XML Feed