summaryrefslogtreecommitdiffstats
path: root/sys/geom/stripe
Commit message (Collapse)AuthorAgeFilesLines
* Despite several examples in the kernel, the third argument ofdwmalone2007-06-041-1/+1
| | | | | | | | | | | | | sysctl_handle_int is not sizeof the int type you want to export. The type must always be an int or an unsigned int. Remove the instances where a sizeof(variable) is passed to stop people accidently cut and pasting these examples. In a few places this was sysctl_handle_int was being used on 64 bit types, which would truncate the value to be exported. In these cases use sysctl_handle_quad to export them and change the format to Q so that sysctl(1) can still print them.
* Change spaces to tabs where needed.pjd2006-11-011-3/+3
|
* Implement BIO_FLUSH handling by simply passing it down to the components.pjd2006-10-311-3/+39
| | | | Sponsored by: home.pl
* Remove trailing spaces.pjd2006-02-012-3/+3
|
* Normalize a significant number of kernel malloc type names:rwatson2005-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.
* Avoid code duplication and implement bitcount32() function in systm.h only.pjd2005-08-192-7/+1
| | | | | Reviewed by: cperciva MFC after: 3 days
* Before calling g_orphan_provider(), add G_PF_WITHER flag, so GEOM will knowpjd2005-07-171-0/+1
| | | | | | | | to destroy it. PR: kern/81758 Submitted by: trasz <trasz@buziaczek.pl> MFC after: 3 days
* Check return value.pjd2005-05-111-0/+4
| | | | Found by: Coverity Prevent analysis tool
* - Add md_provsize field to metadata, which will help withpjd2005-02-272-4/+15
| | | | | | | | | | | | | | | | | shared-last-sector problem. After this change, even if there is more than one provider with the same last sector, the proper one will be chosen based on its size. It still doesn't fix the 'c' partition problem (when da0s1 can be confused with da0s1c) and situation when 'a' partition starts at offset 0 (then da0s1a can be confused with da0s1 and da0s1c). One can use '-h' option there, when creating device or avoid sharing last sector. Actually, when providers share the same last sector and their size is equal, they provide exactly the same data, so the name (da0s1, da0s1a, da0s1c) isn't important at all. - Provide backward compatibility. - Update copyright's year. MFC after: 1 week
* Fix year in copyrights.pjd2005-02-162-2/+2
|
* - Turn off 'fast' mode by default and increase maximum memory to consumepjd2004-12-091-2/+2
| | | | | when this mode is used. - Manual page update.
* This is not needed anymore, it is forced in GEOM now.pjd2004-09-201-3/+0
| | | | | | | | | Actually, it can even cause some problems, because GEOM requires sectorsize to be more than 0 on first access, not on provider creation, so we can skip valid providers by doing this check here. Reported by: Divacky Roman <xdivac02@stud.fit.vutbr.cz> Sven Willenberger <sven@dmv.com>
* Allow to configure debug level from /boot/loader.conf.pjd2004-08-301-0/+1
|
* Skip providers with not defined sector size.pjd2004-08-261-0/+3
| | | | Reported by: kuriyama
* Dump disk number.pjd2004-08-251-1/+2
|
* Increase default kern.geom.stripe.maxmem to 50 elements.pjd2004-08-111-1/+1
|
* Fix one of the lastest commit. This bio_caller1 should also be changed topjd2004-08-101-1/+1
| | | | | | | bio_driver1 (as all the rest). This introduced a small memory leak, but it wasn't really critical, because maximum memory for g_stripe_zone is always set, so after few requests gstripe was working in "economic" mode.
* - Introduce option for hardcoding providers' names into metadata.pjd2004-08-092-1/+20
| | | | | | | | | | | | It allows to fix problems when last provider's sector is shared between few providers. - Bump version number for CONCAT and STRIPE and add code for backward compatibility. - Do not bump version number of MIRROR, as it wasn't officially introduced yet. Even if someone started to play with it, there is no big deal, because wrong MD5 sum of metadata will deny those providers. - Update manual pages. - Add version history to g_(stripe|concat).h files.
* Do not use g_wither_geom(9). I doesn't work in the way which is expectedpjd2004-08-091-2/+3
| | | | | here anymore (after g_wither_washer() was introduced), i.e. geom and consumer will not be immediately destroyed if possible.
* Tag all geom classes in the tree with a version number.phk2004-08-081-0/+1
|
* Add and document kern.geom.stripe.fast_failed sysctl, which shows howpjd2004-08-061-1/+7
| | | | many times "fast" mode failed.
* Fields bio_caller[12] should be used by the consumer and fieldspjd2004-08-061-23/+23
| | | | bio_driver[12] should be used by the provider!
* Fix I/O leakage. We're cloning bios in g_stripe_start_fast(), but whenpjd2004-08-061-0/+2
| | | | | | | | | | something goes wrong while running in "fast" mode, we free all bios and falling back to "economic" mode. Freeing bios, doesn't mean decrease bio_children, so bio_inbed couldn't be equal to bio_children and request was never finished. Decrease bio_children manually when destroying bios. Reported by: Sam Lawrance <boris@brooknet.com.au>, simon
* Improve geom(8)'s 'list' command to show geoms and their providers andpjd2004-07-261-29/+30
| | | | consumers. Teach STRIPE, CONCAT and NOP classes about this improvement.
* Change naming scheme from /dev/<name>.stripe to /dev/stripe/<name>.pjd2004-07-262-24/+19
|
* M_WAITOK is ok here, while I'm using M_WAITOK later in this function.pjd2004-07-261-8/+1
|
* Fix copy&paste bug.pjd2004-07-181-1/+1
|
* Minor sysctl description fixes.pjd2004-07-131-2/+2
| | | | Submitted by: simon
* Implement "FAST" mode for GEOM_STRIPE class and turn it on by default.pjd2004-07-091-80/+345
| | | | | | | | | | | | | | | In this mode you can setup even very small stripe size and you can be sure that only one I/O request will be send to every disks in stripe. It consumes some more memory, but if allocation fails, it will fall back to "ECONOMIC" mode. It is about 10 times faster for small stripe size than "ECONOMIC" mode and other RAID0 implementations. It is even recommended to use this mode and small stripe size, so our requests are always splitted. One can still use "ECONOMIC" mode by setting kern.geom.stripe.fast to 0. It is also possible to setup maximum memory which "FAST" mode can consume, by setting kern.geom.stripe.maxmem from /boot/loader.conf.
* - Add 'stop' command, which works just like 'destroy' command, but soundspjd2004-07-052-2/+3
| | | | | | less dangerous. - Update manual pages and extend examples. - Bump versions.
* Dump some more informations:pjd2004-05-261-19/+29
| | | | | | | | | - device state - list of used providers - total number of disks - number of disks online Prodded by: Alex Deiter <tiamat@komi.mts.ru>
* Introduce STRIPE GEOM class. It implements RAID0 transformation and itpjd2004-05-202-0/+1016
is intend to be fast. Just like CONCAT class it provides manual and auto configuration methods. Supported by: Wheel - Open Technologies - http://www.wheel.pl
OpenPOWER on IntegriCloud