aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/bde
Commit message (Collapse)AuthorAgeFilesLines
* Remove GBDE source filesPoul-Henning Kamp2024-05-075-2125/+0
|
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-165-10/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-125-5/+5
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* GEOM: Remove redundant NULL pointer check before g_free()Zhenlei Huang2022-12-281-2/+1
| | | | | | Reviewed by: melifaro, pjd, imp Approved by: kp (mentor) Differential Revision: https://reviews.freebsd.org/D37779
* geom(4): Fix some of the "set but not used" warningsEdward Tomasz Napierala2021-12-181-4/+9
| | | | | | The few I've left in place look like potential bugs. Sponsored By: EPSRC
* Revert "geom_bde: plug set-but-not-used vars"Mateusz Guzik2021-12-091-4/+4
| | | | | | | | | | The commit at hand happens to break userspace build as the header ins included by sbin/gbde/gbde.c and the __diagused macro is not provided to userspace. Revert until this gets sorted out. This reverts commit 26e837e2d488cc3e484c88a511728e061205edc5.
* geom_bde: plug set-but-not-used varsMateusz Guzik2021-12-091-4/+4
| | | | Sponsored by: Rubicon Communications, LLC ("Netgate")
* gbde: replace malloc_last_fail with a kludgeMateusz Guzik2020-11-121-3/+17
| | | | | | | | This facilitates removal of malloc_last_fail without really impacting anything. Notes: svn path=/head/; revision=367626
* Make g_attach() return ENXIO for orphaned providers; update variousEdward Tomasz Napierala2020-10-181-1/+7
| | | | | | | | | | | | | classes to add missing error checking. Reviewed by: imp MFC after: 2 weeks Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D26658 Notes: svn path=/head/; revision=366811
* geom: clean up empty lines in .c and .h filesMateusz Guzik2020-09-013-5/+0
| | | | Notes: svn path=/head/; revision=365226
* Use explicit_bzero() instead of bzero() for sensitive data.John Baldwin2020-06-252-11/+11
| | | | | | | | | Reviewed by: delphij Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D25441 Notes: svn path=/head/; revision=362629
* 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-275-0/+10
| | | | | | | | | | | | | | | 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
* Use g_wither_provider() where applicable.Alexander Motin2016-09-231-1/+1
| | | | | | | | It is just a helper function combining G_PF_WITHER setting with g_orphan_provider(). Notes: svn path=/head/; revision=306279
* sys/geom: spelling fixes in comments.Pedro F. Giffuni2016-04-291-1/+1
| | | | | | | No functional change. Notes: svn path=/head/; revision=298808
* sys: use our roundup2/rounddown2() macros when param.h is available.Pedro F. Giffuni2016-04-211-1/+1
| | | | | | | | | | | | | rounddown2 tends to produce longer lines than the original code and when the code has a high indentation level it was not really advantageous to do the replacement. This tries to strike a balance between readability using the macros and flexibility of having the expressions, so not everything is converted. Notes: svn path=/head/; revision=298433
* Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.cAllan Jude2015-12-274-4/+4
| | | | | | | | | | | | | | | | | | | | | cperciva's libmd implementation is 5-30% faster The same was done for SHA256 previously in r263218 cperciva's implementation was lacking SHA-384 which I implemented, validated against OpenSSL and the NIST documentation Extend sbin/md5 to create sha384(1) Chase dependancies on sys/crypto/sha2/sha2.{c,h} and replace them with sha512{c.c,.h} Reviewed by: cperciva, des, delphij Approved by: secteam, bapt (mentor) MFC after: 2 weeks Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3929 Notes: svn path=/head/; revision=292782
* Constify the AES code and propagate to consumers. This allows us toDag-Erling Smørgrav2014-11-101-3/+3
| | | | | | | | | update the Fortuna code to use SHAd-256 as defined in FS&K. Approved by: so (self) Notes: svn path=/head/; revision=274340
* Translate the errno to gctl_error() texts.Poul-Henning Kamp2014-11-091-0/+17
| | | | | | | Spotted by: mwlucas Notes: svn path=/head/; revision=274313
* - Don't pass geom and provider names as format strings.Jaakko Heinonen2012-11-201-1/+1
| | | | | | | | | | - Add __printflike() attributes. - Remove an extra argument for the g_new_geomf() call in swapongeom_ev(). Reviewed by: pjd Notes: svn path=/head/; revision=243333
* Remove unneeded G_PF_CANDELETE flag.Ed Schouten2012-08-281-8/+0
| | | | | | | | This flag is only used by GEOM so it can be propagated to the character device's SI_CANDELETE. Unfortunately, SI_CANDELETE seems to do nothing. Notes: svn path=/head/; revision=239790
* Fix orphan() methods of several GEOM classes to not assume that thereEdward Tomasz Napierala2012-07-071-5/+1
| | | | | | | | | | | | is an error set on the provider. With GEOM resizing, class can become orphaned when it doesn't implement resize() method and the provider size decreases. Reviewed by: mav Sponsored by: FreeBSD Foundation Notes: svn path=/head/; revision=238198
* Add some FEATURE macros for various GEOM classes.Alexander Leidinger2011-02-251-0/+3
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=219029
* Rename the kthread_xxx (e.g. kthread_create()) callsJulian Elischer2007-10-202-2/+2
| | | | | | | | | | | | | | to kproc_xxx as they actually make whole processes. Thos makes way for us to add REAL kthread_create() and friends that actually make theads. it turns out that most of these calls actually end up being moved back to the thread version when it's added. but we need to make this cosmetic change first. I'd LOVE to do this rename in 7.0 so that we can eventually MFC the new kthread_xxx() calls. Notes: svn path=/head/; revision=172836
* Commit the results of the typo hunt by Darren Pilgrim.Yaroslav Tykhiy2006-08-041-1/+1
| | | | | | | | | | | | | This change affects documentation and comments only, no real code involved. PR: misc/101245 Submitted by: Darren Pilgrim <darren pilgrim bitfreak org> Tested by: md5(1) MFC after: 1 week Notes: svn path=/head/; revision=160964
* Kill leading whilespace.Maxim Sobolev2005-11-301-1/+1
| | | | Notes: svn path=/head/; revision=152966
* Normalize a significant number of kernel malloc type names:Robert Watson2005-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | - Prefer '_' to ' ', as it results in more easily parsed results in memory monitoring tools such as vmstat. - Remove punctuation that is incompatible with using memory type names as file names, such as '/' characters. - Disambiguate some collisions by adding subsystem prefixes to some memory types. - Generally prefer lower case to upper case. - If the same type is defined in multiple architecture directories, attempt to use the same name in additional cases. Not all instances were caught in this change, so more work is required to finish this conversion. Similar changes are required for UMA zone names. Notes: svn path=/head/; revision=151897
* Comment typoPoul-Henning Kamp2005-07-201-1/+1
| | | | Notes: svn path=/head/; revision=148192
* stop including rijndael-api-fst.h from rijndael.h.Hajimu UMEMOTO2005-03-114-4/+4
| | | | | | | this is required to integrate opencrypto into crypto. Notes: svn path=/head/; revision=143418
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-063-5/+6
| | | | Notes: svn path=/head/; revision=139778
* Fix typo in a comment.Christian Brueffer2004-12-151-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=138888
* Fix a problem that shows up if less than the full complement ofPoul-Henning Kamp2004-09-111-1/+1
| | | | | | | | lock sectors are defined ("number_of_keys" argument to gbde init being less than 4 in the default compile). Notes: svn path=/head/; revision=135085
* Respect that G_BDE_MAXKEYS is a compile time variable.Poul-Henning Kamp2004-09-111-4/+3
| | | | Notes: svn path=/head/; revision=135084
* Tag all geom classes in the tree with a version number.Poul-Henning Kamp2004-08-081-0/+1
| | | | Notes: svn path=/head/; revision=133318
* Use default method initialization on geoms.Poul-Henning Kamp2004-08-081-4/+4
| | | | Notes: svn path=/head/; revision=133314
* kthread_exit() no longer requires Giant, so don't force callers to acquireJohn Baldwin2004-03-051-1/+0
| | | | | | | | | Giant just to call kthread_exit(). Requested by: many Notes: svn path=/head/; revision=126674
* Do not check error code from closing ->access() calls, we know they succeed.Poul-Henning Kamp2004-02-141-3/+1
| | | | Notes: svn path=/head/; revision=125803
* Remove the absolute count g_access_abs() function since experience hasPoul-Henning Kamp2004-02-121-4/+4
| | | | | | | | | | | | | | | shown that it is not useful. Rename the relative count g_access_rel() function to g_access(), only the name has changed. Change all g_access_rel() calls in our CVS tree to call g_access() instead. Add an #ifndef BURN_BRIDGES #define of g_access_rel() for source code compatibility. Notes: svn path=/head/; revision=125755
* Polish the work/state engine in preparation for HW-crypto support.Poul-Henning Kamp2004-02-081-64/+65
| | | | Notes: svn path=/head/; revision=125591
* Add a missing error case return.Poul-Henning Kamp2004-02-081-0/+1
| | | | | | | Problem reported by: Flemming Jacobsen <fj@batmule.dk> Notes: svn path=/head/; revision=125590
* We don't need to hold Giant to create the worker kthread.Poul-Henning Kamp2004-02-071-2/+0
| | | | Notes: svn path=/head/; revision=125579
* Remove the MD5_KEY debugging toolPoul-Henning Kamp2004-01-231-33/+0
| | | | Notes: svn path=/head/; revision=124869
* Interior decoration changes.Poul-Henning Kamp2003-10-072-42/+39
| | | | Notes: svn path=/head/; revision=120876
* Correct bzero length so we clear the entire key structure.Poul-Henning Kamp2003-09-081-1/+1
| | | | Notes: svn path=/head/; revision=119891
* Bzero the right number of bytes.Poul-Henning Kamp2003-09-061-1/+1
| | | | | | | Found by: Juergen Buchmueller <pullmoll@stop1984.com> Notes: svn path=/head/; revision=119809
* Simplify the GEOM OAM api: Drop the request type, and let everythingPoul-Henning Kamp2003-06-011-28/+30
| | | | | | | | | | | hinge on the "verb" parameter which the class gets to interpret as it sees fit. Move the entire request into the kernel and move changed parameters back when done. Notes: svn path=/head/; revision=115624
* Remove unused variable.Poul-Henning Kamp2003-05-311-6/+0
| | | | | | | Found by: FlexeLint Notes: svn path=/head/; revision=115507
* Don't use & in front of arrays.Poul-Henning Kamp2003-05-311-2/+2
| | | | | | | Found by: FlexeLint Notes: svn path=/head/; revision=115505
* Remove unused variable.Poul-Henning Kamp2003-05-311-2/+0
| | | | | | | Found by: FlexeLint Notes: svn path=/head/; revision=115504
* Remove the G_CLASS_INITIALIZER, we do not need it anymore.Poul-Henning Kamp2003-05-311-1/+0
| | | | Notes: svn path=/head/; revision=115468