summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Use a local "compress" symbol corresponding to a variable in BSS,ru2004-08-161-2/+2
| | | | | | | rather than the one from libz, corresponding to a function, when linking statically. PR: bin/70392
* Connect RAID3 GEOM class to the build.pjd2004-08-161-0/+1
|
* Introduce GEOM RAID3 class, i.e. kernel module, which implements RAID3pjd2004-08-162-0/+351
| | | | | | | transformation and graid3(8) userland utility, which can be used for configuration. No manual page yet, sorry. Hardware provided by: Daniel Seuffert
* Avoid using void pointers in additive expressions.stefanf2004-08-142-3/+3
| | | | PR: 56653
* Don't declare everything we find on a loopback interface for passive:phk2004-08-141-3/+9
| | | | | | | | Only the actual loopback address should be declared passive, other addresses are very likely to be desirable to announce. Check for IFF_LOOPBACK instead of IFF_PASSIVE to determine if we have an unknown interface type.
* Removed commented out bitrot.ru2004-08-132-2/+0
|
* Remove trailing whitespace and change "prisoniD" to "prisonID".csjp2004-08-131-2/+2
| | | | | Pointed out by: simon Approved by: bmilekic (mentor)
* Add the ability to associate ipfw rules with a specific prison ID.csjp2004-08-122-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the only thing truly unique about a prison is it's ID, I figured this would be the most granular way of handling this. This commit makes the following changes: - Adds tokenizing and parsing for the ``jail'' command line option to the ipfw(8) userspace utility. - Append the ipfw opcode list with O_JAIL. - While Iam here, add a comment informing others that if they want to add additional opcodes, they should append them to the end of the list to avoid ABI breakage. - Add ``fw_prid'' to the ipfw ucred cache structure. - When initializing ucred cache, if the process is jailed, set fw_prid to the prison ID, otherwise set it to -1. - Update man page to reflect these changes. This change was a strong motivator behind the ucred caching mechanism in ipfw. A sample usage of this new functionality could be: ipfw add count ip from any to any jail 2 It should be noted that because ucred based constraints are only implemented for TCP and UDP packets, the same applies for jail associations. Conceptual head nod by: pjd Reviewed by: rwatson Approved by: bmilekic (mentor)
* The geom(8) utility needs dynamic linker functionality to work, so it can'tpjd2004-08-121-0/+2
| | | | | be staticaly linked. This fixes problems on systems compiled with NO_DYNAMICROOT.
* Add support for the examination and modification of the devices.harti2004-08-129-8/+817
| | | | | | This is implemented through SNMP and requires the ilmi daemon to run on the system. To prevent bloat in rescue the atmconfig for rescue is compiled without this stuff.
* Forgot to commit those: introduce hardcoded provider functionality,pjd2004-08-101-14/+31
| | | | | which allow to store provider's name in the metadata and avoid problems when few providers share the same last sector.
* New ipfw option "antispoof":andre2004-08-092-3/+49
| | | | | | | | | | | | | | | For incoming packets, the packet's source address is checked if it belongs to a directly connected network. If the network is directly connected, then the interface the packet came on in is compared to the interface the network is connected to. When incoming interface and directly connected interface are not the same, the packet does not match. Usage example: ipfw add deny ip from any to any not antispoof in Manpage education by: ru
* The multiplier prefix is actually a multiplier suffix.des2004-08-091-1/+1
|
* - Introduce option for hardcoding providers' names into metadata.pjd2004-08-094-41/+79
| | | | | | | | | | | | It allows to fix problems when last provider's sector is shared between few providers. - Bump version number for CONCAT and STRIPE and add code for backward compatibility. - Do not bump version number of MIRROR, as it wasn't officially introduced yet. Even if someone started to play with it, there is no big deal, because wrong MD5 sum of metadata will deny those providers. - Update manual pages. - Add version history to g_(stripe|concat).h files.
* change the name of the md module, to g_md, introduce a define with thejmg2004-08-091-1/+1
| | | | name MD_MODNAME, and make mdconfig use this new define...
* Fix long standing mediaopt setting bugs seen on sparc64. Thoughyongari2004-08-091-6/+12
| | | | | | | | | | | | the bug exists in little-endian machine, it was not triggered due to the difference of memory ordering between little/big endian machines. Instead of relying on possibly modified value during function invokcations, use saved copy of ifr.ifr_addr.sa_family. Also add a comment at the top of ifconfig.c clarifying the issue so the bug won't re-appear. Approved by: jake Reviewed by: yar
* Use fallthrough to simplify the multiplier logic; optimistically adddes2004-08-081-9/+14
| | | | | support for the T multiplier; improve the error message for unrecognized multipliers.
* Fix some whitespace issues, and move a curly brace out of an #ifdef todes2004-08-081-13/+14
| | | | avoid confusing auto-indenting editors.
* Due to popular demand, hook up geom_vinum to the build.le2004-08-071-0/+1
|
* Document the remove command.marcel2004-08-071-1/+37
|
* Implement a remove command. The remove command iterates the GPTmarcel2004-08-075-3/+217
| | | | | | | | | partitions and removes any that matches the pre-conditions. The options are the same for the add command and are used to select the partitions to remove. Currently the remove command without any options deletes all GPT partitions. This is rather harmful and will need anti-footshooting measures.
* Use __FBSDID.marcel2004-08-077-14/+21
|
* o Save the partition number (=index) in the internal map. The indexmarcel2004-08-076-34/+75
| | | | | | | | | | starts at 1. No index is represented by 0. o Change the show command to display the partition number at the expense of the partition end columm. We already display the start and size. o Enhance the add command to accept the -i option. The -i option allows the user to specify which partition number the new partition should get. o Update the manpage accordingly.
* Add and document kern.geom.stripe.fast_failed sysctl, which shows howpjd2004-08-061-0/+7
| | | | many times "fast" mode failed.
* Now that we have gcc 3.4, we can flip ia64 to using a dynamically linkedgordon2004-08-061-1/+1
| | | | | | /bin and /sbin. Reviewed by: marcel (via pluto1)
* Allow 'create <filename>'.le2004-08-041-26/+35
|
* Add Linux swap partition and MS reserved partition descriptions.marcel2004-08-021-19/+27
| | | | | | | | | | | | | While here: o Make the UUIDs static to avoid runtime initialization, o Rename ext to mslinux, o Replace the use of memcmp() with uuid_equal(), o Various style(9) improvements, o Order the comparisons based on importance, o Remove the word partition from all the descriptions, o Other description improvements. Includes patch from: T. Muthu Mohan < Muthu_T at dell dot com >
* What's in a name: s/disklabel/bsdlabel/marcel2004-08-021-1/+1
|
* Don't use version number in library name. The library version is checkedpjd2004-08-024-6/+3
| | | | | | after dlopen() anyway, so we should be safe. Suggested by: ru
* - Signal handlers must have an int argument.stefanf2004-08-022-16/+14
| | | | | | - Use prototypes. - Add a cast for a signed vs unsigned comparison. - Mark as WARNS?=3 clean.
* After changing LIBDIR to SHLIBDIR, because of dependencies problems,pjd2004-08-014-6/+8
| | | | | | | new problem shows up: symblic links (<libname>.so) are created under /usr/lib/ now, instead of under /lib/geom/ where geom(8) looks for them. Introduce a workaround to fix this by teaching geom(8) to open libraries via /lib/geom/<libname>.so.<major_number> instead of /lib/geom/<libname>.so.
* Use SHLIBDIR instead of LIBDIR. This should fix buildworld breakage.pjd2004-07-311-2/+1
| | | | Reported by: des
* Add '-p' option for 'insert' command which allows to specify prioritypjd2004-07-311-1/+3
| | | | | | of the new component. Version number wasn't bumped (it should be), because I think there are no geom_mirror users yet.
* Connect GEOM_MIRROR class to the build.pjd2004-07-301-0/+1
|
* Add GEOM_MIRROR class which provide RAID1 functionality and has many usefulpjd2004-07-302-0/+419
| | | | | | | | features. The gmirror(8) utility should be used for control of this class. There is no manual page yet, but I'm working on it with keramida@. Many useful tests provided by: simon (thank you!) Some ideas from: scottl, simon, phk
* - Add '-S' option, which allow to specify sector size for transparentpjd2004-07-302-1/+6
| | | | | | | | | | provider. - Bump version number. This allows for a quite interesting trick. One can setup a stripe with stripe size of 512 bytes and create transparent provider on top of it with sector size equal to <ndisks> * 512. The result will be something like RAID3 without parity disk (every access will touch all disks).
* Fix typo.pjd2004-07-301-1/+1
|
* Make lookup_host function invocation parameter match its prototype.kan2004-07-291-1/+2
|
* Catch up with recent gcc changes and introduce a DIP_SET macrole2004-07-292-3/+9
| | | | | to use when setting values that depend on the UFS version. Raise WARNS again.
* No need to include if_var.h.harti2004-07-281-1/+0
|
* Get rid of several unneeded includes (if.h, if_var.h, if_mib.h).harti2004-07-281-3/+0
|
* Downgrade WARNS level until GCC 3.4.2 warning are fixed.kan2004-07-282-1/+2
|
* Avoid casts as lvalues.kan2004-07-282-4/+11
|
* Downgrade WARNS level until GCC 3.4.2 warning have been fixed.kan2004-07-281-1/+1
|
* Bump the date, .Dd, since the document content has been changedyar2004-07-271-1/+1
| | | | | | in the previous commit. Pointed out by: ru
* Improve geom(8)'s 'list' command to show geoms and their providers andpjd2004-07-264-50/+75
| | | | consumers. Teach STRIPE, CONCAT and NOP classes about this improvement.
* Change naming scheme from /dev/<name>.stripe to /dev/stripe/<name>.pjd2004-07-261-2/+2
|
* Change naming scheme from /dev/<name>.concat to /dev/concat/<name>.pjd2004-07-261-2/+2
|
* Assign the result of getopt() to an int rather than to a char (which isstefanf2004-07-261-1/+1
| | | | possibly unsigned).
* Add two knobs to ifconfig(8), `vlanmtu' and `vlanhwtag',yar2004-07-262-0/+17
| | | | | | that provide control over the respective capabilities of an interface, reception of extended frames and hardware VLAN multiplexor.
OpenPOWER on IntegriCloud