summaryrefslogtreecommitdiffstats
path: root/sbin/gvinum
Commit message (Collapse)AuthorAgeFilesLines
* Fix some more warnings found by clang.brucec2010-11-221-1/+1
|
* Initialize variables before usage.uqs2010-06-111-0/+1
| | | | | Found by: clang static analyzer Found by: Coverity Prevent[tm] (CID 7736, 7760)
* - Make function of finding an available drive name a macro.lulf2010-03-031-14/+12
| | | | | | | | - Move check of /dev/ prefix and copy into a function to save code duplication. This also fixes a bug where the /dev/ prefix could not be used when creating volumes on the command line. Tested by: Niclas Zeising <niclas.zeising - at - gmail.com>
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-0/+1
| | | | Submitted by: Ulrich Spörlein
* Bump doc date for previous changes.trhodes2009-04-111-1/+1
|
* - Better wording in comment.lulf2009-04-101-1/+1
| | | | Suggested by: Christoph Mallon <christoph.mallon - at - gmx.de>
* - Implement the grow command to make it easier for users to extend plexeslulf2009-04-102-7/+95
| | | | | | without having to understand all gvinum internals. - Document the grow command in the manpage and update examples to use the command where possible.
* - Move logic for finding a unique drive name into its own routine for futurelulf2009-04-101-5/+12
| | | | code reuse.
* - Move out allocation part of different gvinum objects into its own routine andlulf2009-04-101-2/+1
| | | | make use of it in the gvinum userland code.
* Import the gvinum work that have been done during and after Summer of Code 2007.lulf2009-03-282-99/+605
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The work have been under testing and fixing since then, and it is mature enough to be put into HEAD for further testing. A lot have changed in this time, and here are the most important: - Gvinum now uses one single workerthread instead of one thread for each volume and each plex. The reason for this is that the previous scheme was very complex, and was the cause of many of the bugs discovered in gvinum. Instead, gvinum now uses one worker thread with an event queue, quite similar to what used in gmirror. - The rebuild/grow/initialize/parity check routines no longer runs in separate threads, but are run as regular I/O requests with special flags. This made it easier to support mounted growing and parity rebuild. - Support for growing striped and raid5-plexes, meaning that one can extend the volumes for these plex types in addition to the concat type. Also works while the volume is mounted. - Implementation of many of the missing commands from the old vinum: attach/detach, start (was partially implemented), stop (was partially implemented), concat, mirror, stripe, raid5 (shortcuts for creating volumes with one plex of these organizations). - The parity check and rebuild no longer goes between userland/kernel, meaning that the gvinum command will not stay and wait forever for the rebuild to finish. You can instead watch the status with the list command. - Many problems with gvinum have been reported since 5.x, and some has been hard to fix due to the complicated architecture. Hopefully, it should be more stable and better handle edge cases that previously made gvinum crash. - Failed drives no longer disappears entirely, but now leave behind a dummy drive that makes sure the original state is not forgotten in case the system is rebooted between drive failures/swaps. - Update manpage to reflect new commands and extend it with some examples. Sponsored by: Google Summer of Code 2007 Mentored by: le Tested by: Rick C. Petty <rick-freebsd2008 -at- kiwi-computer.com>
* Revise markup.ru2006-09-301-182/+111
|
* Implement the 'resetconfig' command.le2006-03-232-4/+45
| | | | | PR: kern/94835 Submitted by: Ulf Lilleengen <lulf@stud.ntnu.no>
* Fix whitespace issues.le2005-11-202-59/+59
| | | | Pointed out by: joel@
* Finally bring in what was produced during Google SoC 2005:le2005-11-193-51/+533
| | | | | | | | | | | | | Add functions to rename objects and to move a subdisk from one drive to another. Add manual page (finally). Bring up-to-date the online help. Obtained from: Chris Jones <chris.jones@ualberta.ca> Sponsored by: Google Summer of Code 2005 MFC in: 1 week
* Clean up.le2005-09-121-198/+106
| | | | | | | Remove unused functions. Reduce indentation level by reverting the logic of the enclosing conditional statement.
* Start the dreaded NOFOO -> NO_FOO conversion.ru2004-12-211-1/+1
| | | | OK'ed by: core
* Implement 'setstate' to allow setting the state of drives and subdisksle2004-11-261-0/+58
| | | | for debugging and emergency purposes.
* Implement checkparity/rebuildparity.le2004-11-261-0/+88
|
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* Allow 'create <filename>'.le2004-08-041-26/+35
|
* Add gvinum, the geom_vinum userland tool.le2004-06-123-0/+811
OpenPOWER on IntegriCloud