#
332640 |
|
17-Apr-2018 |
kevans |
MFC r332387: 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.
This MFC commit differs slightly from head, due to pc98 removal. These changes were trivial and should be obvious.
|
#
332521 |
|
16-Apr-2018 |
kevans |
MFC r323108, r323125, r326047-r326049
r323108: Add efimedia attribute for all GPT partitions.
r323125: The hard drive media device path contains the size of the partition, not its end. This makes the GEOM efimedia attribute match the FreeBSD:Boot1Device environment variable now.
r326047: Implement efi media tagging for MBR partitioning types.
r326048: Remove trailing whitespace (one I just introduced and a bunch of others in the same directory).
r326049: While the EFI spec allows numbers to be in many forms, libefivar produces hex numbers for the dsn. Since that come is from EDK2, change this for symmetry, by generating the dsn as a hex number.
[Missed as part of the efivar/efibootmgr MFCs]
Reported by: Oliver Pinter <oliver.pinter@hardenedbsd.org>
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
268256 |
|
04-Jul-2014 |
nwhitehorn |
After EFI support was added to the installer, it needed to allow boot partitions of types other than "freebsd-boot" (in particular, "efi"). This allows the removal of some nasty hacks for supporting PowerPC systems, in particular aliasing freebsd-boot to apple-boot on APM and an IBM-specific code on MBR.
This changes the installer to use the correct names, which also breaks a degeneracy in the meaning of "freebsd-boot" that allows the addition of support for some newer IBM systems that can boot from GPT in addition to MBR. Since I have no idea how to detect which those systems are, leave the default on IBM PPC systems as MBR for now.
|
#
266880 |
|
30-May-2014 |
ae |
Use g_conf_printf_escaped() to escape symbols, which can break an XML tree.
MFC after: 1 week
|
#
256690 |
|
17-Oct-2013 |
ae |
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
|
#
253938 |
|
04-Aug-2013 |
marcel |
Remove inclusion of <sys/diskmbr.h>. We have no business knowing anything related to MBR in this file.
|
#
236023 |
|
25-May-2012 |
marcel |
Add a partition type for nandfs to the apm, bsd, gpt and vtoc8 schemes. The gpart alias for these partition types is "freebsd-nandfs".
|
#
231349 |
|
10-Feb-2012 |
ae |
Let's be more realistic and limit maximum number of partition to 4k.
MFC after: 1 week
|
#
228076 |
|
28-Nov-2011 |
ae |
Add an ability to increase number of allocated APM entries when we have reserved free space in the APM area. Also instead of one write request per each APM entry, use MAXPHY sized writes when we are updating APM.
MFC after: 1 month
|
#
228061 |
|
28-Nov-2011 |
ae |
The size of APM could be bigger than number of already allocated entries. And the first usable sector should not start from the inside of APM area.
MFC after: 1 month
|
#
221654 |
|
08-May-2011 |
ae |
Limit number of sectors that can be addressed. Reject table if blkcount from metadata is greater than provider.
|
#
220652 |
|
15-Apr-2011 |
gavin |
Remove an incorrect be16toh() that prevented geom_part_apm from working on little-endian machines.
Reviewed by: marcel MFC after: 2 weeks
|
#
219029 |
|
25-Feb-2011 |
netchild |
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
|
#
208173 |
|
16-May-2010 |
nwhitehorn |
Teach gpart about bootcode on APM.
|
#
207094 |
|
23-Apr-2010 |
marcel |
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>
|
#
190461 |
|
27-Mar-2009 |
marcel |
Sharpen the saw: o Don't create an APM scheme underneath another scheme when the probe doesn't allow it. o APM uses 32-bit block numbers. Limit the scheme to 2^32-1 blocks when the media is larger.
|
#
188429 |
|
10-Feb-2009 |
imp |
Fix g_part_dumpconf and g_part_name prototpyes.
Submitted by: marcel@
|
#
184552 |
|
02-Nov-2008 |
imp |
Add support for reading Tivo Series 1 partitioning. This likely needs a little refinement, but is good enough to commit as is.
# Should look to see if I should move swab(3) into the kernel or just # provide the unoptimized routine here.
Reviewed by: marcel@
|
#
180717 |
|
22-Jul-2008 |
peter |
Trivial commit to attempt to diagnose a svn problem. Add comment that Tivo disks are APM, but do not have a DDR record.
|
#
179748 |
|
12-Jun-2008 |
marcel |
Add the partition label and the raw partition type to the XML.
|
#
178444 |
|
23-Apr-2008 |
marcel |
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.
|
#
177510 |
|
22-Mar-2008 |
marcel |
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.
|
#
172857 |
|
21-Oct-2007 |
marcel |
Add the freebsd-zfs alias. Both APM and GPT have ZFS partition types.
|
#
170362 |
|
06-Jun-2007 |
marcel |
Prefix unknown (i.e. un-aliased) partition types with '!'. This is how they had to be given with ctlreq.
|
#
169389 |
|
08-May-2007 |
marcel |
MFp4: 119373: o Remove the query verb, along with the request and response parameters. o Add the version and output parameters. 119390: [APM,GPT] Properly clear deleted entries. 119394: o Make the alias the standard and use the '!' to prefix literal partition types. o Treat schemes and partition types as case insensitive. 119462: [GPT] Fix a page fault caused when modifying a partition entry without a new partition type.
|
#
166551 |
|
07-Feb-2007 |
marcel |
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.
|