summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Mechanically kill hard sentence breaks.ru2004-07-0237-585/+1148
|
* Introduce GEOM_LABEL class.pjd2004-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!
* Bump up the date and add spaces around commas. Thanks to ru@ for noticing.arun2004-07-021-2/+2
|
* Deal with harmful leading whitespace.ru2004-07-021-1/+1
|
* Added the ability to create and display Linux/Windows GPT partitions to gpt(8).arun2004-07-013-3/+10
|
* Create a unix domain socket and write to it all the events that comeimp2004-07-012-14/+91
| | | | in over the socket.
* o Fix semantics of comparison function for qsort(3). According to qsort(3)sobomax2004-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
* fix handling of an unknown progeam nameeik2004-06-221-1/+1
| | | | | Noticed by: Joshua Goodall <joshua@roughtrade.net> Approved by: ru
* Print mediasize in human readable form as well.pjd2004-06-213-5/+10
|
* Print the `99.99% done, finished soon' message only as often as theiedowse2004-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
* Note that conscontrol set and unset are an interface for TIOCCONS.green2004-06-181-0/+4
|
* Fix indentation of continuation lines to (hopefully) comply withjoerg2004-06-181-28/+30
| | | | | | style(9). Reminded by: bde
* Add to conscontrol(8) "set" and "unset" commands which modify thegreen2004-06-182-4/+43
| | | | | virtual console set-up. Specifically, "conscontrol unset" will cause printf(9) output to start going to the console again.
* Add missing newlines.pjd2004-06-172-8/+8
|
* Commit userland part of pf version 3.5 from OpenBSD (OPENBSD_3_5_BASE).mlaier2004-06-162-3/+4
|
* Implement 3 new functions:pjd2004-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.
* When parsing an argument as an address in getaddr(), heed the -host optionbms2004-06-161-1/+1
| | | | | | | in all cases. The failure mode in the PR is easily reproducible without this patch. PR: bin/43139
* Turn on RFC 1724 compliant behaviour with regards to IP_ADD_MEMBERSHIP;bms2004-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
* Connect geom(8) to the build.pjd2004-06-151-1/+1
| | | | Reminded by: des
* Ignore kernel routes with the RTF_WASCLONED flag set. This is a slightbms2004-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
* mdoc(7) policebms2004-06-141-2/+3
| | | | Submitted by: ru
* Wordsmith the BUGS section re: IPv6 link-local addresses.bms2004-06-141-7/+13
| | | | | PR: docs/66541 Submitted by: Michel Lavondes (with some cleanups/additions)
* Make fdisk initialize the first instead of the last slice by default.phk2004-06-141-3/+3
|
* Add gvinum, the geom_vinum userland tool.le2004-06-123-0/+811
|
* Add sha1 and rmd160 checksum tools.eik2004-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
* Cast the arguments to make_h_number() to uintmax_t before multiplyingjoerg2004-06-111-2/+2
| | | | them... Otherwise the result will be truncated anyway.
* Fixed a bug spotted by compiling with -Wall.ru2004-06-101-1/+1
|
* Introduce a new feature to IPFW2: lookup tables. These are usefulru2004-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
* Reapply traditionally lost fixes, fixed some more.ru2004-06-051-38/+43
| | | | This manpage needs an English clenup.
* Typedefing an array of incomplete structs is non-standard C code.stefanf2004-06-021-1/+1
| | | | Approved by: das (mentor)
* Remove extra semicolon.pjd2004-06-021-1/+1
| | | | Inspired by: fjoe
* o Move NEED1 macro to the top of the source file.csjp2004-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)
* ru's mdoc(7) style police was here.joerg2004-06-021-23/+23
| | | | Submitted by: ru
* Major overhaul of sunlabel(8).joerg2004-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.
* Fix typo.le2004-05-301-1/+1
|
* Use a better way to calculate POINTER_WIDTH suggested by pjd@.dwmalone2004-05-301-1/+1
|
* Decide how much space we need to print a pointer usingdwmalone2004-05-281-5/+1
| | | | sizeof(void *) rather than if __alpha__ is defined.
* Fix order.pjd2004-05-261-2/+2
|
* Print provider's size in human-readable form as well.pjd2004-05-262-3/+7
|
* 'ld' lists drives, not volumes.le2004-05-252-3/+3
|
* - Add a cross-reference to geom(8).pjd2004-05-243-4/+7
| | | | - Add missing 'a'.
* Add manual page for geom(8) utility.pjd2004-05-241-0/+121
| | | | Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Use the correct types for the functions rst_opendir(), glob_readdir() andstefanf2004-05-243-9/+11
| | | | | | | rst_closedir() which are called by glob(). Reviewed by: md5 Approved by: das (mentor)
* Include <timeconv.h> for time conversion functions.stefanf2004-05-241-0/+1
| | | | Approved by: das (mentor)
* Include <sys/linker.h> for kldload().stefanf2004-05-241-0/+1
| | | | Approved by: das (mentor)
* o Fix usage example.maxim2004-05-231-1/+1
| | | | | PR: docs/67065 Submitted by: David Syphers
* Fix typobrueffer2004-05-231-1/+1
| | | | Submitted by: edwin
* Add standard command "help" to print usage.pjd2004-05-221-3/+14
|
* Actually we are also able to list only choosen providers.pjd2004-05-223-3/+6
|
* Be more precise.pjd2004-05-221-7/+8
|
OpenPOWER on IntegriCloud