summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Update documentation (forgotten in r190929).ed2009-04-111-4/+5
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Do not prepend /dev/ when -C is used.ed2009-04-112-5/+7
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* When using -C, do not warn when the file is not a character device, but warn ↵ed2009-04-111-2/+7
| | | | | | when it is not a regular file. Submitted by: Christoph Mallon <christoph mallon gmx de>
* Fix a bug in r185587.ed2009-04-111-2/+3
| | | | | | | fstat(fd, &sb) was not executed unconditionally anymore so sb was read uninitialised when -C is used. Submitted by: Christoph Mallon <christoph mallon gmx de>
* Use ftruncate() instead of lseek()+write()+lseek() to set the createded2009-04-111-5/+1
| | | | | | file (-C) to the requested size. Submitted by: Christoph Mallon <christoph mallon gmx de>
* De-static local variables in main() (which is not recursive) and const-ifyed2009-04-111-10/+10
| | | | | | others. Submitted by: Christoph Mallon <christoph mallon gmx de>
* Show -@ and -C in usage, which were added in r185587.ed2009-04-111-0/+2
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Clean up the usage() function to use a single fprintf().ed2009-04-111-26/+25
| | | | Submitted by: Christoph Mallon <christoph mallon gmx de>
* Fix broken case where caused by last patch whererrs2009-04-111-1/+2
| | | | | a user uses 0.0.0.0/0 as an alias for default. Obtained from: Mykola Dzham (freebsd@levsha.org.ua)
* Kill hard sentence break added in the previous revision.trhodes2009-04-111-1/+4
|
* Bump doc date for previous changes.trhodes2009-04-111-1/+1
|
* - Better wording in comment.lulf2009-04-101-1/+1
| | | | Suggested by: Christoph Mallon <christoph.mallon - at - gmx.de>
* - Implement the grow command to make it easier for users to extend plexeslulf2009-04-102-7/+95
| | | | | | without having to understand all gvinum internals. - Document the grow command in the manpage and update examples to use the command where possible.
* - Move logic for finding a unique drive name into its own routine for futurelulf2009-04-101-5/+12
| | | | code reuse.
* - Move out allocation part of different gvinum objects into its own routine andlulf2009-04-101-2/+1
| | | | make use of it in the gvinum userland code.
* Add emulation of delay profiles, which lets you model variousluigi2009-04-093-2/+403
| | | | | | | | | | | | | | | | | | | | types of MAC overheads such as preambles, link level retransmissions and more. Note- this commit changes the userland/kernel ABI for pipes (but not for ordinary firewall rules) so you need to rebuild kernel and /sbin/ipfw to use dummynet features. Please check the manpage for details on the new feature. The MFC would be trivial but it breaks the ABI, so it will be postponed until after 7.2 is released. Interested users are welcome to apply the patch manually to their RELENG_7 tree. Work supported by the European Commission, Projects Onelab and Onelab2 (contract 224263).
* o Grammar.maxim2009-04-081-3/+3
|
* Various cleanup of text, moving a couple of paragraphsluigi2009-04-081-88/+99
| | | | | | | | | above to avoid referencing undefined terms (humans are not compilers but still care about these things). Change some .Sh to .Ss to better reflect the structure of the text. No new content.
* Remove contractions, reword a sentence to avoid a double negative,trhodes2009-04-071-3/+4
| | | | | | and bump document date for previous change. OKed by: piso
* Ok, looking at the solution a bit closer, the levelrrs2009-04-061-4/+4
| | | | | | | | | | | calculation was too agressive. Instead we should only look at each nibble. This makes it so we make 10.2.0.0 become 10.2/16 NOT 10.2/17. Need to explore the non-cidr address issue. The two may not be seperable.. MFC after: 1 week
* Class based addressing went out in the early 90's. Basicallyrrs2009-04-061-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | if a entry is not route add -net xxx/bits then we should use the addr (xxx) to establish the number of bits by looking at the first non-zero bit. So if we enter route add -net 10.1.1.0 10.1.3.5 this is the same as doing route add -net 10.1.1.0/24 Since the 8th bit (zero counting) is set to 1 we set bits to 32-8. Users can of course still use the /x to change this behavior or in cases where the network is in the trailing part of the address, a "netmask" argument can be supplied to override what is established from the interpretation of the address itself. e.g: route add -net 10.1.1.8 -netmask 0xff00ffff should overide and place the proper CIDR mask in place. PR: 131365 MFC after: 1 week
* Only raise WARNS to 6 on i386 and amd64, strict alignment platforms stillphk2009-04-061-0/+4
| | | | | barf at some of the gratuitous pointer gymnastics, and I do not see a simple solution.
* Remove if_ppp(4) and if_sl(4).ed2009-04-057-1705/+0
| | | | | | | | | | | | | Not only did these two drivers depend on IFF_NEEDSGIANT, they were broken 7 months ago during the MPSAFE TTY import. if_ppp(4) has been replaced by ppp(8). There is no replacement for if_sl(4). If we see regressions in for example the ports tree, we should just use __FreeBSD_version 800045 to check whether if_ppp(4) and if_sl(4) are present. Version 800045 is used to denote the import of MPSAFE TTY. Discussed with: rwatson, but also rwatson's IFF_NEEDSGIANT emails on the lists.
* Silence a printf warningphk2009-04-051-1/+1
|
* Add some consts, remove some unused stuff and other attempts to calmphk2009-04-059-31/+15
| | | | FlexeLint down.
* Fix casts which are not by definition safe, but which malloc(3)phk2009-04-051-6/+6
| | | | makes safe for us.
* Some constificationsphk2009-04-053-5/+7
|
* Modernize prototypes (ie: no extern)phk2009-04-0510-175/+157
| | | | Make lots of stuff static.
* Improve a bit reass documentation:piso2009-04-051-0/+25
| | | | | -document fragment handling sysctls -mention some caveats about fragments handling (and to deal with it)
* Convert list of remote interfaces to LIST_* macrosphk2009-04-053-16/+8
|
* Kick WARNS level up to 6 by fixing various trivial warnings.phk2009-04-056-9/+10
|
* Use <sys/queue.h> to manage the interface list.phk2009-04-058-41/+35
|
* Remove newlines from string argument of __COPYRIGHT(), it results inphk2009-04-051-2/+2
| | | | assembler warning messages.
* Send multicast on p2p interfaces if they can and are not prohibitedphk2009-04-051-2/+9
| | | | | | | from doing so with no_rip_mcast in /etc/gateways. This allows routed(8) to work with the way ports/security/openvpn employs the tun(4) interface.
* Implement an ipfw action to reassemble ip packets: reass.piso2009-04-014-1/+18
|
* Import the gvinum work that have been done during and after Summer of Code 2007.lulf2009-03-282-99/+605
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The work have been under testing and fixing since then, and it is mature enough to be put into HEAD for further testing. A lot have changed in this time, and here are the most important: - Gvinum now uses one single workerthread instead of one thread for each volume and each plex. The reason for this is that the previous scheme was very complex, and was the cause of many of the bugs discovered in gvinum. Instead, gvinum now uses one worker thread with an event queue, quite similar to what used in gmirror. - The rebuild/grow/initialize/parity check routines no longer runs in separate threads, but are run as regular I/O requests with special flags. This made it easier to support mounted growing and parity rebuild. - Support for growing striped and raid5-plexes, meaning that one can extend the volumes for these plex types in addition to the concat type. Also works while the volume is mounted. - Implementation of many of the missing commands from the old vinum: attach/detach, start (was partially implemented), stop (was partially implemented), concat, mirror, stripe, raid5 (shortcuts for creating volumes with one plex of these organizations). - The parity check and rebuild no longer goes between userland/kernel, meaning that the gvinum command will not stay and wait forever for the rebuild to finish. You can instead watch the status with the list command. - Many problems with gvinum have been reported since 5.x, and some has been hard to fix due to the complicated architecture. Hopefully, it should be more stable and better handle edge cases that previously made gvinum crash. - Failed drives no longer disappears entirely, but now leave behind a dummy drive that makes sure the original state is not forgotten in case the system is rebooted between drive failures/swaps. - Update manpage to reflect new commands and extend it with some examples. Sponsored by: Google Summer of Code 2007 Mentored by: le Tested by: Rick C. Petty <rick-freebsd2008 -at- kiwi-computer.com>
* add superg+tdma include files for protocol defs needed to do ie parsingsam2009-03-261-7/+3
|
* Man page accompanying r190423 - introduce UFS ID labels.ivoras2009-03-251-2/+8
| | | | | Actually-by: pjd Approved by: gnn (mentor)
* Save (empty) worklist at successful completionphk2009-03-231-0/+1
|
* Use the common PC98_SID_ACTIVE define instead of a local define.nyan2009-03-191-4/+2
|
* Mdoc style, spelling, grammar and wording fixes. This manpage needs more work.brueffer2009-03-191-62/+68
|
* Default to AF_LOCAL instead of AF_INET sockets for non-family-specificjamie2009-03-153-14/+16
| | | | | | | operations. This allows the query operations to work in non-IPv4 jails, and will be necessary in a future of possible non-INET networking. Approved by: bz (mentor)
* Also use %zu to print the allocation size when malloc(3) fails.ed2009-03-111-1/+1
| | | | Discussed with: phk
* Fix printf warnings on amd64 etc.phk2009-03-111-1/+1
|
* One Pp is more than enough.phk2009-03-111-1/+0
| | | | Says: brueffer
* Some improvements to recoverdiskphk2009-03-112-19/+48
|
* o Spell. Sort .Xrs.maxim2009-03-081-7/+7
|
* Document several notifications, among them are DEVFS, update to ifneti,kib2009-03-081-3/+58
| | | | | | | | | coretemp and kern. The asmc(4) and zfs(5) are still not documented. Based on the patch by Roland Smith <rsmith xs4all nl>. MFC after: 1 week
* Add a -o mountprog parameter to mount which explicitly allowsrodrigc2009-03-052-4/+39
| | | | | | | | | | | | | | | | | | | an alternative program to be used for mounting a file system. Ideally, all file systems should be converted to pass string arguments to nmount(), so that /sbin/mount can handle them. However, certain file systems such as FUSE have not done this, and want to have their own userland mount programs. For example, to mount an NTFS file system with the FUSE NTFS driver: mount -t ntfs -o mountprog=/usr/local/bin/ntfs-3g /dev/acd0 /mnt or via an fstab entry: /dev/acd0 /mnt ntfs ro,noauto,mountprog=/usr/local/bin/ntfs-3g 0 0 PR: 120784 Requested by: Dominic Fandrey
* move a variable declaration to the beginning of the blockluigi2009-03-051-1/+1
| | | | | (unfortunately, it is far away; we need to pack this code in a better way).
OpenPOWER on IntegriCloud