aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_redboot.c
Commit message (Collapse)AuthorAgeFilesLines
* GEOM: Remove redundant NULL pointer check before g_free()Zhenlei Huang2022-12-281-4/+2
| | | | | | Reviewed by: melifaro, pjd, imp Approved by: kp (mentor) Differential Revision: https://reviews.freebsd.org/D37779
* geom_map and geom_redboot: Remove unused ctlreq handler.Xin LI2020-07-261-13/+0
| | | | | | | | | | | | The two classes do not take any verbs and always gctl_error for all requests, so don't bother to provide a ctlreq handler. Reviewed by: mav MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D25810 Notes: svn path=/head/; revision=363584
* Extend stripeoffset and stripesize of GEOMs from u_int to off_tEugene Grosbein2018-10-271-3/+3
| | | | | | | | | | | | | | GEOM's stripeoffset overflows at 4 gigabyte margin (2^32) because of its u_int type. This leads to incorrect data in the output generated by "sysctl kern.geom.confxml" command, "graid list" etc. when GEOM array has volumes larger than 4G, for example. This change does not affect ABI but changes KBI. No MFC planned. Differential Revision: https://reviews.freebsd.org/D13426 Notes: svn path=/head/; revision=339815
* Annotate geom modules with MODULE_VERSIONKyle Evans2018-04-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=332387
* sys/geom: adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=326270
* [geom_redboot] Extend geom_redboot to handle non-zero fis offset.Adrian Chadd2016-10-041-1/+13
| | | | | | | | Submitted by: Mori Hiroki <yamori813@yahoo.co.jp> Differential Revision: https://reviews.freebsd.org/D7237 Notes: svn path=/head/; revision=306678
* - Give geom_redboot taste of flash/spi. Now there is another providerOleksandr Tymoshenko2010-02-031-1/+2
| | | | | | | | of redboot partitions. This patch was missed during merge from projects/mips. Notes: svn path=/head/; revision=203411
* Do not stop the loop when an empty or deleted directory entry is found.John Hay2009-06-241-1/+3
| | | | | | | Rather just skip over it. Notes: svn path=/head/; revision=194811
* o disallow write to RedBoot and FIS directory partitions; these are painfulSam Leffler2009-03-111-2/+23
| | | | | | | | | to resurrect (maybe honor foot shooting bit in kern.geom_debugflags) o fix match macro so we now recognize we want to merge FIS dir with RedBoot config parameters even if we don't actually do it Notes: svn path=/head/; revision=189660
* add geom_redboot, a geom module that exports RedBoot FIS partitions as namedSam Leffler2009-03-091-0/+321
slices in dev/redboot/* Notes: svn path=/head/; revision=189608