aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Don't assume that "resource" property is in metadata.Pawel Jakub Dawidek2010-04-281-1/+1
| | | | | | | | Reported by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=207343
* Bump man page date.Rui Paulo2010-04-281-1/+1
| | | | Notes: svn path=/head/; revision=207321
* Fix typos.Rui Paulo2010-04-282-3/+3
| | | | | | | Obtained from: DragonFlyBSD Notes: svn path=/head/; revision=207320
* - Temporarily lower WARNS until I fix alignment warnings on sparc64.Jeff Roberson2010-04-241-0/+2
| | | | | | | Reported by: Florian Smeets Notes: svn path=/head/; revision=207145
* suj.c seems to contain two versions of the code.Pawel Jakub Dawidek2010-04-241-2065/+0
| | | | | | | Remove the one that doesn't compile. Notes: svn path=/head/; revision=207144
* Protect fsck.h from being included twice.Pawel Jakub Dawidek2010-04-241-0/+5
| | | | Notes: svn path=/head/; revision=207143
* - Merge soft-updates journaling from projects/suj/head into head. ThisJeff Roberson2010-04-2411-317/+5328
| | | | | | | | | | | brings in support for an optional intent log which eliminates the need for background fsck on unclean shutdown. Sponsored by: iXsystems, Yahoo!, and Juniper. With help from: McKusick and Peter Holm Notes: svn path=/head/; revision=207141
* Add and describe GEOM_PART_EBR.Marcel Moolenaar2010-04-231-0/+5
| | | | Notes: svn path=/head/; revision=207096
* Implement the resize command for resizing partitions. Without newMarcel Moolenaar2010-04-232-1/+134
| | | | | | | | | | size, the partition in question is resized to fill all available space. Quality work by Andrey! Submitted by: "Andrey V. Elsukov" <bu7cher@yandex.ru> Notes: svn path=/head/; revision=207095
* Document the new USB notification types.Andrew Thompson2010-04-221-1/+55
| | | | Notes: svn path=/head/; revision=207072
* Fix compilation with WITHOUT_CRYPT or WITHOUT_OPENSSL options.Pawel Jakub Dawidek2010-04-223-5/+22
| | | | | | | | Reported by: Andrei V. Lavreniyuk <andy.lavr@reactor-xg.kiev.ua> MFC after: 3 days Notes: svn path=/head/; revision=207070
* o Add do-not-fragment option support to ping6(8).Maxim Konovalov2010-04-202-6/+16
| | | | | | | | | PR: bin/145759 Submitted by: pluknet MFC after: 1 month Notes: svn path=/head/; revision=206889
* fix 64-bit buildLuigi Rizzo2010-04-191-2/+4
| | | | | | | Reported by: Robert Noland Notes: svn path=/head/; revision=206846
* Slightly different handling of printf/snprintf for unaligned uint64_t,Luigi Rizzo2010-04-193-36/+40
| | | | | | | | | | which should improve readability, and also to ease the port to platforms that do not support %llu MFC after: 3 days Notes: svn path=/head/; revision=206843
* Fix log size calculation which caused message truncation.Pawel Jakub Dawidek2010-04-161-1/+1
| | | | | | | | Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=206697
* Fix control socket leak when worker process exits.Pawel Jakub Dawidek2010-04-161-0/+1
| | | | | | | | Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=206696
* Increase ggate queue size to maximum value.Pawel Jakub Dawidek2010-04-151-1/+1
| | | | | | | | | | HAST was not able to stand heavy random load. Reported by: Hiroyuki Yamagami MFC after: 3 days Notes: svn path=/head/; revision=206669
* Flush disk write cache after storing and clearing metadata.Pawel Jakub Dawidek2010-04-151-0/+2
| | | | Notes: svn path=/head/; revision=206666
* When an underlying ioctl(2) handler returns an error, our ioctl(2)Xin LI2010-04-141-11/+12
| | | | | | | | | | | | | | | | | | | | interface considers that it hits a fatal error, and will not copyout the request structure back for _IOW and _IOWR ioctls, keeping them untouched. The previous implementation of the SIOCGIFDESCR ioctl intends to feed the buffer length back to userland. However, if we return an error, the feedback would be defeated and ifconfig(8) would trap into an infinite loop. This commit changes SIOCGIFDESCR to set buffer field to NULL to indicate the previous ENAMETOOLONG case. Reported by: bschmidt MFC after: 2 weeks Notes: svn path=/head/; revision=206637
* mdoc: order prologue macros consistently by Dd/Dt/OsUlrich Spörlein2010-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) Notes: svn path=/head/; revision=206622
* The sequence number is now a node under which the MCA records areMarcel Moolenaar2010-04-131-10/+26
| | | | | | | | | | hung by CPU id. When showing the MCA record, print the MIB as a comment. PR: ia64/113102 Notes: svn path=/head/; revision=206571
* fix copyright format, as requested by Joel DahlLuigi Rizzo2010-04-132-3/+6
| | | | Notes: svn path=/head/; revision=206552
* use correct .PATH, remove unused CFLAGSLuigi Rizzo2010-04-131-3/+2
| | | | Notes: svn path=/head/; revision=206550
* Bring in geom_sched, support for scheduling disk I/O requestsLuigi Rizzo2010-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/ Notes: svn path=/head/; revision=206497
* fix a buffer overflow with large (100k+) number of input lines.Luigi Rizzo2010-04-121-2/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=206494
* Set net.inet6.ip6.fw.enable as well.Hajimu UMEMOTO2010-04-061-0/+2
| | | | Notes: svn path=/head/; revision=206266
* Change how multipath labels are created and managed. This makes it easierMatt Jacob2010-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 Notes: svn path=/head/; revision=205847
* Don't hold connection lock when doing reconnects as it makes I/Os wait forPawel Jakub Dawidek2010-03-271-26/+50
| | | | | | | | | connection timeouts. Reported by: Kevin Day <toasty@dragondata.com> Notes: svn path=/head/; revision=205738
* o Fix typo.Maxim Konovalov2010-03-261-1/+1
| | | | | | | | | PR: docs/145031 Submitted by: olgeni MFC after: 1 week Notes: svn path=/head/; revision=205672
* fix another bug in "ipfw set N ..."Luigi Rizzo2010-03-241-1/+1
| | | | | | | Submitted by: Marcin Wisnicki Notes: svn path=/head/; revision=205631
* Add a missing LINE_BREAK() after printing the roaming parameters inRui Paulo2010-03-231-0/+1
| | | | | | | | | | verbose mode. Sponsored by: iXsystems, inc. MFC after: 2 weeks Notes: svn path=/head/; revision=205514
* Add 'rotate' and 'getactive' verbs to provide some control and informationMatt Jacob2010-03-211-0/+8
| | | | | | | | | | about what the currently active path is. Sponsored by: Panasas MFC after: 1 month Notes: svn path=/head/; revision=205412
* Tweak language to make one point potentially clearer for non-native spekersGavin Atkinson2010-03-201-2/+2
| | | | | | | | PR: bin/121424 Submitted by: "Julian H. Stacey" <jhs berklix.org> Notes: svn path=/head/; revision=205372
* Verify interface up status using its link state onlyQing Li2010-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 Notes: svn path=/head/; revision=205222
* accept lower case m as a synonym for Mega (bit/s or bytes/s).Luigi Rizzo2010-03-151-1/+1
| | | | Notes: svn path=/head/; revision=205181
* print correctly commands of the formLuigi Rizzo2010-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 Notes: svn path=/head/; revision=205179
* + implement (two lines) the kernel side of 'lookup dscp N' to use theLuigi Rizzo2010-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. Notes: svn path=/head/; revision=205173
* Implement "lookup dscp N" which does a lookup of the DSCP (top 6 bitsLuigi Rizzo2010-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. Notes: svn path=/head/; revision=205169
* Free the memory allocated via strdup.Rebecca Cran2010-03-131-0/+1
| | | | | | | | | | PR: bin/113881 Submitted by: Alexander Drozdov dzal_mail mtu-net.ru Approved by: rrs (mentor) MFC after: 1 week Notes: svn path=/head/; revision=205118
* Fix several typos in macros or macro misusage.Ulrich Spörlein2010-03-121-1/+1
| | | | | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor) Notes: svn path=/head/; revision=205076
* implement listing of a subset of pipes/queues/schedulers.Luigi Rizzo2010-03-111-28/+117
| | | | | | | | The filtering of the output is done in the kernel instead of userland to reduce the amount of data transfered. Notes: svn path=/head/; revision=205050
* nos-tun(8): make WARNS=3 cleanUlrich Spörlein2010-03-102-13/+16
| | | | | | | | | | The renames are in spirit of DragonflyBSD, to keep diff minimal. PR: bin/140060 Approved by: ed (co-mentor) Notes: svn path=/head/; revision=204966
* Fix "Empty input line" mdoc warning.Maxim Sobolev2010-03-101-2/+2
| | | | | | | Submitted by: Alexander Best Notes: svn path=/head/; revision=204936
* o bdeficize expand_number_int() function;Maxim Sobolev2010-03-093-38/+36
| | | | | | | | o revert most of the recent changes (int -> int64_t conversion) by using this functon for parsing all options. Notes: svn path=/head/; revision=204919
* Change secrorsize back to int, since that's the data type expected by theMaxim Sobolev2010-03-092-3/+21
| | | | | | | | | | ioctl(DIOCGSECTORSIZE). It creates issues on some architectures. MFC after: 1 week Reported by: Jayachandran C. Notes: svn path=/head/; revision=204909
* add back DPADD (removed by mistake in a previous commit)Luigi Rizzo2010-03-081-0/+1
| | | | Notes: svn path=/head/; revision=204869
* As statfs.f_flags are uint64_t the local variables should be as well.Bjoern A. Zeeb2010-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 Notes: svn path=/head/; revision=204840
* more documentation on new dummynet features.Luigi Rizzo2010-03-051-18/+98
| | | | Notes: svn path=/head/; revision=204758
* Use our standard license text. No more voices in the authors head. :-)Joel Dahl2010-03-042-16/+16
| | | | | | | Approved by: trasz Notes: svn path=/head/; revision=204725
* make the listing of queues/pipes/schedulers handle the case ofLuigi Rizzo2010-03-041-4/+19
| | | | | | | data size increasing while we fetch the info. Notes: svn path=/head/; revision=204718