aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* - Add 'stop' command, which works just like 'destroy' command, but soundsPawel Jakub Dawidek2004-07-056-11/+74
| | | | | | | | | less dangerous. - Update manual pages and extend examples. - Bump versions. Notes: svn path=/head/; revision=131649
* MFp4: gmirror(8) is coming soon, and we need g_metadata_read() there.Pawel Jakub Dawidek2004-07-052-0/+55
| | | | Notes: svn path=/head/; revision=131603
* Give natd multi-instance capabilities.Poul-Henning Kamp2004-07-043-176/+410
| | | | | | | This makes it possible to do load-sharing on two xDSL lines etc. Notes: svn path=/head/; revision=131567
* One more hard sentence break.Ruslan Ermilov2004-07-031-1/+2
| | | | Notes: svn path=/head/; revision=131541
* Grammar nits.Pawel Jakub Dawidek2004-07-031-4/+4
| | | | | | | Submitted by: David Magda <dmagda@ee.ryerson.ca> Notes: svn path=/head/; revision=131520
* Deal with double whitespace.Ruslan Ermilov2004-07-034-10/+16
| | | | Notes: svn path=/head/; revision=131506
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-0237-585/+1148
| | | | Notes: svn path=/head/; revision=131488
* Introduce GEOM_LABEL class.Pawel Jakub Dawidek2004-07-024-0/+377
| | | | | | | | | | | | | | | | | | | | | | | | | | This class is used for detecting volume labels on file systems: UFS, MSDOSFS (FAT12, FAT16, FAT32) and ISO9660. It also provide native labelization (there is no need for file system). g_label_ufs.c is based on geom_vol_ffs from Gordon Tetlow. g_label_msdos.c and g_label_iso9660.c are probably hacks, I just found where volume labels are stored and I use those offsets here, but with this class it should be easy to do it as it should be done by someone who know how. Implementing volume labels detection for other file systems also should be trivial. New providers are created in those directories: /dev/ufs/ (UFS1, UFS2) /dev/msdosfs/ (FAT12, FAT16, FAT32) /dev/iso9660/ (ISO9660) /dev/label/ (native labels, configured with glabel(8)) Manual page cleanups and some comments inside were submitted by Simon L. Nielsen, who was, as always, very helpful. Thanks! Notes: svn path=/head/; revision=131476
* Bump up the date and add spaces around commas. Thanks to ru@ for noticing.Arun Sharma2004-07-021-2/+2
| | | | Notes: svn path=/head/; revision=131471
* Deal with harmful leading whitespace.Ruslan Ermilov2004-07-021-1/+1
| | | | Notes: svn path=/head/; revision=131470
* Added the ability to create and display Linux/Windows GPT partitions to gpt(8).Arun Sharma2004-07-013-3/+10
| | | | Notes: svn path=/head/; revision=131425
* Create a unix domain socket and write to it all the events that comeWarner Losh2004-07-012-14/+91
| | | | | | | in over the socket. Notes: svn path=/head/; revision=131397
* o Fix semantics of comparison function for qsort(3). According to qsort(3)Maxim Sobolev2004-06-251-2/+6
| | | | | | | | | | | | | | | | | | | manpage: The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. Therefore, simply returning "arg1 > arg2" is incorrect. Actually it works but for the number of items to be sorted less than 7 due to special case handling in qsort(3); o add missing '\n' to one of usage() calls. Approved by: phk Notes: svn path=/head/; revision=131101
* fix handling of an unknown progeam nameOliver Eikemeier2004-06-221-1/+1
| | | | | | | | Noticed by: Joshua Goodall <joshua@roughtrade.net> Approved by: ru Notes: svn path=/head/; revision=130918
* Print mediasize in human readable form as well.Pawel Jakub Dawidek2004-06-213-5/+10
| | | | Notes: svn path=/head/; revision=130837
* Print the `99.99% done, finished soon' message only as often as theIan Dowse2004-06-191-2/+5
| | | | | | | | | | normal status messages. Previously a large number of these new messages could be spewed out towards the end of a dump. Reviewed by: imp Notes: svn path=/head/; revision=130753
* Note that conscontrol set and unset are an interface for TIOCCONS.Brian Feldman2004-06-181-0/+4
| | | | Notes: svn path=/head/; revision=130698
* Fix indentation of continuation lines to (hopefully) comply withJoerg Wunsch2004-06-181-28/+30
| | | | | | | | | style(9). Reminded by: bde Notes: svn path=/head/; revision=130692
* Add to conscontrol(8) "set" and "unset" commands which modify theBrian Feldman2004-06-182-4/+43
| | | | | | | | virtual console set-up. Specifically, "conscontrol unset" will cause printf(9) output to start going to the console again. Notes: svn path=/head/; revision=130676
* Add missing newlines.Pawel Jakub Dawidek2004-06-172-8/+8
| | | | Notes: svn path=/head/; revision=130625
* Commit userland part of pf version 3.5 from OpenBSD (OPENBSD_3_5_BASE).Max Laier2004-06-162-3/+4
| | | | Notes: svn path=/head/; revision=130617
* Implement 3 new functions:Pawel Jakub Dawidek2004-06-162-4/+77
| | | | | | | | | | | | | - g_lcm() - calculates Least Common Multiple of two given values, it is helpful when we need to find sector size for provider which is based on disks with different sector size; - g_get_mediasize() - returns media size of given provider; - g_get_sectorsize() - returns sector size of given provider; Those function aren't used now, but are used by geom_mirror which will be committed soon. Notes: svn path=/head/; revision=130591
* When parsing an argument as an address in getaddr(), heed the -host optionBruce M Simpson2004-06-161-1/+1
| | | | | | | | | | in all cases. The failure mode in the PR is easily reproducible without this patch. PR: bin/43139 Notes: svn path=/head/; revision=130569
* Turn on RFC 1724 compliant behaviour with regards to IP_ADD_MEMBERSHIP;Bruce M Simpson2004-06-161-1/+1
| | | | | | | | | | | | routed should be able to specify multicast memberships to be added by interface index. This should fix the unnumbered / point-to-point case for RIPv2. PR: bin/51927 Requested by: Eugene Grosbein Notes: svn path=/head/; revision=130557
* Connect geom(8) to the build.Pawel Jakub Dawidek2004-06-151-1/+1
| | | | | | | Reminded by: des Notes: svn path=/head/; revision=130535
* Ignore kernel routes with the RTF_WASCLONED flag set. This is a slightBruce M Simpson2004-06-151-4/+4
| | | | | | | | | | | modification of a patch which was already applied for BSD/OS in the Rhyolite.com sources; this file is already off the vendor branch. PR: bin/57484 Submitted by: Richard Perini Notes: svn path=/head/; revision=130498
* mdoc(7) policeBruce M Simpson2004-06-141-2/+3
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=130488
* Wordsmith the BUGS section re: IPv6 link-local addresses.Bruce M Simpson2004-06-141-7/+13
| | | | | | | | PR: docs/66541 Submitted by: Michel Lavondes (with some cleanups/additions) Notes: svn path=/head/; revision=130474
* Make fdisk initialize the first instead of the last slice by default.Poul-Henning Kamp2004-06-141-3/+3
| | | | Notes: svn path=/head/; revision=130452
* Add gvinum, the geom_vinum userland tool.Lukas Ertl2004-06-123-0/+811
| | | | Notes: svn path=/head/; revision=130391
* Add sha1 and rmd160 checksum tools.Oliver Eikemeier2004-06-113-67/+206
| | | | | | | | | | | Since the algorithms are already supported in libmd, the size increase is small when a dynamic root is used. Approved by: joerg, ru MFC after: 2 weeks Notes: svn path=/head/; revision=130351
* Cast the arguments to make_h_number() to uintmax_t before multiplyingJoerg Wunsch2004-06-111-2/+2
| | | | | | | them... Otherwise the result will be truncated anyway. Notes: svn path=/head/; revision=130345
* Fixed a bug spotted by compiling with -Wall.Ruslan Ermilov2004-06-101-1/+1
| | | | Notes: svn path=/head/; revision=130298
* Introduce a new feature to IPFW2: lookup tables. These are usefulRuslan Ermilov2004-06-092-4/+169
| | | | | | | | | | for handling large sparse address sets. Initial implementation by Vsevolod Lobko <seva@ip.net.ua>, refined by me. MFC after: 1 week Notes: svn path=/head/; revision=130281
* Reapply traditionally lost fixes, fixed some more.Ruslan Ermilov2004-06-051-38/+43
| | | | | | | This manpage needs an English clenup. Notes: svn path=/head/; revision=130134
* Typedefing an array of incomplete structs is non-standard C code.Stefan Farfeleder2004-06-021-1/+1
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=130021
* Remove extra semicolon.Pawel Jakub Dawidek2004-06-021-1/+1
| | | | | | | Inspired by: fjoe Notes: svn path=/head/; revision=130014
* o Move NEED1 macro to the top of the source file.Christian S.J. Peron2004-06-021-6/+6
| | | | | | | | | | | | | | o Add sanity checking to the firewall delete operation which tells the user that a firewall rule specification is required. The previous behaviour was to exit without reporting any errors to the user. Approved by: bmilekic (mentor) Notes: svn path=/head/; revision=130013
* ru's mdoc(7) style police was here.Joerg Wunsch2004-06-021-23/+23
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=130010
* Major overhaul of sunlabel(8).Joerg Wunsch2004-06-012-72/+757
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | . Implement option -c, all partition sizes will be calculated in cylinders as opposed to sectors. Since the Sun label is inherently cylinder-based, this makes the job a little easier. . Implement option -h, print the label in `human readable' size/offset format. . Implement SVR4-compatible VTOC-style elements. They are fully optional, defaulting to the current behaviour where no VTOC-style table will be written to disk. However, if desired, the full functionality of the partitioning menu of Solaris' format(1m) is now offered (and even more). . When editing the label, do not loop around edit_label() where a new template file is generated for each turn, this used to be annoying in that any possible syntax error caused a complaint, but then the template was created anew, so the user had to perform all their editing again. Rather loop inside edit_label(), similar to bsdlabel(8), so in case of errors, the user will be presented their previous template file again. . If VTOC-style elements are present, the overlap checks are made less stringent. Overlaps will still be warned about, but overlaps of `unmountable' partitions against other ones are no longer fatal. That way, e. g. VxVM encapsulated disk labels can be fully edited in FreeBSD (but not in Solaris ;-). . In print_label(), generate the editing hints only if the -e flag is in effect. Additionally, print a hint about the total number of sectors in the (hardware) medium. . When editing a label, allow for changing the geometry emulation (and textual name) by modifying the "text:" line on top. That way, a more effective emulation can be chosen. . When editing/reading a label, additionally allow for the suffixes `s' (512-byte sectors), and `c' (cylinders) in the partition size field. . Finally, turn the stub man page into something that really explains the entire thing. Notes: svn path=/head/; revision=129965
* Fix typo.Lukas Ertl2004-05-301-1/+1
| | | | Notes: svn path=/head/; revision=129875
* Use a better way to calculate POINTER_WIDTH suggested by pjd@.David Malone2004-05-301-1/+1
| | | | Notes: svn path=/head/; revision=129866
* Decide how much space we need to print a pointer usingDavid Malone2004-05-281-5/+1
| | | | | | | sizeof(void *) rather than if __alpha__ is defined. Notes: svn path=/head/; revision=129820
* Fix order.Pawel Jakub Dawidek2004-05-261-2/+2
| | | | Notes: svn path=/head/; revision=129754
* Print provider's size in human-readable form as well.Pawel Jakub Dawidek2004-05-262-3/+7
| | | | Notes: svn path=/head/; revision=129745
* 'ld' lists drives, not volumes.Lukas Ertl2004-05-252-3/+3
| | | | Notes: svn path=/head/; revision=129732
* - Add a cross-reference to geom(8).Pawel Jakub Dawidek2004-05-243-4/+7
| | | | | | | - Add missing 'a'. Notes: svn path=/head/; revision=129682
* Add manual page for geom(8) utility.Pawel Jakub Dawidek2004-05-241-0/+121
| | | | | | | Supported by: Wheel - Open Technologies - http://www.wheel.pl Notes: svn path=/head/; revision=129681
* Use the correct types for the functions rst_opendir(), glob_readdir() andStefan Farfeleder2004-05-243-9/+11
| | | | | | | | | | rst_closedir() which are called by glob(). Reviewed by: md5 Approved by: das (mentor) Notes: svn path=/head/; revision=129666
* Include <timeconv.h> for time conversion functions.Stefan Farfeleder2004-05-241-0/+1
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129665