MFC r349195: Use sbuf_cat() in GEOM confxml generation.When it comes to megabytes of text, difference between sbuf_printf() andsbuf_cat() becomes substantial.
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().
Removal of Giant droping wrappers for GEOM classes.Sponsored by: The FreeBSD Foundation
sys/geom: spelling fixes in comments.No functional change.
Bump bio_cmd and bio_*flags from 8 bits to 16.Differential Revision: https://reviews.freebsd.org/D5784
Create an API to reset a struct bio (g_reset_bio). This is mandatoryfor all struct bio you get back from g_{new,alloc}_bio. Temporarybios that you create on the stack or elsewhere should use this b
Create an API to reset a struct bio (g_reset_bio). This is mandatoryfor all struct bio you get back from g_{new,alloc}_bio. Temporarybios that you create on the stack or elsewhere should use this beforefirst use of the bio, and between uses of the bio. At the moment, itis nothing more than a wrapper around bzero, but that may change inthe future. The wrapper also removes one place where we encode thesize of struct bio in the KBI.
CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than tenyears for head. However, it is continuously misused as the mpsafe argumentfor callout_init(9). Deprecate the flag and cle
CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than tenyears for head. However, it is continuously misused as the mpsafe argumentfor callout_init(9). Deprecate the flag and clean up callout_init() callsto make them more consistent.Differential Revision: https://reviews.freebsd.org/D2613Reviewed by: jhbMFC after: 2 weeks
Pull in r267961 and r267973 again. Fix for issues reported will follow.
Revert r267961, r267973:These changes prevent sysctl(8) from returning proper output,such as: 1) no output from sysctl(8) 2) erroneously returning ENOMEM with tools like truss(1) or uname(1
Revert r267961, r267973:These changes prevent sysctl(8) from returning proper output,such as: 1) no output from sysctl(8) 2) erroneously returning ENOMEM with tools like truss(1) or uname(1) truss: can not get etype: Cannot allocate memory
Extend the meaning of the CTLFLAG_TUN flag to automatically check ifthere is an environment variable which shall initialize the SYSCTLduring early boot. This works for all SYSCTL types both statica
Extend the meaning of the CTLFLAG_TUN flag to automatically check ifthere is an environment variable which shall initialize the SYSCTLduring early boot. This works for all SYSCTL types both statically anddynamically created ones, except for the SYSCTL NODE type and SYSCTLswhich belong to VNETs. A new flag, CTLFLAG_NOFETCH, has been added tobe used in the case a tunable sysctl has a custom initialisationfunction allowing the sysctl to still be marked as a tunable. Thekernel SYSCTL API is mostly the same, with a few exceptions for somespecial operations like iterating childrens of a static/extern SYSCTLnode. This operation should probably be made into a factored outcommon macro, hence some device drivers use this. The reason forchanging the SYSCTL API was the need for a SYSCTL parent OID pointerand not only the SYSCTL parent OID list pointer in order to quicklygenerate the sysctl path. The motivation behind this patch is to avoidparameter loading cludges inside the OFED driver subsystem. Instead ofadding special code to the OFED driver subsystem to post-load tunablesinto dynamically created sysctls, we generalize this in the kernel.Other changes:- Corrected a possibly incorrect sysctl name from "hw.cbb.intr_mask"to "hw.pcic.intr_mask".- Removed redundant TUNABLE statements throughout the kernel.- Some minor code rewrites in connection to removing not neededTUNABLE statements.- Added a missing SYSCTL_DECL().- Wrapped two very long lines.- Avoid malloc()/free() inside sysctl string handling, in case it iscalled to initialize a sysctl from a tunable, hence malloc()/free() isnot ready when sysctls from the sysctl dataset are registered.- Bumped FreeBSD version to indicate SYSCTL API change.MFC after: 2 weeksSponsored by: Mellanox Technologies
Allow to insert new component to geom_raid3 without specifying number.PR: kern/160562MFC after: 2 weeks
Alike to r242314 for GRAID make GRAID3 more aggressive in marking volumesas clean on shutdown and move that action from shutdown_pre_sync stage toshutdown_post_sync to avoid extra flapping.ZFS te
Alike to r242314 for GRAID make GRAID3 more aggressive in marking volumesas clean on shutdown and move that action from shutdown_pre_sync stage toshutdown_post_sync to avoid extra flapping.ZFS tends to not close devices on shutdown, that doesn't allow GEOM RAIDto shutdown gracefully. To handle that, mark volume as clean just whenshutdown time comes and there are no active writes.MFC after: 2 weeks
When synchronizing, include in the config dump amount ofbytes syncronized. The rationale behind this is the following: for large disks thepercent synchronisation counter ticks too seldom, and mon
When synchronizing, include in the config dump amount ofbytes syncronized. The rationale behind this is the following: for large disks thepercent synchronisation counter ticks too seldom, and monitoringsoftware (as well as human operator) can't tell whethersynchronisation goes on or one of disks got stuck. On an idleserver one can look into gstat and see whether synchronisation goeson or not, but on a busy server that won't work. Also, new valuemonitored can be differentiated obtaining the synchronisation speedquite precisely.Submitted by: Konstantin Kukushkin <dark ramtel.ru>Reviewed by: pjd
Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.The SYSCTL_NODE macro defines a list that stores all child-elements ofthat node. If there's no SYSCTL_DECL macro anywhere else,
Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.The SYSCTL_NODE macro defines a list that stores all child-elements ofthat node. If there's no SYSCTL_DECL macro anywhere else, there's noreason why it shouldn't be static.
Include sys/sbuf.h directly.Reviewed by: pjd
Implement relaxed comparision for hardcoded provider names to make itignore adX/adaY difference in both directions to simplify migration tothe CAM-based ATA or back.
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
Sector size can not be greater than MAXPHYS. Since GRAID3 calculatessector size from user-specified block size, report to user aboutbig blocksize.PR: kern/147851MFC after: 1 week
Move wakeup() out of mutex to reduce contention.
Slightly optimize XOR calculation.
As soon as geom_raid3 reports it's own stripe as sector size, report largestunderlying provider's stripe, multiplied by number of data disks in array,due to transformation done, as array stripe.
Make graid3 fallback to malloc() when component request size is biggerthen maximal prepared UMA zone size. This fixes crash with MAXPHYS > 128K.
Revert r190676,190677The geom and CAM changes for root_hold are the wrong solution for USB designquirks.Requested by: scottl
12345