summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* mdoc: order prologue macros consistently by Dd/Dt/Osuqs2010-04-142-2/+2
| | | | | | | | Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors)
* The sequence number is now a node under which the MCA records aremarcel2010-04-131-10/+26
| | | | | | | hung by CPU id. When showing the MCA record, print the MIB as a comment. PR: ia64/113102
* fix copyright format, as requested by Joel Dahlluigi2010-04-132-3/+6
|
* use correct .PATH, remove unused CFLAGSluigi2010-04-131-3/+2
|
* Bring in geom_sched, support for scheduling disk I/O requestsluigi2010-04-124-0/+304
| | | | | | | | | | | | in a device independent manner. Also include an example anticipatory scheduler, gsched_rr, which gives very nice performance improvements in presence of competing random access patterns. This is joint work with Fabio Checconi, developed last year and presented at BSDCan 2009. You can find details in the README file or at http://info.iet.unipi.it/~luigi/geom_sched/
* fix a buffer overflow with large (100k+) number of input lines.luigi2010-04-121-2/+2
| | | | MFC after: 3 days
* Set net.inet6.ip6.fw.enable as well.ume2010-04-061-0/+2
|
* Change how multipath labels are created and managed. This makes it easiermjacob2010-03-291-45/+51
| | | | | | | | | | | | | | | | | to support various storage boxes which really aren't active-active. We only write the label on the *first* provider. For all other providers we just "add" the disk. This also allows for an "add" verb. A usage implication is that you should specificy the currently active storage path as the first provider. Note that this does not add RDAC-like functionality, but better allows for autovolumefailover configurations (additional checkins elsewhere will support this). Sponsored by: Panasas MFC after: 1 month
* Don't hold connection lock when doing reconnects as it makes I/Os wait forpjd2010-03-271-26/+50
| | | | | | connection timeouts. Reported by: Kevin Day <toasty@dragondata.com>
* o Fix typo.maxim2010-03-261-1/+1
| | | | | | PR: docs/145031 Submitted by: olgeni MFC after: 1 week
* fix another bug in "ipfw set N ..."luigi2010-03-241-1/+1
| | | | Submitted by: Marcin Wisnicki
* Add a missing LINE_BREAK() after printing the roaming parameters inrpaulo2010-03-231-0/+1
| | | | | | | verbose mode. Sponsored by: iXsystems, inc. MFC after: 2 weeks
* Add 'rotate' and 'getactive' verbs to provide some control and informationmjacob2010-03-211-0/+8
| | | | | | | about what the currently active path is. Sponsored by: Panasas MFC after: 1 month
* Tweak language to make one point potentially clearer for non-native spekersgavin2010-03-201-2/+2
| | | | | PR: bin/121424 Submitted by: "Julian H. Stacey" <jhs berklix.org>
* Verify interface up status using its link state onlyqingli2010-03-161-1/+1
| | | | | | | | | | | | | | if the interface has such capability. The interface capability flag indicates whether such capability exists. This approach is much more backward compatible. Physical device driver changes will be part of another commit. Also updated the ifconfig utility to show the LINKSTATE capability if present. Reviewed by: rwatson, imp, juli MFC after: 3 days
* accept lower case m as a synonym for Mega (bit/s or bytes/s).luigi2010-03-151-1/+1
|
* print correctly commands of the formluigi2010-03-151-8/+17
| | | | | | | | | | ipfw add 100 allow ip from { 1.2.3.4 or 5.6.7.8 } (note that the above example could be better written as ipfw add 100 allow dst-ip 1.2.3.4,5.6.7.8 Submitted by: Riccardo Panicucci
* + implement (two lines) the kernel side of 'lookup dscp N' to use theluigi2010-03-151-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | dscp as a search key in table lookups; + (re)implement a sysctl variable to control the expire frequency of pipes and queues when they become empty; + add 'queue number' as optional part of the flow_id. This can be enabled with the command queue X config mask queue ... and makes it possible to support priority-based schedulers, where packets should be grouped according to the priority and not some fields in the 5-tuple. This is implemented as follows: - redefine a field in the ipfw_flow_id (in sys/netinet/ip_fw.h) but without changing the size or shape of the structure, so there are no ABI changes. On passing, also document how other fields are used, and remove some useless assignments in ip_fw2.c - implement small changes in the userland code to set/read the field; - revise the functions in ip_dummynet.c to manipulate masks so they also handle the additional field; There are no ABI changes in this commit.
* Implement "lookup dscp N" which does a lookup of the DSCP (top 6 bitsluigi2010-03-152-2/+4
| | | | | | | | | | of ip->ip_tos) in a table. This can be useful to direct traffic to different pipes/queues according to the DSCP of the packet, as follows: ipfw add 100 queue tablearg lookup dscp 3 // table 3 maps dscp->queue This change is a no-op (but harmless) until the two-line kernel side is committed, which will happen shortly.
* Free the memory allocated via strdup.brucec2010-03-131-0/+1
| | | | | | | PR: bin/113881 Submitted by: Alexander Drozdov dzal_mail mtu-net.ru Approved by: rrs (mentor) MFC after: 1 week
* Fix several typos in macros or macro misusage.uqs2010-03-121-1/+1
| | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor)
* implement listing of a subset of pipes/queues/schedulers.luigi2010-03-111-28/+117
| | | | | The filtering of the output is done in the kernel instead of userland to reduce the amount of data transfered.
* nos-tun(8): make WARNS=3 cleanuqs2010-03-102-13/+16
| | | | | | | The renames are in spirit of DragonflyBSD, to keep diff minimal. PR: bin/140060 Approved by: ed (co-mentor)
* Fix "Empty input line" mdoc warning.sobomax2010-03-101-2/+2
| | | | Submitted by: Alexander Best
* o bdeficize expand_number_int() function;sobomax2010-03-093-38/+36
| | | | | o revert most of the recent changes (int -> int64_t conversion) by using this functon for parsing all options.
* Change secrorsize back to int, since that's the data type expected by thesobomax2010-03-092-3/+21
| | | | | | | ioctl(DIOCGSECTORSIZE). It creates issues on some architectures. MFC after: 1 week Reported by: Jayachandran C.
* add back DPADD (removed by mistake in a previous commit)luigi2010-03-081-0/+1
|
* As statfs.f_flags are uint64_t the local variables should be as well.bz2010-03-071-3/+3
| | | | | | | | | | | | | | We'll start noticing this with the next flag introduced as the lower 32bit are all used. As this is old code we might need to do a full tree sweep one day, unless changing our strategy to use a different `API' for getting/setting flags along with the rest of the statfs data. While here compare to 0 explicitly [1]. Suggested by: kib [1] Reviewed by: kib MFC after: 5 days
* more documentation on new dummynet features.luigi2010-03-051-18/+98
|
* Use our standard license text. No more voices in the authors head. :-)joel2010-03-042-16/+16
| | | | Approved by: trasz
* make the listing of queues/pipes/schedulers handle the case ofluigi2010-03-041-4/+19
| | | | data size increasing while we fetch the info.
* fix handling of setsluigi2010-03-041-5/+13
|
* reduce diffs with the cross-platform version (windows needsluigi2010-03-041-0/+14
| | | | some extra initialization)
* remove stale commentluigi2010-03-041-2/+0
|
* Cast these to intmax_t before printing to fix build bustage. Betterimp2010-03-031-7/+9
| | | | solutions welcome.
* - Make function of finding an available drive name a macro.lulf2010-03-031-14/+12
| | | | | | | | - Move check of /dev/ prefix and copy into a function to save code duplication. This also fixes a bug where the /dev/ prefix could not be used when creating volumes on the command line. Tested by: Niclas Zeising <niclas.zeising - at - gmail.com>
* Use expand_number(3) from libutil instead of home-grown function to parsesobomax2010-03-033-92/+34
| | | | | | | human-friendly power-of-two numbers (i.e. 2k, 5M etc). Suggested by: many MFC after: 1 week
* Teach newfs(8) to understand size modifiers for all options takingsobomax2010-03-031-11/+84
| | | | | | | | | size or size-like argument. I.e. "-s 32k" instead of "-s 32768". Size parsing function has been shamelessly stolen from the truncate(1). I'm sure many sysadmins out there will appreciate this small improvement. MFC after: 1 week
* Remove redundant WARNS?=6 overrides and inherit the WARNS setting fromuqs2010-03-022-2/+0
| | | | | | | | the toplevel directory. This does not change any WARNS level and survives a make universe. Approved by: ed (co-mentor)
* Bring in the most recent version of ipfw and dummynet, developedluigi2010-03-027-593/+883
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and tested over the past two months in the ipfw3-head branch. This also happens to be the same code available in the Linux and Windows ports of ipfw and dummynet. The major enhancement is a completely restructured version of dummynet, with support for different packet scheduling algorithms (loadable at runtime), faster queue/pipe lookup, and a much cleaner internal architecture and kernel/userland ABI which simplifies future extensions. In addition to the existing schedulers (FIFO and WF2Q+), we include a Deficit Round Robin (DRR or RR for brevity) scheduler, and a new, very fast version of WF2Q+ called QFQ. Some test code is also present (in sys/netinet/ipfw/test) that lets you build and test schedulers in userland. Also, we have added a compatibility layer that understands requests from the RELENG_7 and RELENG_8 versions of the /sbin/ipfw binaries, and replies correctly (at least, it does its best; sometimes you just cannot tell who sent the request and how to answer). The compatibility layer should make it possible to MFC this code in a relatively short time. Some minor glitches (e.g. handling of ipfw set enable/disable, and a workaround for a bug in RELENG_7's /sbin/ipfw) will be fixed with separate commits. CREDITS: This work has been partly supported by the ONELAB2 project, and mostly developed by Riccardo Panicucci and myself. The code for the qfq scheduler is mostly from Fabio Checconi, and Marta Carbone and Francesco Magno have helped with testing, debugging and some bug fixes.
* Always assign WARNS using ?=uqs2010-03-022-3/+2
| | | | | | | - fix some nearby style bugs - include Makefile.inc where it makes sense and reduces duplication Approved by: ed (co-mentor)
* rtsol(8)/rtsold(8): make WARNS=3 cleanuqs2010-02-271-1/+1
| | | | | | It is actually WARNS=6 clean for non-strict alignment archs. Approved by: ed (co-mentor)
* route(8): make WARNS=3 cleanuqs2010-02-272-149/+155
| | | | | | | | | | | | - add static and const where appropriate - check pointers against NULL - minor styling nits - it is actually WARNS=6 clean for non-strict alignment platforms This is shamelessly stolen from DragonflyBSD and reduces our diff. PR: bin/140078 Approved by: ed (co-mentor)
* routed(8)/rtquery(8) bump/demote to WARNS=3 for all archsuqs2010-02-273-11/+12
| | | | | | | | | - The MACHINE_ARCH check is not exhaustive (missing at least powerpc), and generally not worth maintaining. - While here, fix whitespace and ordering of the Makefile PR: bin/140081 Approved by: ed (co-mentor)
* mount_ntfs(8): make WARNS=6 cleanuqs2010-02-272-12/+6
| | | | | PR: bin/140000 Approved by: ed (co-mentor)
* mount_hpfs(8): make WARNS=6 cleanuqs2010-02-272-15/+7
| | | | | PR: bin/139995 Approved by: ed (co-mentor)
* Fixed static linkage.ru2010-02-261-2/+3
|
* Fixed dependencies (make checkdpadd).ru2010-02-253-1/+3
|
* Improve output for controllers that doesn't report SATA speed.mav2010-02-222-0/+3
|
* Changing proto_socketpair.c compilation and linking order revealedpjd2010-02-211-1/+4
| | | | | a problem - we should simply ignore proto_server() if address doesn't start with socketpair://, and not abort.
OpenPOWER on IntegriCloud