summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Write some bit mask limits in hex rather than decimal so they look lessbrooks2005-01-071-2/+2
| | | | magic.
* The badsect(8) utility uses atol(), which doesn't allow very good errorrwatson2005-01-031-1/+4
| | | | | | | | | | checking and only recognizes numbers in base 10. The attached patch checks errno after strtol() and uses a base of 0 to allow octal, or hex sector numbers too. PR: 73112 Submitted by: keramida MFC after: 2 weeks
* The ffsinfo utility uses atol() to parse numeric values out of optargrwatson2005-01-031-3/+10
| | | | | | | | | | | | | | strings. This isn't necessarily a bug, but it can be slightly inconvenient, because atol() doesn't know how to parse hexadecimal or octal numbers and at least one of the options of ffsinfo(8) would be easier to use if it did. Changing atol() -> strtol() allows one to use hex masks for -l MASK, i.e.: orion:/a/freebsd/src/sbin/ffsinfo# ./ffsinfo -l 0x3ff / PR: 73110 Submitted by: keramida MFC after: 2 weeks
* Remove cross reference to uustat(1), which is no longer in the baserwatson2005-01-021-1/+0
| | | | | | | tree. MFC after: 3 days Submitted by: bkoenig at cs dot tu-berlin dot de
* Fix special status reporting. Prior to the reorg there wassam2004-12-317-18/+44
| | | | | | | | | | | | | | | | | | | | | | | special-purpose code to display status for an interface for state that was not address-oriented. This status reporting was merged in to the address-oriented status reporting but did not work for link address reporting (as discovered with fwip interfaces). Correct this mis-merge and eliminate the bogus kludge that was used for link-level address reporting. o add an af_other_status method for an address family for reporting status of things like media, vlan, etc. o call the af_other_status methods after reporting address status for an interface o special-case link address status; when reporting all status for an interface invoke it specially prior to reporting af_other_status methods (since it requires the sockaddr_dl that is passed in to status separately from the rtmsg address state) o correct the calling convention for link address status; don't cast types, construct the proper parameter This fixes ifconfig on fwip interfaces.
* o accept deftxkey as a synonym for weptxkey since that is what issam2004-12-311-1/+11
| | | | | | | printed for status (allows cut&paste) o accept undef for the deftxkey/weptxkey so you can reset state Requested by: phk
* recognize atheros information elementssam2004-12-311-0/+2
|
* Fix typos.brueffer2004-12-301-3/+3
| | | | | PR: 75616 Submitted by: n-kogane@syd.odn.ne.jp
* Clearer va-args usage.obrien2004-12-301-4/+3
| | | | Submitted by: bde
* Detect if class name is '-h' or 'help' and if it is, show general helppjd2004-12-281-0/+6
| | | | | | | | | message, i.e.: geom: usage: geom <class> <command> [options] PR: bin/71537 Submitted by: bugghy <bugghy@phenix.rootshell.be> MFC after: 5 days
* Rewrite piece of code which I committed some time ago that allows topjd2004-12-271-1/+5
| | | | | | | | | show file name for 'mdconfig -l -u <x>' command. This allows to preserve API/ABI compatibility with version 0 (that's why I changed version number back to 0) and will allow to merge this change to RELENG_5. MFC after: 5 days
* Fix typo.josef2004-12-261-1/+1
| | | | Noticed by: clement
* Cross-reference ffsinfo(8).jkoshy2004-12-261-0/+1
|
* - Add genid field to the metadata which will allow to improve reliability a bit.pjd2004-12-251-0/+1
| | | | | | | | | | | | | | | After this change, when component is disconnected because of an I/O error, it will not be connected and synchronized automatically, it will be logged as broken and skipped. Autosynchronization can occur, when component is disconnected (on orphan event) and connected again - there were no I/O error, so there is no need to not connected the component, but when there were writes while it wasn't connected, it will be synchronized. This fix cases, when component is disconnected because of I/O error and can be connected again and again. - Bump version number. - Implement backward compatibility mechanism. After this change when metadata in old version is detected, it is automatically upgraded to the new (current) version.
* - Add genid field to the metadata which will allow to improve reliability a bit.pjd2004-12-221-0/+1
| | | | | | | | | | | | | | | | After this change, when component is disconnected because of an I/O error, it will not be connected and synchronized automatically, it will be logged as broken and skipped. Autosynchronization can occur, when component is disconnected (on orphan event) and connected again - there were no I/O error, so there is no need to not connected the component, but when there were writes while it wasn't connected, it will be synchronized. This fix cases, when component is disconnected because of I/O error and can be connected again and again. - Bump version number. - Add version change history. - Implement backward compatibility mechanism. After this change when metadata in old version is detected, it is automatically upgraded to the new (current) version.
* 'forget' command takes device names, not provider names.pjd2004-12-221-1/+1
|
* NOINET6 -> NO_INET6ru2004-12-211-1/+1
|
* NOSHARED -> NO_SHAREDru2004-12-219-9/+9
|
* NOATM -> NO_ATMru2004-12-211-1/+1
|
* Start the dreaded NOFOO -> NO_FOO conversion.ru2004-12-216-6/+6
| | | | OK'ed by: core
* Mark mknod(8) as deprecated. Add text in the 'COMPATIBILITY' sectionjkoshy2004-12-171-1/+26
| | | | | | describing the changes in device management since FreeBSD 4.0. Reviewed by: ru
* Back the warnings down from 9 to 6, since that is the highest we have. Ifobrien2004-12-131-1/+1
| | | | we added a WARNS 7 level, it shouldn't be assumed this code will pass it.
* Do not pass random bits as mount arguments.phk2004-12-121-0/+1
|
* always display the deftxkey for an 802.11 device if privacy is enabledsam2004-12-121-4/+5
|
* add a callback mechanism for code that wants to defer committing changessam2004-12-112-0/+33
| | | | | | until all the command line args have been processed Reviewed by: ambrisko
* Update the IPFW man page to reflect reality. mpsafenet=0 is no longercsjp2004-12-101-10/+0
| | | | | | | required when using ucred based rules. Pointed out by: seanc (thanks!) MFC after: 1 month
* - Turn off 'fast' mode by default and increase maximum memory to consumepjd2004-12-091-3/+3
| | | | | when this mode is used. - Manual page update.
* Overhaul to cleanup some of the tangled logic that's grown over the years.sam2004-12-0814-1538/+3342
| | | | | | | | | | | | | | | | | | | | o break per-address family support out into separate files o modularize per-address family and functional operations using a registration mechanism; this permits configuration according to which files you include (but beware that order of the files is important to insure backwards compatibility) o many cleanups to eliminate incestuous behaviour, global variables, and poor coding practices (still much more to fix) The original motivation of this work was to support dynamic addition of functionality based on the interface so we can eliminate the various little control programs and so that vendors can distribute ifconfig plugins that support their in-kernel code. That work is still to be completed. o Update 802.11 support for all the new net80211 functionality; some of these operations (e.g. list *) may be better suited in a different program
* Make sure we don't pass garbage to the kernel.phk2004-12-081-1/+2
| | | | The filesystem is named "ufs" not "ffs".
* Code for automatic name completion in a tcsh(1) environment.hmp2004-12-051-0/+7
| | | | | PR: docs/44435 Submitted by: Slaven Rezic slaven dot rezic at berlin dot de
* o Do not dump core in -W if dumpdates was not readable and ddatev == NULL.maxim2004-12-022-5/+2
| | | | | | | | | PR: bin/69977 o Remove unused ddates_in. Obtained from: NetBSD MFC after: 3 weeks
* Revert last change. It doesn't break mount(8) reportingru2004-11-301-0/+2
| | | | but allows a "nodev" in /etc/fstab, etc.
* Fix typo.rik2004-11-291-1/+1
| | | | | Submitted by: Janusz Muc'ka (Defacto) <gdef at cvd dot pl> MFC after: 3 days
* Fix the mount(8) status reporting, now that MNT_NODEV is a no-op (zero).ru2004-11-294-13/+2
| | | | Asked to commit by: phk
* Clarify that devd will only parse files whose names end in .conf.ceri2004-11-281-1/+3
| | | | | | | | Prompted by PR: docs/73668 Submitted by: Dan Pelleg MFC After: 3 days
* Don't include sys/user.h merely for its side-effect of recursivelydas2004-11-271-1/+1
| | | | including other headers.
* 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
|
* Avoid comparing pointer against a numerical value by adding a * indelphij2004-11-251-1/+1
| | | | | | front of it. Reviewed by: phk
* Add first cut at dethaumagizing UFS mounting.phk2004-11-252-0/+150
|
* Add a convenience function for building nmount iov arrays.phk2004-11-252-0/+25
|
* Fix bug: don't let "synco" match "sync"phk2004-11-251-4/+2
|
* Remove a duplicate line from an apparent merge error in rev 1.63.brooks2004-11-251-1/+0
|
* Sync usage() and SYNOPSIS.ru2004-11-132-2/+3
|
* Sync usage() with manpage SYNOPSIS and code.ru2004-11-131-4/+6
|
* For create and migrate, remove the `.Op Fl f' introduced in themarcel2004-11-131-4/+2
| | | | | | | previous two commits and combine them with the existing flags that were already there. Pointed out by: ru@
* Add an -f option (for force) to the migrate command. Normally an MBRmarcel2004-11-132-5/+21
| | | | | with unknown partitions is not migrated. By specifying the -f option migration will happen and unknown partitions will be lost.
* Add an -f option (for force) to the create command. The -f optionmarcel2004-11-132-6/+25
| | | | | | | allows the user to force the creation of a GPT even when there's a MBR on the device. The MBR is simply wiped and any partitions described by it are lost. Without the -f option one cannot create a GPT when there's a MBR.
* Reflect the cuaa->cuad namechange in documentation.philip2004-11-132-2/+2
| | | | | | Might as well do them all while I'm at it :-) Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>
* Fix a braino: the partition size in the PMBR is in sectors, not bytesmarcel2004-11-122-8/+8
| | | | | | | | and 'mediasz' is in bytes. As it so happens, we define 'last' as the sector number of the last sector on the medium which also is the size of the PMBR partition. Therefore, use 'last' instead of 'mediasz'. Submitted by: Dan Markarian <markarian at apple dot com>
OpenPOWER on IntegriCloud