summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Connect SHSEC GEOM class to the build.pjd2005-01-112-0/+2
|
* Introduce a new GEOM class - SHSEC. It provides sharing secret betweenpjd2005-01-113-0/+435
| | | | | | | | the given providers. Without even one of the configured components there should be no way to get the secret. Supported by: WHEEL Sp. z o.o. http://www.wheel.pl
* Make WARNS=6 happy with our init(8):delphij2005-01-112-25/+40
| | | | | | | | | - Use more ``const''s where suitable. - Define strk() as a static function in global scope. This avoids the "nested extern declaration" warnings. - Use static initialization of strings, rather than referring string constants through char *. - Bump WARNS from 0 to 6.
* Scheduled mdoc(7) sweep.ru2005-01-1011-49/+62
|
* Initialize "he" in DoFile, so savecore(8) is WARNS=6 clean.delphij2005-01-102-2/+2
| | | | Bump WARNS accordingly.
* Fix build on all (hopefully) 64 bit architectures.trhodes2005-01-091-1/+1
| | | | | Noticed by: tinderbox Tested on: panther
* Use static const char and bump WARNS.trhodes2005-01-082-2/+2
|
* Remove unused variable.trhodes2005-01-081-1/+0
|
* Cast to intmax_t when using %jd format.pjd2005-01-081-1/+1
| | | | MFC after: 3 days
* Fix the derivation of the GEOM name from the specified device name byrse2005-01-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | complementing the existing special case of a not existing /dev prefix with the recognition of an already existing /dev prefix. This implicitly solves the following two issues related to working on GEOM devices /dev/foo/bar (which have the GEOM provider name "foo/bar") with the expected commands like "bsdlabel /dev/foo/bar": 1. the error "Geom not found" when trying to write or edit the BSD label (because previously the incorrect GEOM name "bar" instead of "foo/bar" was derived from "/dev/foo/bar"). 2. the multiple times reported "magically introduced" partition offset of 63 blocks and the resulting errors like "partition extends past end of unit" and "partition c doesn't start at 0!". This implicitly resulted because bsdlabel(8) determines the "MBR offset" via GEOM and (intentionally) silently falls back to an offset of 0 if it could not be queried (which is the case if the name was incorrectly derived). Usually (at least on PCs) the offset for the first slice is 63 blocks and bsdlabel(8) automatically subtracts them from the absolute offsets in the read on-disk BSD label, resulting in the display of an effective offset of 0. If the GEOM query fails, the assumed offset of 0 is subtracted and an incorrect effective offset of 63 is displayed and tried to be worked upon. Reviewed by: pjd MFC after: 1 week
* Link a couple of missing manpagesguido2005-01-071-0/+2
| | | | | Submitted by: Hideyuki KURASHINA <rushani@FreeBSD.org> MFC after: 1 week
* 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
OpenPOWER on IntegriCloud