History log of /freebsd-head/sys/geom/part/g_part_vtoc8.c
Revision Date Author Comments
8d66daf2fc58287e91407ac609da7b760706575c 26-Jul-2020 delphij <delphij@FreeBSD.org> Use snprintf instead of sprintf.

MFC after: 2 weeks
06fbdeb8692466b6a6ba2fe1edbc3a0e1487e1cd 05-Dec-2019 mav <mav@FreeBSD.org> Remove duplicate g_debugflags declaration.

While there, define G_F_FOOTSHOOTING instead of numeric constants.

MFC after: 13 days
X-MFX-with: r355412
dd6f2f2c8db6f6b0def5142f024bc873b1151cdf 10-Apr-2018 kevans <kevans@FreeBSD.org> Annotate geom modules with MODULE_VERSION

GEOM ELI may double ask the password during boot. Once at loader time, and
once at init time.

This happens due a module loading bug. By default GEOM ELI caches the
password in the kernel, but without the MODULE_VERSION annotation, the
kernel loads over the kernel module, even if the GEOM ELI was compiled into
the kernel. In this case, the newly loaded module
purges/invalidates/overwrites the GEOM ELI's password cache, which causes
the double asking.

MFC Note: There's a pc98 component to the original submission that is
omitted here due to pc98 removal in head. This part will need to be revived
upon MFC.

Reviewed by: imp
Submitted by: op
Obtained from: opBSD
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D14992
a82e3a8b2430553d1a48209e110921023d727e45 27-Nov-2017 pfg <pfg@FreeBSD.org> sys/geom: adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

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.
00d578928eca75be320b36d37543a7e2a4f9fbdb 27-May-2016 grehan <grehan@FreeBSD.org> Create branch for bhyve graphics import.
8e5289f450c978cf458941bf5d2dd8bd3a7d7a9b 12-May-2014 ae <ae@FreeBSD.org> MFC r256690:
Add an automatic resize support to the GEOM_PART class.

When parent provider has been resized, the scheme specific G_PART_RESIZE
method does an update of scheme's metadata. But all changes are not saved
to disk, until `gpart commit` will be called.

MFC r265336:
Add an advice what to do when partition was automatically resized.
8bd4b60954efb98793d3eb0c22a8d3f8c4ca0d48 12-May-2014 ae <ae@FreeBSD.org> MFC r265318:
For schemes that do an automatic partition aligning move this code to
separate function.

MFC r265331:
Prevent an unexpected shrinking on resizing due to alignment for MBR,
PC98 and VTOC8 schemes.

MFC r265333:
Add better error description for case when we are doing resize and
scheme-specific method returns EBUSY.

MFC r265539:
It is safe to allow shrinking, when aligned size is bigger than current.
9a65da5a22dd91368d4faca1f36fe3bdbcfa556b 07-May-2014 ae <ae@FreeBSD.org> It is safe to allow shrinking, when aligned size is bigger than current.

Tested by: jmg
MFC after: 1 week
8488e4961e9264865a12c05eb56783746541c717 04-May-2014 ae <ae@FreeBSD.org> Prevent an unexpected shrinking on resizing due to alignment for MBR,
PC98 and VTOC8 schemes.

Reported by: jmg
MFC after: 1 week
000f6e777d1cdc96e15c55bda087e7ab580ca626 04-May-2014 ae <ae@FreeBSD.org> For schemes that do an automatic partition aligning move this code to
separate function.

MFC after: 1 week
eb1a5f8de9f7ea602c373a710f531abbf81141c4 21-Feb-2014 gjb <gjb@FreeBSD.org> Move ^/user/gjb/hacking/release-embedded up one directory, and remove
^/user/gjb/hacking since this is likely to be merged to head/ soon.

Sponsored by: The FreeBSD Foundation
6b01bbf146ab195243a8e7d43bb11f8835c76af8 27-Dec-2013 gjb <gjb@FreeBSD.org> Copy head@r259933 -> user/gjb/hacking/release-embedded for initial
inclusion of (at least) arm builds with the release.

Sponsored by: The FreeBSD Foundation
05ca533af6819555c1c445085cd62d92ae824773 17-Oct-2013 ae <ae@FreeBSD.org> Add an automatic resize support to the GEOM_PART class.

When parent provider has been resized, the scheme specific G_PART_RESIZE
method does an update of scheme's metadata. But all changes are not saved
to disk, until `gpart commit` will be called.

Discussed with: trasz
MFC after: 1 month
5306b1eeab09fc89054e9d4151e0f7b293e90146 25-May-2012 marcel <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".
081cdfe9e8b89797fda367f5995e951143c640c1 18-Oct-2011 marius <marius@FreeBSD.org> Allow to dump on Solaris swap partitions.

PR: 161764
Submitted by: Peter Jeremy
c286c25c24b9a15205c9702097bc1df37ff3e9ae 08-May-2011 ae <ae@FreeBSD.org> Limit number of sectors that can be addressed.

MFC after: 1 week
6bf702a55bf6e540929bc37a97ba26e51394a94c 25-Feb-2011 netchild <netchild@FreeBSD.org> Add some FEATURE macros for various GEOM classes.

No FreeBSD version bump, the userland application to query the features will
be committed last and can serve as an indication of the availablility if
needed.

Sponsored by: Google Summer of Code 2010
Submitted by: kibab
Reviewed by: silence on geom@ during 2 weeks
X-MFC after: to be determined in last commit with code from this project
09f9c897d33c41618ada06fbbcf1a9b3812dee53 19-Oct-2010 jamie <jamie@FreeBSD.org> A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.
e326b6b301594e3e1b6cdc9e7f0922dddc89becc 24-May-2010 marius <marius@FreeBSD.org> Fix some whitespace nits.
be854af5d14098bfb67a3e4bed86d0bb5d62cc92 23-Apr-2010 marcel <marcel@FreeBSD.org> Implement the resize verb and add support for resizing partitions
for all schemes but EBR. Quality work by Andrey!

Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru>
f1216d1f0ade038907195fc114b7e630623b402c 19-Mar-2010 delphij <delphij@FreeBSD.org> Create a custom branch where I will be able to do the merge.
7133fbf3b234a6ce945c663259c9513aa6a2abb6 25-Jan-2010 trasz <trasz@FreeBSD.org> Remove unneeded variables.

Found with: clang
fb9da0fe39318da02647e8a8c6c9aad750d8f099 10-Feb-2009 imp <imp@FreeBSD.org> Fix g_part_dumpconf and g_part_name prototpyes.

Submitted by: marcel@
87687bfd7cea7933b61cd479f8b5a8cdef8a71c6 06-Jan-2009 marius <marius@FreeBSD.org> - Don't enforce an upper-bound to the number of sectors or heads,
allowing the full 16-bit width of the corresponding fields in the
VTOC8 label to be used. The removed limits basically only held
true for providers labeled using the synthetic geometry provided
by cam_calc_geometry(9) but neither SCSI disks labeled with Solaris
nor sufficiently large ATA disks.
- Given that providers (originally) labeled with Solaris typically
use the native geometry as reported by the target while FreeBSD
typically uses a synthetic one put the message complaining about
mismatching geometries between what the label indicates and what
GEOM thinks the provider has, which we generally can't help,
under bootverbose in order to not unnecessarily scare users.
- For informational purposes add the non-matching values to the
message complaining about them, similar to what r186501 did for
g_part_bsd_read() except also indicating the origin of the
values.
- Make it clear that the messages emitted by this code refer to
the VTOC8 support rather than to another existing scheme or to
VTOC32.
c02233b6bd48b89e7ffa97d7e7b6ba7f7622f72e 22-Oct-2008 marcel <marcel@FreeBSD.org> Allow dumps to partitions with a tag of 0. The legacy
sunlabel implementation in FreeBSD does not use VTOC
information and as such as no partition types.
cf5320822f93810742e3d4a1ac8202db8482e633 19-Oct-2008 lulf <lulf@FreeBSD.org> - Import the HEAD csup code which is the basis for the cvsmode work.
77394dc9ce6e1491077a3de6f6aa6e80fbf0221a 26-Jul-2008 marcel <marcel@FreeBSD.org> MFC r179747-179748,179750-179752,179755-179756

Add the raw partition type to the XML.
1053568d9da027edf9d7e40fef69b0fe630965ff 12-Jun-2008 marcel <marcel@FreeBSD.org> Add the raw partition type to the XML.
a512895f3c87ff4e222e8d5d9ab7f9a3a7d9b149 09-Jun-2008 marcel <marcel@FreeBSD.org> MFC r177223 through r179684:
o Redefine G_PART_SCHEME_DECLARE() from populating a private
linker set to declaring a proper module.
o Add support for PC-9800 partition tables.
o Change the order from SI_ORDER_FIRST to SI_ORDER_ANY (within
SI_SUB_DRIVERS) to avoid loading schemes before all the GEOM
classes have been loaded and initialized.
o Add the bootcode verb for installing boot code.
o Implement the G_PART_DUMPCONF method for all 6 schemes.
38e8adf72053670c84a15fd57d641357ec1d4501 23-Apr-2008 marcel <marcel@FreeBSD.org> Implement the G_PART_DUMPCONF method for all 6 schemes. Also call
the method for the (indent == NULL) case (i.e. the kern.geom.conftxt
sysctl). The purpose is to extend the conftxt output with scheme-
specific fields which can be used by libdisk. In particular, have
the schemes dump the xs and xt fields, which contain the backward
compatible values for class type and partition type. This allows
libdisk to work with the legacy slicers as well as with gpart and
helps/promotes migration.
c184f6ced2d94b18defce564aa19ac904e701381 23-Mar-2008 marcel <marcel@FreeBSD.org> Redefine G_PART_SCHEME_DECLARE() from populating a private linker set
to declaring a proper module. The module event handler is part of the
gpart core and will add the scheme to an internal list on module load
and will remove the scheme from the internal list on module unload.
This makes it possible to dynamically load and unload partitioning
schemes.
334ffce88b5d77b86a0c926590c3ed15d6278080 15-Mar-2008 cvs2svn <cvs2svn@FreeBSD.org> This commit was manufactured by cvs2svn to create branch 'RELENG_7'.
dd3a7906ab066bb6da5ec7f1fcf0fbe6d1ddc268 02-Mar-2008 marcel <marcel@FreeBSD.org> Add support for VTOC8 labels (aka sun disk labels). When a label does
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.