aboutsummaryrefslogtreecommitdiff
path: root/sbin/gvinum
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-4/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-193-6/+6
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2014-05-083-124/+135
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * \ \ Merge headSimon J. Gerraty2014-04-281-7/+10
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ \ Merge head@256284Simon J. Gerraty2013-10-131-14/+14
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256424
| * | | | | Updated dependenciesSimon J. Gerraty2013-10-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256419
| * | | | | sync from headSimon J. Gerraty2013-04-121-3/+6
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | | Sync from headSimon J. Gerraty2012-11-041-1/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | | | Convert sbin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275030
* | | | | | | Replace all uses of libncurses and libtermcap with their wide characterBrooks Davis2014-07-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=268804
* | | | | | | use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-201-3/+3
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267667
* | | | | | - Sprinkle const and static as appropriate.Marius Strobl2014-05-071-98/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix whitespace bugs. - Remove pointless returns in void functions. - Nuke pointless switch cases mirroring the default. MFC after: 3 days Sponsored by: Bally Wulff Games & Entertainment GmbH Notes: svn path=/head/; revision=265535
* | | | | | - Allow foot shooting with the resetconfig command via the -f option.Marius Strobl2014-05-062-21/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix typos preventing -f to actually work with the create command. - Initialize flags to zero rather than using stack garbage when handling the grow command. MFC after: 3 days Sponsored by: Bally Wulff Games & Entertainment GmbH Notes: svn path=/head/; revision=265454
* | | | | | Allow GEOM_VINUM to be statically compiled into the kernel.Marius Strobl2014-05-022-7/+11
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: gleb MFC after: 3 days Notes: svn path=/head/; revision=265248
* | | | | Prevent an unlikely, but real double free issue in gvinum(8).Xin LI2013-10-151-7/+10
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Coverity ID: 1018965 Notes: svn path=/head/; revision=256561
* | | | Sweep man pages replacing ad -> ada.Sergey Kandaurov2013-10-011-14/+14
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Approved by: re (blackend) MFC after: 1 week X-MFC note: stable/9 only Notes: svn path=/head/; revision=255977
* | | Remove reference to vinum(4). The manual page was removed in r248370.Joel Dahl2013-03-161-2/+2
| | | | | | | | | | | | Notes: svn path=/head/; revision=248384
* | | Minor mdoc fixes.Joel Dahl2013-03-141-1/+4
| |/ |/| | | | | Notes: svn path=/head/; revision=248274
* | Don't overwrite the global default CFLAGS when setting include paths.Brooks Davis2012-08-281-1/+1
|/ | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=239781
* Fixes to man8 groff mandoc style, usage mistakes, or typos.Warren Block2012-05-241-6/+9
| | | | | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days Notes: svn path=/head/; revision=235873
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-5/+5
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* Remove superfluous paragraph macro.Joel Dahl2012-03-251-1/+0
| | | | Notes: svn path=/head/; revision=233458
* Fix warning when compiling with gcc46:Eitan Adler2012-01-101-5/+2
| | | | | | | | | | | error: variable 'op' set but not used error: variable 'cmd' set but not used Approved by: dim MFC after: 3 days Notes: svn path=/head/; revision=229915
* - fix duplicate "a a" in some commentsEitan Adler2011-11-131-1/+1
| | | | | | | | | Submitted by: eadler Approved by: simon MFC after: 3 days Notes: svn path=/head/; revision=227489
* * Add the readline(3) API to libedit. The libedit versions ofDavid E. O'Brien2011-04-052-3/+4
| | | | | | | | | | | | | | | | | | | {readline,history}.h are in /usr/include/edit so as to not conflict with the GNU libreadline versions. To use the libedit readline(3) one should add "-I/usr/include/edit" to their Makefile (spelled "-I${DESTDIR}/${INCLUDEDIR}/edit" within the FreeBSD source tree). * Enable its use in the BSD licensed utilities that support readline(3). * To make it easier to sync libedit development with NetBSD, histedit.h is moved into libedit's directory as history shows shown we keep merging it into that location. Obtained from: NetBSD Sponsored by: Juniper Networks Notes: svn path=/head/; revision=220370
* Fix some more warnings found by clang.Rebecca Cran2010-11-221-1/+1
| | | | Notes: svn path=/head/; revision=215704
* Initialize variables before usage.Ulrich Spörlein2010-06-111-0/+1
| | | | | | | | Found by: clang static analyzer Found by: Coverity Prevent[tm] (CID 7736, 7760) Notes: svn path=/head/; revision=209051
* - Make function of finding an available drive name a macro.Ulf Lilleengen2010-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> Notes: svn path=/head/; revision=204665
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-0/+1
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* Bump doc date for previous changes.Tom Rhodes2009-04-111-1/+1
| | | | Notes: svn path=/head/; revision=190910
* - Better wording in comment.Ulf Lilleengen2009-04-101-1/+1
| | | | | | | Suggested by: Christoph Mallon <christoph.mallon - at - gmx.de> Notes: svn path=/head/; revision=190891
* - Implement the grow command to make it easier for users to extend plexesUlf Lilleengen2009-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. Notes: svn path=/head/; revision=190884
* - Move logic for finding a unique drive name into its own routine for futureUlf Lilleengen2009-04-101-5/+12
| | | | | | | code reuse. Notes: svn path=/head/; revision=190882
* - Move out allocation part of different gvinum objects into its own routine andUlf Lilleengen2009-04-101-2/+1
| | | | | | | make use of it in the gvinum userland code. Notes: svn path=/head/; revision=190881
* Import the gvinum work that have been done during and after Summer of Code 2007.Ulf Lilleengen2009-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> Notes: svn path=/head/; revision=190507
* Revise markup.Ruslan Ermilov2006-09-301-182/+111
| | | | Notes: svn path=/head/; revision=162842
* Implement the 'resetconfig' command.Lukas Ertl2006-03-232-4/+45
| | | | | | | | PR: kern/94835 Submitted by: Ulf Lilleengen <lulf@stud.ntnu.no> Notes: svn path=/head/; revision=157052
* Fix whitespace issues.Lukas Ertl2005-11-202-59/+59
| | | | | | | Pointed out by: joel@ Notes: svn path=/head/; revision=152631
* Finally bring in what was produced during Google SoC 2005:Lukas Ertl2005-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 Notes: svn path=/head/; revision=152616
* Clean up.Lukas Ertl2005-09-121-198/+106
| | | | | | | | | | Remove unused functions. Reduce indentation level by reverting the logic of the enclosing conditional statement. Notes: svn path=/head/; revision=150044
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-211-1/+1
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* Implement 'setstate' to allow setting the state of drives and subdisksLukas Ertl2004-11-261-0/+58
| | | | | | | for debugging and emergency purposes. Notes: svn path=/head/; revision=138112
* Implement checkparity/rebuildparity.Lukas Ertl2004-11-261-0/+88
| | | | Notes: svn path=/head/; revision=138110