History log of /freebsd-current/sys/sys/disklabel.h
Revision Date Author Comments
# 29363fb4 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# 2ff63af9 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .h pattern

Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/


# 51369649 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

sys: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# 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


# a91275f7 05-Jan-2015 Warner Losh <imp@FreeBSD.org>

Remove old ioctl use and support, once and for all.


# e7d939bd 06-Jul-2014 Marcel Moolenaar <marcel@FreeBSD.org>

Remove ia64.

This includes:
o All directories named *ia64*
o All files named *ia64*
o All ia64-specific code guarded by __ia64__
o All ia64-specific makefile logic
o Mention of ia64 in comments and documentation

This excludes:
o Everything under contrib/
o Everything under crypto/
o sys/xen/interface
o sys/sys/elf_common.h

Discussed at: BSDcan


# 12ef67a4 11-Jun-2014 Andrey V. Elsukov <ae@FreeBSD.org>

Add DragonFlyBSD's Hammer FS types and type names.

MFC after: 2 weeks


# 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.


# 68e53e75 22-Sep-2010 Jayachandran C. <jchandra@FreeBSD.org>

Add MIPS platform, this will make bsdlabel(8) work on MIPS (when invoked
without a -m option. -m mips is still not supported)


# 11cdd0c0 19-Nov-2008 Rafal Jaworowski <raj@FreeBSD.org>

Initial storage functionality for U-Boot support library.

- Only non-sliced bsdlabel style partitioning is currently supported (but provisions
are made towards GPT support, which should follow soon)
- Enable storage support in loader on ARM

Obtained from: Semihalf


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

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


# 16630f34 12-Mar-2008 Remko Lodder <remko@FreeBSD.org>

Add missing comma.

PR: bin/121645
Submitted by: OISHI Masakuni <yamasa at bsdhouse dot org>
Approved by: imp (mentor, implicit for trivial changes)
MFC after: 3 days


# 93810b75 07-Dec-2007 Marcel Moolenaar <marcel@FreeBSD.org>

Add a file system type for ZFS (FS_ZFS).


# c6400868 07-Dec-2007 Marcel Moolenaar <marcel@FreeBSD.org>

Sync with NetBSD rev 1.101.
This also fixes fstypenames being short an entry.


# 73dbd3da 11-May-2006 John Baldwin <jhb@FreeBSD.org>

Remove various bits of conditional Alpha code and fixup a few comments.


# 0ea0d097 07-Apr-2005 Olivier Houchard <cognet@FreeBSD.org>

Treat arm as i386.


# 60727d8b 06-Jan-2005 Warner Losh <imp@FreeBSD.org>

/* -> /*- for license, minor formatting changes


# 82c6e879 06-Apr-2004 Warner Losh <imp@FreeBSD.org>

Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core


# 2d20f433 07-Jun-2003 Poul-Henning Kamp <phk@FreeBSD.org>

Sanitize the LABELSECTOR & LABELOFFSET definitions:
Remove sparc64 definitions.
Remove fallback definitions.


# b37d468c 07-Jun-2003 Peter Wemm <peter@FreeBSD.org>

Gah! Set LABELSECTOR and LABELOFFSET correctly for amd64. This might
explain why I've been having trouble with libdisk and sysinstall...


# 56dde750 02-May-2003 Poul-Henning Kamp <phk@FreeBSD.org>

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.


# daabb372 17-Apr-2003 Poul-Henning Kamp <phk@FreeBSD.org>

Separate the encoding/decoding functions for struct disklabel into a
separate source file which can be used from both kernel and userland code.


# 9f88fdfb 03-Apr-2003 Poul-Henning Kamp <phk@FreeBSD.org>

NO_GEOM cleanup: Remove dkmakeminor().


# 5777c5b9 30-Jan-2003 Poul-Henning Kamp <phk@FreeBSD.org>

NO_GEOM cleanup: unifdef


# afdc2f67 26-Jan-2003 Poul-Henning Kamp <phk@FreeBSD.org>

Add ioctl which overwrites the first BBSIZE bytes of a BSD labeled disk.


# 5bdd667f 26-Jan-2003 Poul-Henning Kamp <phk@FreeBSD.org>

Put DIOCWLABEL under #ifdef NO_GEOM


# 718af14f 21-Jan-2003 Poul-Henning Kamp <phk@FreeBSD.org>

#ifdef NO_GEOM some bits here too.


# f9d186ed 20-Oct-2002 Scott Long <scottl@FreeBSD.org>

After much delay and anticipation, welcome RAIDFrame into the FreeBSD
world. This should be considered highly experimental.

Approved-by: re


# 28dcd19b 13-Oct-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Correctly account for MAXPARTITIONS in the CTASSERT() which protects the
size of the disklabel structure.

Hit by: schweikh


# 9b30d719 10-Oct-2002 Chad David <davidc@FreeBSD.org>

Correct the offset of the 'jfs' entry in fstypenames.


# c111eed9 01-Oct-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Divorce bsd disklabels, IBM PC MBR's and whatever the things are
called on NEC PC98 machines.

Sponsored by: DARPA & NAI Labs.


# 2382fb0a 20-Sep-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Make FreeBSD "struct disklabel" agnostic, step 312 of 723:

Rename bioqdisksort() to bioq_disksort().
Keep a #define around to avoid changing all diskdrivers right now.

Move it from subr_disklabel.c to subr_disk.c.
Move prototype from <sys/disklabel.h> to <sys/bio.h>

Sponsored by: DARPA and NAI Labs.


# f90c382c 19-Sep-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Make FreeBSD "struct disklabel" agnostic, step 311 of 723:

Rename diskerr() to disk_err() for naming consistency.

Drop the by now entirely useless struct disklabel argument.

Add a flag argument for new-line termination.

Fix a couple of printf-format-casts to %j instead of %l.

Correctly print the name of all bio commands.

Move the function from subr_disklabel.c to subr_disk.c,
and from <sys/disklabel.h> to <sys/disk.h>.

Use the new disk_err() throughout, #include <sys/disk.h> as needed.

Bump __FreeBSD_version for the sake of the aac disk drivers #ifdefs.

Remove unused disklabel members of softc for aac, amr and mlx, which seem
to originally have been intended for diskerr() use, but which only rotted
and got Copy&Pasted at least two times to many.

Sponsored by: DARPA & NAI Labs.


# 46714777 20-Sep-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Retire now unused DIOCGDVIRGIN kludge.

Sponsored by: DARPA & NAI Labs.


# fbbdde85 08-Sep-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Deal with a new exteded MBR paritition type

Submitted by: Michal Mertl <mime@traveller.cz>


# f341f36a 16-Aug-2002 Alfred Perlstein <alfred@FreeBSD.org>

forgot to actually commit the DK/FS TYPES split, do it now.


# c4bacc18 19-Jun-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Remove the compat bits for the mis-aligned struct disklabel on alpha,
people got three times longer than I promised.

Sponsored by: DARPA & NAI Labs.


# d394511d 16-May-2002 Tom Rhodes <trhodes@FreeBSD.org>

More s/file system/filesystem/g


# 7110af75 12-May-2002 Poul-Henning Kamp <phk@FreeBSD.org>

ARGH! SBLOCK is not unused. Try to get this right.

BBSIZE belongs in <sys/disklabel.h> (but shouldn't be a constant).

Define SBLOCK again, using the right math.

Sponsored by: DARPA & NAI Labs.


# 62563373 17-Apr-2002 Alfred Perlstein <alfred@FreeBSD.org>

De-K&R dkcksum() to fix some issues with c++.

Submitted by: Miguel Mendez <flynn@energyhq.homeip.net>


# 2dd527b3 08-Apr-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Move generic disk ioctls from <sys/disklabel.h> to <sys/disk.h>.

Sponsored by: DARPA & NAI Labs


# 1265c0ce 08-Apr-2002 Poul-Henning Kamp <phk@FreeBSD.org>

In reverence of the 3rd X11 development rule:

3.The only thing worse than generalizing from one example
is generalizing from no examples at all.

Remove the fwcylinders attribute before anybody gets the idea that we
alone have squared the circle.

Sponsored by: DARPA & NAI Labs.


# 1ae3f81d 07-Apr-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Constify.

Sponsored by: DARPA & NAI Labs.


# f67ad03a 04-Apr-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Delete the bogus d_boot[01] fields from struct disklabel.

This shrinks the size 4 bytes on alpha, down to the same 276 bytes
as all other platforms.

Construct a hack to make old ioctls work on new kernels.

Once world is recompiled only the new and correct sysctls will be
used.

This hack will become annoying around 1st of may to make people
rebuild their worlds and it will be gone before 5.0.


# e6952b6e 04-Apr-2002 Poul-Henning Kamp <phk@FreeBSD.org>

CTASSERT the size of struct dos_partition.


# 408ab1b8 02-Apr-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Retire the bogus ioctl DIOCGPART in toto.

Once again we can notice that badly thought out hacks ferment and infect
far more code than initially expected.

Sponsored by: DARPA and NAI Labs.


# 27252e8f 01-Apr-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Really sweep the broom on this one.

It's amazing how much cruft accumulate over the years...


# 97ec57d9 01-Apr-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Remove various controller/disk type hacks for SMD, ST506 and ancient
SCSI stuff which have far outlived its sell by date.


# 81661c94 31-Mar-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Here follows the new kernel dumping infrastructure.

Caveats:

The new savecore program is not complete in the sense that it emulates
enough of the old savecores features to do the job, but implements none
of the options yet.

I would appreciate if a userland hacker could help me out getting savecore
to do what we want it to do from a users point of view, compression,
email-notification, space reservation etc etc. (send me email if
you are interested).

Currently, savecore will scan all devices marked as "swap" or "dump" in
/etc/fstab _or_ any devices specified on the command-line.

All architectures but i386 lack an implementation of dumpsys(), but
looking at the i386 version it should be trivial for anybody familiar
with the platform(s) to provide this function.

Documentation is quite sparse at this time, more to come.

Details:

ATA and SCSI drivers should work as the dump formatting code has been
removed. The IDA, TWE and AAC have not yet been converted.

Dumpon now opens the device and uses ioctl(DIOCGKERNELDUMP) to set
the device as dumpdev. To implement the "off" argument, /dev/null
is used as the device.

Savecore will fail if handed any options since they are not (yet)
implemented. All devices marked "dump" or "swap" in /etc/fstab
will be scanned and dumps found will be saved to diskfiles
named from the MD5 hash of the header record. The header record
is dumped in readable format in the .info file. The kernel
is not saved. Only complete dumps will be saved.

All maintainer rights for this code are disclaimed: feel free to
improve and extend.

Sponsored by: DARPA, NAI Labs


# 9ef2b1f2 27-Mar-2002 Greg Lehey <grog@FreeBSD.org>

Add d_type and fstype names for JFS.

Requested by: Hiten Pandya <hiten@uk.FreeBSD.org>


# 8dc8db27 23-Mar-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Revert last commit, it came too late to save alpha :-(


# 50abd3e1 23-Mar-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Hide the ugly d_boot[01] from the kernel.


# c58eb46e 23-Mar-2002 Bruce Evans <bde@FreeBSD.org>

Fixed some style bugs in the removal of __P(()). The main ones were
not removing tabs before "__P((", and not outdenting continuation lines
to preserve non-KNF lining up of code with parentheses. Switch to KNF
formatting and/or rewrap the whole prototype in some cases.


# 789f12fe 19-Mar-2002 Alfred Perlstein <alfred@FreeBSD.org>

Remove __P


# 00dcdc8d 19-Mar-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Add five GEOM oriented ioctls to get basic information about a geom device.


# 1ffbafa2 12-Mar-2002 Jake Burkholder <jake@FreeBSD.org>

LABELOFFSET is 128 for sparc64.

Submitted by: tmm
Forgotten by: obrien


# 875b0335 09-Mar-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Hide the DIOCGPART ioctl from userland where it has no decent use.

It's use in the kernel is also highly suspect due to the total absense
of any kind of lifetime definition of the passed pointers.


# e58b5938 17-Jan-2002 Bruce Evans <bde@FreeBSD.org>

Uninlined most of the bloated inline functions in <sys/disklabel.h>. Some
of them need to become even larger to support devfs.


# d7cd4f8e 17-Jan-2002 Bruce Evans <bde@FreeBSD.org>

Garbage-collect vestiges of disksort(). We now have only one disksort()
again, but its name has regressed to bioqdisksort().

Fixed some style bugs


# 20a3b67c 04-Nov-2001 Poul-Henning Kamp <phk@FreeBSD.org>

Rename the top 7 bits if disk minors to spare bits, rather than type bits.


# c4e7b7e2 05-Oct-2001 Doug Rabson <dfr@FreeBSD.org>

Put the label at the same place as i386 for compatibility.


# 2af8d76d 13-Sep-2001 David E. O'Brien <obrien@FreeBSD.org>

Re-apply rev 1.178 -- style(9) the structure definitions.
I have to wonder how many other changes were lost in the KSE mildstone 2 merge.


# 2fedd05c 13-Jan-2001 Warner Losh <imp@FreeBSD.org>

Use ANSI prototype and function definition for dkcksum so that this
file can be included with C++ again. This appears to have been broken
in 1.54 with the introduction of it as an inline function.


# e6c86672 15-Dec-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Make a #define for the highest legal disk unit (0x1ff)


# cb7e609a 26-Nov-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Make diskerr() always log with printf.


# e7c2b5a5 31-Oct-2000 Jordan K. Hubbard <jkh@FreeBSD.org>

Add a new ioctl for doing virgin disklabels.

Submitted by: dillon


# 19cf3044 19-Sep-2000 Poul-Henning Kamp <phk@FreeBSD.org>

GC some LFS lint.


# fa0c13fa 16-Sep-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Add proper prototype for dkcksum();


# fc87418b 16-Sep-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Turn dkcksum() into an __inline function.

Change its type to u_int_16_t.


# b5b8b79d 29-Apr-2000 Jonathan Lemon <jlemon@FreeBSD.org>

Define more DOSPTYP_* constants for different filesystem types

Reminded by: ps


# 11f8a0ca 18-Apr-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Retire bufqdisksort(), all drivers use bioqdisksort now.


# 8177437d 14-Apr-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Complete the bio/buf divorce for all code below devfs::strategy

Exceptions:
Vinum untouched. This means that it cannot be compiled.
Greg Lehey is on the case.

CCD not converted yet, casts to struct buf (still safe)

atapi-cd casts to struct buf to examine B_PHYS


# 282ac69e 02-Apr-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Clone bio versions of certain bits of infrastructure:
devstat_end_transaction_bio()
bioq_* versions of bufq_* incl bioqdisksort()
the corresponding "buf" versions will disappear when no longer used.

Move b_offset, b_data and b_bcount to struct bio.

Add BIO_FORMAT as a hack for fd.c etc.

We are now largely ready to start converting drivers to use struct
bio instead of struct buf.


# 664a31e4 28-Dec-1999 Peter Wemm <peter@FreeBSD.org>

Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot). This is consistant with the other
BSD's who made this change quite some time ago. More commits to come.


# 7d596167 08-Dec-1999 Poul-Henning Kamp <phk@FreeBSD.org>

Remove BAD144 support, it has already been disabled for some time.


# 883bbae4 01-Oct-1999 Bruce Evans <bde@FreeBSD.org>

Fixed breakage of userland K&R support in rev.1.39. Kernel inline functions
with new-style function definitions were exported.


# 685ea22f 13-Sep-1999 Bruce Evans <bde@FreeBSD.org>

Oops, I forgot to commit this together with the updates to the callers.

Removed diskerr()'s unused d_name arg and updated callers. This fixes
warnings caused by the arg having the wrong type (not const enough).
The arg was also wrong (a full name instead of a short one) for calls
from from subr_diskmbr.c and pc98/diskslice_machdep.c.


# df8f2923 01-Sep-1999 Poul-Henning Kamp <phk@FreeBSD.org>

Try to win back the "removal of most crufty code" trophy from markm:

Remove WD formatting code which has never worked in 386bsd or FreeBSD.

Remove DIOCSSTEP and DIOCSRETRIES ioctls as well, they belong in
history, along with the SMD disks.

OK'ed by: bde


# f054c290 29-Aug-1999 Poul-Henning Kamp <phk@FreeBSD.org>

Merge alpha and pc98 changes into i386 MBR handling code and replace all
three copies with one copy in MI land.


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 49ff4deb 14-Aug-1999 Poul-Henning Kamp <phk@FreeBSD.org>

Spring cleaning around strategy and disklabels/slices:

Introduce BUF_STRATEGY(struct buf *, int flag) macro, and use it throughout.
please see comment in sys/conf.h about the flag argument.

Remove strategy argument from all the diskslice/label/bad144
implementations, it should be found from the dev_t.

Remove bogus and unused strategy1 routines.

Remove open/close arguments from dssize(). Pick them up from dev_t.

Remove unused and unfinished setgeom support from diskslice/label/bad144 code.


# 95c20645 10-Aug-1999 Warner Losh <imp@FreeBSD.org>

mfs: DOC2K label type for legacy labels


# 90f940b9 01-Jul-1999 Peter Wemm <peter@FreeBSD.org>

Prototype for alpha_fix_srm_checksum().


# 1637aa4b 08-May-1999 Poul-Henning Kamp <phk@FreeBSD.org>

Fix some of the places where too much inside knowledge about major/minor
layout and dev_t structure is being (ab)used.


# 0fc8c556 03-Apr-1999 Bruce Evans <bde@FreeBSD.org>

Fixed some style bugs (mainly vinum ones and ones fixed in Lite2 but
not here).


# 84ac4f6b 22-Mar-1999 Greg Lehey <grog@FreeBSD.org>

Add partition type for Vinum.

Offered-for-inspection-to: jkh


# 4eb053a5 03-Jan-1999 Jordan K. Hubbard <jkh@FreeBSD.org>

catch a /boot doc instance I missed.


# dfb80032 24-Aug-1998 Doug Rabson <dfr@FreeBSD.org>

Remove a useless ifdef which made struct disklabel have a different
size in kernel and user builds on the alpha and prevented various ioctls
from working.


# 8596f399 12-Jul-1998 Doug Rabson <dfr@FreeBSD.org>

Point at the correct disk location for alpha disklabels.


# a9a25290 06-Jul-1998 Bruce Evans <bde@FreeBSD.org>

Don't assume that longs are 32 bits in struct dos_partition.


# ecbb00a2 07-Jun-1998 Doug Rabson <dfr@FreeBSD.org>

This commit fixes various 64bit portability problems required for
FreeBSD/alpha. The most significant item is to change the command
argument to ioctl functions from int to u_long. This change brings us
inline with various other BSD versions. Driver writers may like to
use (__FreeBSD_version == 300003) to detect this change.

The prototype FreeBSD/alpha machdep will follow in a couple of days
time.


# 4f492074 22-Feb-1998 David Greenman <dg@FreeBSD.org>

The changes I had made long ago to support >32 disk-type units was
incomplete; dkmakeminor was broken for >32. I noticed this when trying
to use more than 32 ccd units on wcarchive.
Reviewed by: bde


# be10e2b4 17-Feb-1998 Jordan K. Hubbard <jkh@FreeBSD.org>

Reserve ID for Greg Lehey's Veritas look-alike.


# 8bcc577e 01-Feb-1998 Bruce Evans <bde@FreeBSD.org>

Forward declare more structs that are used in prototypes here - don't
depend on <sys/types.h> forward declaring common ones.


# 5957b261 21-Sep-1997 Justin T. Gibbs <gibbs@FreeBSD.org>

buf.h:
Change the definition of a buffer queue so that bufqdisksort can
properly deal with bordered writes.

Add inline functions for accessing buffer queues. This should be
considered an opaque data structure by clients.

callout.h:
New callout implementation.

device.h:
Add support for CAM interrupts.

disk.h:
disklabel.h:
tqdisksort->bufqdisksort

kernel.h:
Add new configuration entries for configuration hooks and calling
cpu_rootconf and cpu_dumpconf.

param.h:
Add a priority for sleeping waiting on config hooks.

proc.h:
Update for new callout implementation.

queue.h:
Add TAILQ_HEAD_INITIALIZER from NetBSD.

systm.h:
Add prototypes for cpu_root/dumpconf, splcam, splsoftcam, etc..


# 6875d254 22-Feb-1997 Peter Wemm <peter@FreeBSD.org>

Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not
ready for it yet.


# fe95dc61 24-Jan-1997 David Greenman <dg@FreeBSD.org>

Changed dkunit() to use some previously unused bits in the 'type' field
to extend the unit field to 9 bits (512 units).


# 1130b656 14-Jan-1997 Jordan K. Hubbard <jkh@FreeBSD.org>

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# ebedb5ad 21-Sep-1996 Bruce Evans <bde@FreeBSD.org>

Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:
- don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h>
instead. This was already done in 4.4Lite for the most important
ioctl headers. Header spam currently increases kernel build
times by 10-20%. There are more than 30000 #includes (not counting
duplicates) for compiling LINT.
- include <sys/types.h> if and only it is necessary to make the header
almost self-sufficient (some ioctl headers still need structs from
elsewhere).
- uniformized idempotency ifdefs. Copied the style in the 4.4Lite
ioctl headers.


# 253c0899 20-Sep-1996 Bruce Evans <bde@FreeBSD.org>

Don't include <sys/conf.h> for the kernel in disk-related headers.
It is needed for implementation details but very little of it is
needed for the interface. Include it in the few places that didn't
already include it.

Include <sys/ioccom.h> in <sys/disklabel.h> (as already in
<sys/diskslice.h>) so that all the disk-related headers are almost
self-sufficient.


# ad63a118 14-Jun-1996 Satoshi Asami <asami@FreeBSD.org>

The Great PC98 Merge.

All new code is "#ifdef PC98"ed so this should make no difference to
PC/AT (and its clones) users.

Ok'd by: core
Submitted by: FreeBSD(98) development team


# 844cdc57 02-May-1996 Satoshi Asami <asami@FreeBSD.org>

Bring in ccd support.

New disk type for ccd.


# 02e2c406 11-Mar-1996 Peter Wemm <peter@FreeBSD.org>

Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all
files are off the vendor branch, so this should not change anything.

A "U" marker generally means that the file was not changed in between
the 4.4Lite and Lite-2 releases, and does not need a merge. "C" generally
means that there was a change.
[new sys/syscallargs.h file, to be "cvs rm"ed]


# 5bc24578 10-Mar-1996 Jeffrey Hsu <hsu@FreeBSD.org>

Merge in Lite2: use fixed-width types and reformat comments.
Reviewed by: davidg & bde


# 9c68e470 24-Nov-1995 Bruce Evans <bde@FreeBSD.org>

Oops, the previous change was missing the declaration of `struct
buf_queue_head'. It isn't forward declared in <sys/types.h> like
`struct buf'.


# 88c2c2b3 24-Nov-1995 Bruce Evans <bde@FreeBSD.org>

Declared tqdisksort(). <sys/disklabel.h> is the wrong place, but
<sys.disk.h> isn't used, so the declaration there isn't seen.


# 191e1a59 16-Sep-1995 Bruce Evans <bde@FreeBSD.org>

Remove transitory labelling code. Labels are now handled by essentially
the original 4.4lite code. Machine Specific Partitions are now handled
separately.


# 9b2e5354 30-May-1995 Rodney W. Grimes <rgrimes@FreeBSD.org>

Remove trailing whitespace.


# 60f6659f 16-May-1995 David Greenman <dg@FreeBSD.org>

Changes to support the "new" bad144. Adds a "BADSCAN" ioctl and support.

Reviewed by: Bruce Evans
Submitted by: Poul-Henning Kamp


# aeb0491c 15-May-1995 David Greenman <dg@FreeBSD.org>

Removed extraneous comma.

Reviewed by: Bruce Evans


# 6f76a2ca 30-Apr-1995 Julian Elischer <julian@FreeBSD.org>

making a reservation for more bits before people start using them
in the minor number, (this stuff HAS to go!)
The change I want is:
/*
3 2 1 0
1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
_________________________________________________________________
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
-----------------------------------------------------------------
| TYPE | SLICE | MAJOR? | UNIT |PART | <-now
-----------------------------------------------------------------
| TYPE |PART2| SLICE | MAJOR? | UNIT |PART | <-soon
-----------------------------------------------------------------

I want 3 more part bits (taken from 'TYPE' (useless as it is) (JRE)
*/


# b7521ff5 15-Apr-1995 Bruce Evans <bde@FreeBSD.org>

Remove bogus unused `struct cpu_disklabel'.


# b5e8ce9f 16-Mar-1995 Bruce Evans <bde@FreeBSD.org>

Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from
`gcc -Wnested-externs'. Fix all the bugs found. There were no serious
ones.


# 60a411da 22-Feb-1995 Bruce Evans <bde@FreeBSD.org>

Add a prototype.


# 63856251 11-Dec-1994 Bruce Evans <bde@FreeBSD.org>

disklabel.h:
Prepare for disk slices - more macros for handling disk device numbers,
version of readdisklabel() without DOS goop.
Clean up prototypes.
Uniformize idempotency ifdef.

diskslice.h:
New file.

dkbad.h:
Define more magic numbers.
Declare internalized version of dkbad struct and functions to operate on it.
Uniformize idempotency ifdef.


# 3d06c6b3 14-Nov-1994 Bruce Evans <bde@FreeBSD.org>

Declare `struct dkbad' with the correct scope so that everything including
<sys/disklabel.h> doesn't have to include <sys/dkbad.h> to avoid compiler
warnings.


# ffc3b242 30-Oct-1994 Poul-Henning Kamp <phk@FreeBSD.org>

changed '#ifdef i386' to '#ifdef __i386__'


# 54c7241b 27-Oct-1994 Jordan K. Hubbard <jkh@FreeBSD.org>

Julian Elischer's disklabel fixes.


# 5b3ccce6 20-Oct-1994 Paul Richards <paul@FreeBSD.org>

Added
#define MBR_PTYPE_FreeBSD 0xa5 /* FreeBSD partition type */


Reviewed by:
Submitted by:
Obtained from:


# af9da405 20-Aug-1994 Paul Richards <paul@FreeBSD.org>

Made them all idempotent.
Reviewed by:
Submitted by:


# 3c4dd356 02-Aug-1994 David Greenman <dg@FreeBSD.org>

Added $Id$


# 26f9a767 25-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.

Reviewed by: Rodney W. Grimes
Submitted by: John Dyson and David Greenman


# df8bae1d 24-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Kernel Sources