summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Replace incomprehensive description of -m by much clearer text from OpenBSD,pav2007-05-121-2/+3
| | | | | | | | | with the exception of one word. PR: docs/112465 Submitted by: naddy Obtained from: OpenBSD MFC after: 1 week
* Another merging from sbin/fdisk/fdisk.8.nyan2007-05-101-68/+75
| | | | | PR: 109929 Submitted by: Alex Kozlov
* Integrate the Camellia Block Cipher. For more information see RFC 4132gnn2007-05-092-0/+2
| | | | | | | and its bibliography. Submitted by: Tomoyuki Okazaki <okazaki at kick dot gr dot jp> MFC after: 1 month
* o Teach get_mac_addr_mask() to not silently accept incorrect MACmaxim2007-05-091-22/+38
| | | | | | | | | addresses. o Swap a couple of magic 6s by ETHER_ADDR_LEN. PR: bin/80913 Submitted by: Andrey V. Elsukov MFC after: 1 month
* Reduce diffs against fdisk/fdisk.8.nyan2007-05-091-158/+142
|
* - A partition number is allowed to 1-8.nyan2007-05-091-11/+5
| | | | | | - Remove non-exist -b flag. - Add reference to boot98cfg and newfs. - s/disklabel/bsdlabel/
* Add Apple HFS+ (0xAF) MBR partition type identificator.andre2007-05-061-0/+1
| | | | Submitted by: rpaulo (SoC2007 student)
* Correct some typos.pjd2007-05-061-2/+2
|
* Fix mdoc warnings.pjd2007-05-061-3/+1
|
* Add support for filtering on Routing Header Type 0 andbz2007-05-042-3/+25
| | | | | | | Mobile IPv6 Routing Header Type 2 in addition to filter on the non-differentiated presence of any Routing Header. MFC after: 3 weeks
* Do some cleanups (like freeing memory and closing file descriptors) beforepjd2007-05-011-6/+6
| | | | leaving the functions.
* o Add -p flag: print a slice table in fdisk configuration file format.maxim2007-04-302-4/+36
| | | | | | | | Now it is possible to do something like fdisk -p ad0 | fdisk -f - ad1. PR: bin/110182 Submitted by: Jukka A. Ukkonen MFC after: 1 month
* o Make ipfw(8) show rules with mac/mac-type options correctly.maxim2007-04-301-36/+17
| | | | | | | | | | | | | | | | | | | | Before: $ ipfw -n add 100 count icmp from any to any mac-type 0x01 00100 count icmp 0x0001 $ ipfw -n add 100 count icmp from any to any mac any any 00100 count icmp MAC any any any After: $ ipfw -n add 100 count icmp from any to any mac-type 0x01 00100 count icmp from any to any mac-type 0x0001 $ ipfw -n add 100 count icmp from any to any mac any any 00100 count icmp from any to any MAC any any PR: bin/112244 Submitted by: Andrey V. Elsukov MFC after: 1 month
* Fix a typo: argv -> argvpyar2007-04-301-1/+2
| | | | | | | | | | | | | | | | | | | | Rationale: We are interested in the current (last) element of the argv array there, not in its first element. The if construct is there because we want to avoid adding empty (zero-length) arguments to argv, so we just don't advance argvp if the current argument is empty, and it gets overwritten at the next iteration. Note that strsep(3) doesn't treat consecutive delim characters as a single separator, it returns empty fields between such characters, and it's up to the caller to handle them this or that way. Also add a comment that the argv array ends up null-terminated in any case (it's due to the design of the for loop) as an answer to a possible question why the whole argv isn't zero-filled. Submitted by: yongari Tested by: yongari MFC after: 3 days
* Improve reporting in recoverdisk a good deal.phk2007-04-231-12/+26
| | | | | Submitted by: Ulrich Spoerlein <uspoerlein@gmail.com> PR: 111630
* Because there are so many more partitions on pc98 than on wintel (16imp2007-04-212-66/+82
| | | | | | | | | | | | vs 4), supress all unused partition output unless -v is specified. This makes operating on a 'typical' disk with one partition less painful. The 30 lines needed for the empty partitions no longer scroll the useful information off the screen. When the user requests a specific partition, the unused information is not suppressed. Also add the partition name to the -s output. Initialize the partition name to 'FreeBSD' when -I is specified.
* Correct two issues in ping6:mtm2007-04-191-19/+68
| | | | | | | | | | | | | | | | | | | | 1. The static buffer that ping6(8) uses to hold the control data it gets from recvmsg(2) is too small in some cases. 2. When it prints the extra header information it doesn't do any checking to make sure the data it's printing is within the bounds of the supplied buffer. Fix this by: o Increasing the buffer to hold extra headers to 10240 bytes (the minimum according to RFC3542 sec. 20.1) and allocate it dynamically. o In verbose mode, specify a warning if any control data from recvmsg(2) was truncated because the buffer was too small. o When printing the extra headers make sure not to overrun the buffer boundaries. Reviewed By: mlaier PR: kern/99425 MFC After: 1 month
* o Add missed w/space in the error message.maxim2007-04-171-1/+1
| | | | | Spotted by: Ivan Voras MFC after: 1 week
* Rename the trunk(4) driver to lagg(4) as it is too similar to vlan trunking.thompsa2007-04-173-49/+49
| | | | | | | | | | | The name trunk is misused as the networking term trunk means carrying multiple VLANs over a single connection. The IEEE standard for link aggregation (802.3 section 3) does not talk about 'trunk' at all while it is used throughout IEEE 802.1Q in describing vlans. The lagg(4) driver provides link aggregation, failover and fault tolerance. Discussed on: current@
* o IFNAMSIZ includes a terminating null byte.maxim2007-04-141-1/+1
| | | | | Submitted by: rdivacky MFC after: 1 week
* Align -p output in TAB built columns suitable for /etc/fstab.phk2007-04-131-2/+19
|
* The minimum size of an RFC3442 destination descriptor is five bytes, soemaste2007-04-131-1/+1
| | | | | | | correct test to -ge 5. Without this change an RFC3442 encoded default route would be ignored. Reported by: Cedric Jonas <cedric at decemplex dot net>
* Bump document date for new trunk commands.thompsa2007-04-101-1/+1
|
* Hook trunk(4) up to the build.thompsa2007-04-102-0/+18
|
* Add the trunk(4) driver for providing link aggregation, failover and faultthompsa2007-04-101-0/+153
| | | | | | | | | | | | | | | | | tolerance. This driver allows aggregation of multiple network interfaces as one virtual interface using a number of different protocols/algorithms. failover - Sends traffic through the secondary port if the master becomes inactive. fec - Supports Cisco Fast EtherChannel. lacp - Supports the IEEE 802.3ad Link Aggregation Control Protocol (LACP) and the Marker Protocol. loadbalance - Static loadbalancing using an outgoing hash. roundrobin - Distributes outgoing traffic using a round-robin scheduler through all active ports. This code was obtained from OpenBSD and this also includes 802.3ad LACP support from agr(4) in NetBSD.
* Implement a work-around for poor ggate write performance.pjd2007-04-062-1/+12
|
* Remove temporary files when there are no longer needed.pjd2007-04-061-0/+2
|
* (bread): For a read that is contained entirely within a block, never copythomas2007-04-051-1/+1
| | | | | | | | out more than size bytes to the caller's buffer. PR: bin/111191 Reviewed by: pb MFC after: 1 week
* - Protect against specifing journal less than 100MB and against journalpjd2007-04-031-3/+12
| | | | | | | | | which size is not multiple of sector size. Reported by: Eric Anderson <anderson@centtech.com> - Improve wording in error message. I'm sorry, I don't remember who submitted this one.
* don't display ssid cloaking status as "ssid HIDE", use the cmd linesam2007-03-301-2/+2
| | | | | | parameter like everything else MFC after: 2 weeks
* Correct the name of the 'proto' command.thompsa2007-03-291-1/+1
| | | | MFC after: 3 days
* Back out rev. 1.129 because it breaks the practice of auto-loadingyar2007-03-241-1/+3
| | | | | | | | hardware drivers. Unlike pseudo-device drivers, which just attach to the cloning framework and wait for "ifconfig create", h/w drivers create interfaces for installed cards as soon as loaded. The issue of devd(8) involuntarily reloading modules should be dealt with in a different way.
* Exit status should be 1 on error.pjd2007-03-231-8/+5
| | | | | | PR: bin/110705 Reported by: Tom Judge MFC after: 2 weeks
* Attempt to load the kernel module only if we are going to create ayar2007-03-121-3/+1
| | | | | | | | | new interface. In other cases loading the module is unwanted and can lead to ill side effects. One such effect found is as follows: "kldunload if_foo" tells the module to kill all its interfaces, which results in messages sent to devd; the module unloads. Then devd starts processing the messages, which ends up in a etc script running ifconfig fooX, which reloads the module.
* point-to-point address should come from ifa_dstaddrsam2007-03-091-1/+1
|
* Don't leave a NULL value in mdsuffix when a particular mdyar2007-03-071-2/+1
| | | | | | | | | unit w/o suffix is specified. It had better be an empty string as it will be passed to a printf-like function that builds the command line to run. PR: kern/109863 MFC after: 1 week
* Move macros describing extended attributes in UFS frommckusick2007-03-061-0/+1
| | | | | | | | | | | <sys/extattr.h> to <ufs/ufs/extattr.h>. Move description of extended attributes in UFS from man9/extattr.9 to man5/fs.5. Note that restore will not compile until <sys/extattr.h> and <ufs/ufs/extattr.h> have been updated. Suggested by: Robert Watson
* Add "fg" option as antonym to "bg"; add "hard" option as antonym to "soft".thomas2007-03-052-0/+8
| | | | | | | | This is for better compatibility with other environments (Linux, Solaris, HP-UX, AIX and Tru64 support these options). PR: bin/109924 MFC after: 1 week
* Warn when user use sectorsize bigger than the page size, which will leadpjd2007-03-051-0/+4
| | | | | | | | to problems when the geli device is used with file system or as a swap. Hopefully will prevent problems like kern/98742 in the future. MFC after: 1 week
* Fix incorrect comment. Geli will protect against data modification, ofpjd2007-03-051-5/+6
| | | | | | | course! It won't protect against reply attacks - try harder to explain them correctly. MFC after: 1 week
* Document -J in usage.pjd2007-03-021-0/+1
| | | | Submitted by: Eric Anderson <anderson@freebsd.org>
* o consistently check strlcpy resultsam2007-02-271-2/+10
| | | | o warn when we skip an interface because it's name is too long
* correct type to silence const complaintsam2007-02-271-1/+2
|
* unbreak create operation, must copy argument to global namesam2007-02-271-0/+1
| | | | Spotted by: des
* Call the multipath device with its real name.ale2007-02-271-1/+1
|
* First cleanup pass: new sentence -> new line, typos fixed, some markupbrueffer2007-02-271-26/+41
| | | | errors fixed.
* Add a man page.mjacob2007-02-272-2/+250
|
* Fix an error in dumping large sparse files containing extended attributes.mckusick2007-02-271-2/+2
|
* First cut at GEOM based multipath. This is an active/passive{/passive...}mjacob2007-02-273-0/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arrangement that has no intrinsic internal knowledge of whether devices it is given are truly multipath devices. As such, this is a simplistic approach, but still a useful one. The basic approach is to (at present- this will change soon) use camcontrol to find likely identical devices and and label the trailing sector of the first one. This label contains both a full UUID and a name. The name is what is presented in /dev/multipath, but the UUID is used as a true distinguishor at g_taste time, thus making sure we don't have chaos on a shared SAN where everyone names their data multipath as "Fred". The first of N identical devices (and N *may* be 1!) becomes the active path until a BIO request is failed with EIO or ENXIO. When this occurs, the active disk is ripped away and the next in a list is picked to (retry and) continue with. During g_taste events new disks that meet the match criteria for existing multipath geoms get added to the tail end of the list. Thus, this active/passive setup actually does work for devices which go away and come back, as do (now) mpt(4) and isp(4) SAN based disks. There is still a lot to do to improve this- like about 5 of the 12 recommendations I've received about it, but it's been functional enough for a while that it deserves a broader test base. Reviewed by: pjd Sponsored by: IronPort Systems MFC: 2 months
* Update the dump program to save extended attributes. Updatemckusick2007-02-266-46/+514
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | the restore program to restore all dumped extended attributes. If the restore is running as root, it will always be able to restore all extended attributes. If it is not running as root, it makes a best effort to set them. Using the -v command line flag or the `verbose' command in interactive mode will display all the extended attributes being set on files (and at the end on directories) that are being restored. It will note any extended attributes that could not be set. The extended attributes are placed on the dump image immediately following each file's data. Older versions of restore can work with the newer dump images. Old versions of restore will correctly restore the file data and then (silently) skip over the extended attribute data and proceed to the next file. This resolves PR 93085 which will be closed once the code has been MFC'ed. Note that this code will not compile until these header files have been updated: <protocols/dumprestore.h> and <sys/extattr.h>. PR: bin/93085 Comments from: Poul-Henning Kamp and Robert Watson MFC after: 3 weeks
OpenPOWER on IntegriCloud