aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Use possessive "its", no apostrophe.Warren Block2012-06-271-1/+1
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=237620
* Change 'camcontrol defects' to first probe a drive to find out how muchKenneth D. Merry2012-06-222-7/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | defect information it has before grabbing the full defect list. This works around a bug with some Hitachi drives that generate data overrun errors when they are asked for more defect data than they have. The change is done in a spec-compliant way, so it should have no negative impact on drives that don't have this issue. This is based on work originally done at Sandvine. scsi_da.h: Add a define for the maximum amount of data that can be contained in a defect list. camcontrol.c: Update the readdefects() function to issue an initial command to determine the length of the defect list, and then use that length in the request for the full defect list. camcontrol.8: Add a note that some drives will report 0 defects available if you don't request either the PLIST or GLIST. Submitted by: Mark Johnston <markjdb@gmail.com> (original version) MFC after: 3 days Notes: svn path=/head/; revision=237452
* Add progress.c and progress.h, missed in the previous commit to camcontrol.Scott Long2012-06-202-0/+246
| | | | | | | | Submitted by: Garrett Cooper Obtained from: Netflix, Inc. Notes: svn path=/head/; revision=237285
* Update the 'fwdownload' command to also flash disks connected over anScott Long2012-06-204-66/+167
| | | | | | | | | | | | | ATA/SATA transport. The detection logic is automatic, so it should Just Work. While here, also improve the progress meter that is displayed during firmware download. Submitted by: Alistair Crooks Obtained from: Netflix, Inc. MFC after: 3 days Notes: svn path=/head/; revision=237281
* - Updated TOE support in the kernel.Navdeep Parhar2012-06-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Stateful TCP offload drivers for Terminator 3 and 4 (T3 and T4) ASICs. These are available as t3_tom and t4_tom modules that augment cxgb(4) and cxgbe(4) respectively. The cxgb/cxgbe drivers continue to work as usual with or without these extra features. - iWARP driver for Terminator 3 ASIC (kernel verbs). T4 iWARP in the works and will follow soon. Build-tested with make universe. 30s overview ============ What interfaces support TCP offload? Look for TOE4 and/or TOE6 in the capabilities of an interface: # ifconfig -m | grep TOE Enable/disable TCP offload on an interface (just like any other ifnet capability): # ifconfig cxgbe0 toe # ifconfig cxgbe0 -toe Which connections are offloaded? Look for toe4 and/or toe6 in the output of netstat and sockstat: # netstat -np tcp | grep toe # sockstat -46c | grep toe Reviewed by: bz, gnn Sponsored by: Chelsio communications. MFC after: ~3 months (after 9.1, and after ensuring MFC is feasible) Notes: svn path=/head/; revision=237263
* For incompleted block allocations or frees, the inode block count usageKonstantin Belousov2012-06-121-0/+15
| | | | | | | | | | | | | | | | | | must be recalculated. The blk_check pass of suj checker explicitely marks inodes which owned such blocks as needing block count adjustment. But ino_adjblks() is only called by cg_trunc pass, which is performed before blk_check. As result, the block use count for such inodes is left wrong. This causes full fsck run after journaled run to still find inconsistencies like 'INCORRECT BLOCK COUNT I=14557 (328 should be 0)' in phase 1. Fix this issue by running additional adj_blk pass after blk_check, which updates the field. Reviewed by: jeff, mckusick MFC after: 1 week Notes: svn path=/head/; revision=236976
* Revert: r236909Hans Petter Selasky2012-06-111-1/+1
| | | | | | | Pointyhat: me Notes: svn path=/head/; revision=236919
* Use the correct clock source when computing timeouts.Hans Petter Selasky2012-06-111-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=236909
* Update maximum number of tables available in ipfw to reflectAlexander V. Chernikov2012-06-091-2/+2
| | | | | | | | | | changes done in r233478. Approved by: kib(mentor) MFC after: 3 days Notes: svn path=/head/; revision=236824
* mdoc: fix a few badly nested blocks.Joel Dahl2012-06-091-7/+5
| | | | Notes: svn path=/head/; revision=236809
* mdoc: minor improvements to a few lists with tags.Joel Dahl2012-06-091-6/+6
| | | | Notes: svn path=/head/; revision=236780
* Remove repeated words.Joel Dahl2012-06-051-1/+1
| | | | Notes: svn path=/head/; revision=236626
* Minor spelling fixes.Joel Dahl2012-06-051-2/+2
| | | | Notes: svn path=/head/; revision=236625
* Add -p argument for `camcontrol debug` to allow enabling CAM_DEBUG_PROBEAlexander Motin2012-06-042-3/+11
| | | | | | | added at r208911. Notes: svn path=/head/; revision=236555
* Simplify the code by using snprlcat().Pawel Jakub Dawidek2012-06-031-27/+24
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=236507
* Minor mdoc improvements.Joel Dahl2012-06-031-1/+3
| | | | Notes: svn path=/head/; revision=236502
* Rewrite enabling NCQ for SATA devices in a way more alike to SCSI TCQ.Alexander Motin2012-06-021-43/+93
| | | | | | | | | | This allows to control it with `camcontrol negotiate adaX -T (en|dis)able` on the fly, same as for SCSI devices. Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=236437
* Make devd build with libc++.Dimitry Andric2012-06-011-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=236388
* Fix a variety of compile errors with gcc48 and clangEitan Adler2012-05-312-7/+10
| | | | | | | | | | PR: bin/165699 Submitted by: Arne Meyer <meyer.arne83@gmail.com> Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=236355
* Add missing flag enable when certain arguments are parsedEitan Adler2012-05-301-0/+1
| | | | | | | | | | PR: bin/163053 Submitted by: Peter <pmc@citylink.dinoex.sub.org> Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=236285
* Make sure that each va_start has one and only one matching va_end,Kevin Lo2012-05-292-0/+2
| | | | | | | especially in error cases. Notes: svn path=/head/; revision=236213
* if_lagg: allow to invoke SIOCSLAGGPORT multiple times in a rowEygene Ryabinkin2012-05-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, 'ifconfig laggX down' does not remove members from this lagg(4) interface. So, 'service netif stop laggX' followed by 'service netif start laggX' will choke, because "stop" will leave interfaces attached to the laggX and ifconfig from the "start" will refuse to add already-existing interfaces. The real-world case is when I am bundling together my Ethernet and WiFi interfaces and using multiple profiles for accessing network in different places: system being booted up with one profile, but later this profile being exchanged to another one, followed by 'service netif restart' will not add WiFi interface back to the lagg: the "stop" action from 'service netif restart' will shut down my main WiFi interface, so wlan0 that exists in the lagg0 will be destroyed and purged from lagg0; the "start" action will try to re-add both interfaces, but since Ethernet one is already in lagg0, ifconfig will refuse to add the wlan0 from WiFi interface. Since adding the interface to the lagg(4) when it is already here should be an idempotent action: we're really not changing anything, so this fix doesn't change the semantics of interface addition. Approved by: thompsa Reviewed by: emaste MFC after: 1 week Notes: svn path=/head/; revision=236178
* Removed the IFCAP_ prefix when printing the IPv6 checksum capabilities.Bjoern A. Zeeb2012-05-281-1/+1
| | | | | | | | Submitted by: dim MFC after: 3 days Notes: svn path=/head/; revision=236176
* It turns out that too many drivers are not only parsing the L2/3/4Bjoern A. Zeeb2012-05-282-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | headers for TSO but also for generic checksum offloading. Ideally we would only have one common function shared amongst all drivers, and perhaps when updating them for IPv6 we should introduce that. Eventually we should provide the meta information along with mbufs to avoid (re-)parsing entirely. To not break IPv6 (checksums and offload) and to be able to MFC the changes without risking to hurt 3rd party drivers, duplicate the v4 framework, as other OSes have done as well. Introduce interface capability flags for TX/RX checksum offload with IPv6, to allow independent toggling (where possible). Add CSUM_*_IPV6 flags for UDP/TCP over IPv6, and reserve further for SCTP, and IPv6 fragmentation. Define CSUM_DELAY_DATA_IPV6 as we do for legacy IP and add an alias for CSUM_DATA_VALID_IPV6. This pretty much brings IPv6 handling in line with IPv4. TSO is still handled in a different way and not via if_hwassist. Update ifconfig to allow (un)setting of the new capability flags. Update loopback to announce the new capabilities and if_hwassist flags. Individual driver updates will have to follow, as will SCTP. Reported by: gallatin, dim, .. Reviewed by: gallatin (glanced at?) MFC after: 3 days X-MFC with: r235961,235959,235958 Notes: svn path=/head/; revision=236170
* init: Remove unnecessary 2-second delay before calling reboot(2).Jilles Tjoelker2012-05-251-2/+0
| | | | Notes: svn path=/head/; revision=236020
* MFprojects/zfsd:Alexander Motin2012-05-241-1/+20
| | | | | | | | | | | - Add low-level support for SATA Enclosure Management Bridge (SEMB) devices -- SATA equivalents of the SCSI SES/SAF-TE devices. - Add some utility functions for SCSI SAF-TE devices access. Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=235897
* Fixes to man8 groff mandoc style, usage mistakes, or typos.Warren Block2012-05-2410-18/+23
| | | | | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days Notes: svn path=/head/; revision=235873
* shutdown: Remove unnecessary 2-second delay.Jilles Tjoelker2012-05-231-1/+0
| | | | Notes: svn path=/head/; revision=235855
* mdoc: move two sentences from synopsis to description (where they reallyJoel Dahl2012-05-232-20/+16
| | | | | | | belong). With this change, mandoc now formats these manpages properly. Notes: svn path=/head/; revision=235837
* Fix world after byacc import:Baptiste Daroussin2012-05-223-291/+297
| | | | | | | | | | | - old yacc(1) use to magicially append stdlib.h, while new one don't - new yacc(1) do declare yyparse by itself, fix redundant declaration of 'yyparse' Approved by: des (mentor) Notes: svn path=/head/; revision=235789
* MFp4 bz_ipv6_fast:Bjoern A. Zeeb2012-05-192-1/+21
| | | | | | | | | | | | | | | Allow tso4 and tso6 be set individually given we have the bits. This will help with drivers not working as expected during the transition time and later. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn MFC After: 1 week Notes: svn path=/head/; revision=235671
* mdoc: remove whitespace.Joel Dahl2012-05-171-1/+0
| | | | Notes: svn path=/head/; revision=235544
* mdoc: remove superfluous paragraph macro.Joel Dahl2012-05-171-1/+0
| | | | Notes: svn path=/head/; revision=235542
* Import work done under project/nand (@235533) into head.Grzegorz Bernacki2012-05-1711-0/+1745
| | | | | | | | | | | | | | | | | The NAND Flash environment consists of several distinct components: - NAND framework (drivers harness for NAND controllers and NAND chips) - NAND simulator (NANDsim) - NAND file system (NAND FS) - Companion tools and utilities - Documentation (manual pages) This work is still experimental. Please use with caution. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Networks Notes: svn path=/head/; revision=235537
* Minor mdoc nits.Joel Dahl2012-05-131-10/+10
| | | | Notes: svn path=/head/; revision=235400
* Remove end of line whitespace.Joel Dahl2012-05-122-2/+2
| | | | Notes: svn path=/head/; revision=235355
* mdoc: use Po and Pc macros instead of parens. Also avoid starting a lineJoel Dahl2012-05-122-6/+8
| | | | | | | with Ns. Notes: svn path=/head/; revision=235344
* General mdoc(7) and typo fixes.Glen Barber2012-05-122-4/+4
| | | | | | | | | PR: 167804 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days Notes: svn path=/head/; revision=235337
* mdoc: remove redundant paragraph macro.Joel Dahl2012-05-121-1/+0
| | | | Notes: svn path=/head/; revision=235336
* Add etherswitchcfg.Adrian Chadd2012-05-115-0/+1447
| | | | | | | Submitted by: Stefan Bethke <stb@lassitu.de> Notes: svn path=/head/; revision=235289
* Skip nd6 line with no warning message when the system does not supportHiroki Sato2012-05-111-2/+4
| | | | | | | | | INET6. Spotted by: flo Notes: svn path=/head/; revision=235285
* General mdoc(7) and typo fixes.Glen Barber2012-05-101-1/+1
| | | | | | | | | PR: 167696 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days Notes: svn path=/head/; revision=235211
* Document the -c option in --help outputEitan Adler2012-05-091-1/+1
| | | | | | | | | | PR: bin/167463 Submitted by: "Bryan Drewery" <bryan@shatow.net> Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=235205
* Clarify error that geli generatesEitan Adler2012-05-091-0/+3
| | | | | | | | | | | | | when it finds corrupt data. PR: kern/165695 Submitted by: Robert Simmons <rsimmons0@gmail.com> Reviewed by: pjd Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=235201
* Fix offset calculation to actually rewrite the _last_ block.Edward Tomasz Napierala2012-05-061-2/+2
| | | | Notes: svn path=/head/; revision=235079
* Add support for RAID5R. Slightly improve support for RAIDMDF.Alexander Motin2012-05-061-3/+3
| | | | Notes: svn path=/head/; revision=235076
* Add description for GEOM RAID tunables/sysctls.Alexander Motin2012-05-061-1/+28
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=235071
* Don't ignore start offset value when user specifies it togetherAndrey V. Elsukov2012-05-041-1/+4
| | | | | | | | | | | with alignment. PR: bin/167567 Tested by: Warren Block MFC after: 1 week Notes: svn path=/head/; revision=235033
* Implement read-only support for volumes in optimal state (without usingAlexander Motin2012-05-041-4/+6
| | | | | | | redundancy) for the following RAID levels: RAID4/5E/5EE/6/MDF. Notes: svn path=/head/; revision=234993
* Add optional -o argument to the `graid label ` to specify some metadataAlexander Motin2012-05-032-3/+11
| | | | | | | | format options. Use it for specifying byte order for the DDF metadata: big-endian defined by specification and little-endian used by Adaptec. Notes: svn path=/head/; revision=234940