Annotate geom modules with MODULE_VERSIONGEOM ELI may double ask the password during boot. Once at loader time, andonce at init time.This happens due a module loading bug. By default GEOM ELI ca
Annotate geom modules with MODULE_VERSIONGEOM ELI may double ask the password during boot. Once at loader time, andonce at init time.This happens due a module loading bug. By default GEOM ELI caches thepassword in the kernel, but without the MODULE_VERSION annotation, thekernel loads over the kernel module, even if the GEOM ELI was compiled intothe kernel. In this case, the newly loaded modulepurges/invalidates/overwrites the GEOM ELI's password cache, which causesthe double asking.MFC Note: There's a pc98 component to the original submission that isomitted here due to pc98 removal in head. This part will need to be revivedupon MFC.Reviewed by: impSubmitted by: opObtained from: opBSDMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D14992
show more ...
sys/geom: adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone
sys/geom: adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
Use g_wither_provider() where applicable.It is just a helper function combining G_PF_WITHER setting withg_orphan_provider().
sys/geom: spelling fixes in comments.No functional change.
sys: use our roundup2/rounddown2() macros when param.h is available.rounddown2 tends to produce longer lines than the original codeand when the code has a high indentation level it was not really
sys: use our roundup2/rounddown2() macros when param.h is available.rounddown2 tends to produce longer lines than the original codeand when the code has a high indentation level it was not reallyadvantageous to do the replacement.This tries to strike a balance between readability using the macrosand flexibility of having the expressions, so not everything isconverted.
Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.ccperciva's libmd implementation is 5-30% fasterThe same was done for SHA256 previously in r263218cperciva's implementation was lacking SHA
Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.ccperciva's libmd implementation is 5-30% fasterThe same was done for SHA256 previously in r263218cperciva's implementation was lacking SHA-384 which I implemented, validated against OpenSSL and the NIST documentationExtend 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, delphijApproved by: secteam, bapt (mentor)MFC after: 2 weeksSponsored by: ScaleEngine Inc.Differential Revision: https://reviews.freebsd.org/D3929
Constify the AES code and propagate to consumers. This allows us toupdate the Fortuna code to use SHAd-256 as defined in FS&K.Approved by: so (self)
Translate the errno to gctl_error() texts.Spotted by: mwlucas
- Don't pass geom and provider names as format strings.- Add __printflike() attributes.- Remove an extra argument for the g_new_geomf() call in swapongeom_ev().Reviewed by: pjd
Remove unneeded G_PF_CANDELETE flag.This flag is only used by GEOM so it can be propagated to the characterdevice's SI_CANDELETE. Unfortunately, SI_CANDELETE seems to do nothing.
Fix orphan() methods of several GEOM classes to not assume that thereis an error set on the provider. With GEOM resizing, class can becomeorphaned when it doesn't implement resize() method and the
Fix orphan() methods of several GEOM classes to not assume that thereis an error set on the provider. With GEOM resizing, class can becomeorphaned when it doesn't implement resize() method and the provider sizedecreases.Reviewed by: mavSponsored by: FreeBSD Foundation
Add some FEATURE macros for various GEOM classes.No FreeBSD version bump, the userland application to query the features willbe committed last and can serve as an indication of the availablility i
Add some FEATURE macros for various GEOM classes.No FreeBSD version bump, the userland application to query the features willbe committed last and can serve as an indication of the availablility ifneeded.Sponsored by: Google Summer of Code 2010Submitted by: kibabReviewed by: silence on geom@ during 2 weeksX-MFC after: to be determined in last commit with code from this project
Rename the kthread_xxx (e.g. kthread_create()) callsto kproc_xxx as they actually make whole processes.Thos makes way for us to add REAL kthread_create() and friendsthat actually make theads. it t
Rename the kthread_xxx (e.g. kthread_create()) callsto kproc_xxx as they actually make whole processes.Thos makes way for us to add REAL kthread_create() and friendsthat actually make theads. it turns out that most of thesecalls actually end up being moved back to the thread versionwhen 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 thenew kthread_xxx() calls.
Commit the results of the typo hunt by Darren Pilgrim.This change affects documentation and comments only,no real code involved.PR: misc/101245Submitted by: Darren Pilgrim <darren pilgrim bitfr
Commit the results of the typo hunt by Darren Pilgrim.This change affects documentation and comments only,no real code involved.PR: misc/101245Submitted by: Darren Pilgrim <darren pilgrim bitfreak org>Tested by: md5(1)MFC after: 1 week
Kill leading whilespace.
Normalize a significant number of kernel malloc type names:- Prefer '_' to ' ', as it results in more easily parsed results in memory monitoring tools such as vmstat.- Remove punctuation that i
Normalize a significant number of kernel malloc type names:- 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 tofinish this conversion. Similar changes are required for UMA zone names.
Comment typo
stop including rijndael-api-fst.h from rijndael.h.this is required to integrate opencrypto into crypto.
/* -> /*- for copyright notices, minor format tweaks as necessary
Fix typo in a comment.MFC after: 3 days
Fix a problem that shows up if less than the full complement oflock sectors are defined ("number_of_keys" argument to gbde init beingless than 4 in the default compile).
Respect that G_BDE_MAXKEYS is a compile time variable.
Tag all geom classes in the tree with a version number.
Use default method initialization on geoms.
kthread_exit() no longer requires Giant, so don't force callers to acquireGiant just to call kthread_exit().Requested by: many
1234