summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite enabling NCQ for SATA devices in a way more alike to SCSI TCQ.mav2012-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.
* Make devd build with libc++.dim2012-06-011-1/+1
| | | | MFC after: 3 days
* Fix a variety of compile errors with gcc48 and clangeadler2012-05-312-7/+10
| | | | | | | PR: bin/165699 Submitted by: Arne Meyer <meyer.arne83@gmail.com> Approved by: cperciva MFC after: 1 week
* Add missing flag enable when certain arguments are parsedeadler2012-05-301-0/+1
| | | | | | | PR: bin/163053 Submitted by: Peter <pmc@citylink.dinoex.sub.org> Approved by: cperciva MFC after: 1 week
* Make sure that each va_start has one and only one matching va_end,kevlo2012-05-292-0/+2
| | | | especially in error cases.
* if_lagg: allow to invoke SIOCSLAGGPORT multiple times in a rowrea2012-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
* Removed the IFCAP_ prefix when printing the IPv6 checksum capabilities.bz2012-05-281-1/+1
| | | | | Submitted by: dim MFC after: 3 days
* It turns out that too many drivers are not only parsing the L2/3/4bz2012-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
* init: Remove unnecessary 2-second delay before calling reboot(2).jilles2012-05-251-2/+0
|
* MFprojects/zfsd:mav2012-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.
* Fixes to man8 groff mandoc style, usage mistakes, or typos.wblock2012-05-2410-18/+23
| | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days
* shutdown: Remove unnecessary 2-second delay.jilles2012-05-231-1/+0
|
* mdoc: move two sentences from synopsis to description (where they reallyjoel2012-05-232-20/+16
| | | | belong). With this change, mandoc now formats these manpages properly.
* Fix world after byacc import:bapt2012-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)
* MFp4 bz_ipv6_fast:bz2012-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
* mdoc: remove whitespace.joel2012-05-171-1/+0
|
* mdoc: remove superfluous paragraph macro.joel2012-05-171-1/+0
|
* Import work done under project/nand (@235533) into head.gber2012-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
* Minor mdoc nits.joel2012-05-131-10/+10
|
* Remove end of line whitespace.joel2012-05-122-2/+2
|
* mdoc: use Po and Pc macros instead of parens. Also avoid starting a linejoel2012-05-122-6/+8
| | | | with Ns.
* General mdoc(7) and typo fixes.gjb2012-05-122-4/+4
| | | | | | PR: 167804 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* mdoc: remove redundant paragraph macro.joel2012-05-121-1/+0
|
* Add etherswitchcfg.adrian2012-05-115-0/+1447
| | | | Submitted by: Stefan Bethke <stb@lassitu.de>
* Skip nd6 line with no warning message when the system does not supporthrs2012-05-111-2/+4
| | | | | | INET6. Spotted by: flo
* General mdoc(7) and typo fixes.gjb2012-05-101-1/+1
| | | | | | PR: 167696 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* Document the -c option in --help outputeadler2012-05-091-1/+1
| | | | | | | PR: bin/167463 Submitted by: "Bryan Drewery" <bryan@shatow.net> Approved by: cperciva MFC after: 3 days
* Clarify error that geli generateseadler2012-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
* Fix offset calculation to actually rewrite the _last_ block.trasz2012-05-061-2/+2
|
* Add support for RAID5R. Slightly improve support for RAIDMDF.mav2012-05-061-3/+3
|
* Add description for GEOM RAID tunables/sysctls.mav2012-05-061-1/+28
| | | | MFC after: 1 week
* Don't ignore start offset value when user specifies it togetherae2012-05-041-1/+4
| | | | | | | | with alignment. PR: bin/167567 Tested by: Warren Block MFC after: 1 week
* Implement read-only support for volumes in optimal state (without usingmav2012-05-041-4/+6
| | | | redundancy) for the following RAID levels: RAID4/5E/5EE/6/MDF.
* Add optional -o argument to the `graid label ` to specify some metadatamav2012-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.
* Update man page date to the date of the last commit.monthadar2012-05-021-1/+1
| | | | Approved by: adrian
* * Modified ifconfig to show the IEEE80211_MESHRT_FLAGS_DISCOVER flag with a 'D';monthadar2012-05-011-0/+2
| | | | Approved by: adrian
* * Added new command to ifconfig to activate Mesh Gate Announcement calledmonthadar2012-05-012-0/+20
| | | | | | meshgate with corresponding explanation; Approved by: adrian
* Add to GEOM RAID class module, supporting the DDF metadata format, asmav2012-04-301-1/+14
| | | | | | | | | | | | | | | defined by the SNIA Common RAID Disk Data Format Specification v2.0. Supports multiple volumes per array and multiple partitions per disk. Supports standard big-endian and Adaptec's little-endian byte ordering. Supports all single-layer RAID levels. Dual-layer RAID levels except RAID10 are not supported now because of GEOM RAID design limitations. Some work is still to be done, but the present code already manages basic interoperation with RAID BIOS of the Adaptec 1430SA SATA RAID controller. MFC after: 1 month Sponsored by: iXsystems, Inc.
* Improve growfs(8) in a few ways; unfortunately, it's somewhat hard to untangletrasz2012-04-303-186/+263
| | | | | | | | | | | | | | | | | | | | them and commit separately. 1. Rewrite the way growfs(8) finds the device and mount point. This makes it possible to use e.g. "growfs /mnt"; it's also used to display more helpful messages. 2. Be more user-friendly, using descriptive messages, like this: OK to grow filesystem on /dev/md0, mounted on /mnt, from 9.8GB to 20GB? [Yes/No]" 3. Allow to specify the size (-s option) just like with mdconfig(8), i.e. with postfixes ("mdconfig -s 10g"). 4. Reload read-only filesystem after growing. Reviewed by: kib, mckusick (earlier version) Sponsored by: The FreeBSD Foundation
* As of r226840, GELI starts one thread per CPU.gjb2012-04-281-2/+1
| | | | | | PR: 167382 Submitted by: John W. O'Brien (john%saltant.com) X-Needs-MFC: r226840
* Add to GEOM RAID class module for reading non-degraded RAID5 volumes andmav2012-04-191-2/+3
| | | | | | | | some environment to differentiate 4 possible RAID5 on-disk layouts. Tested with Intel and AMD RAID BIOSes. MFC after: 2 weeks
* Unbreak tinderbox.jpaetzel2012-04-182-27/+35
| | | | | | | Fix FreeBSD paradigms in the upstream code. PR: bin/166933 Submitted by: Garrett Cooper <yanegomi@gmail.com>
* Style.trasz2012-04-181-2/+2
|
* Some improvements to GEOM MULTIPATH:mav2012-04-182-8/+45
| | | | | | | | | | | | | | | | - Implement "configure" command to allow switching operation mode of running device on-fly without destroying and recreation. - Implement Active/Read mode as hybrid of Active/Active and Active/Passive. In this mode all paths not marked FAIL may handle reads same time, but unlike Active/Active only one path handles write requests at any point in time. It allows to closer follow original write request order if above layers need it for data consistency (not waiting for requisite write completion before sending dependent write). - Hide duplicate messages about device status change. - Remove periodic thread wake up with 10Hz rate. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* VMware environment is frequent nowadays. Add VMFS id.marck2012-04-161-0/+1
| | | | MFC after: 2 weeks
* Style.trasz2012-04-151-5/+5
|
* Remove FSIRAND and FSMAXSWAP ifdefs, removing code unconditionally.trasz2012-04-152-20/+1
| | | | | Reviewed by: kib, mckusick Sponsored by: The FreeBSD Foundation
* Update to version 2.3.1.0jpaetzel2012-04-134-4/+22
| | | | Obtained from: Daniel Braniss <danny@cs.huji.ac.il>
* Style.trasz2012-04-121-10/+7
|
* Remove block reallocation used to make room for the cylinder grouptrasz2012-04-121-854/+165
| | | | | | | | | | | | | | | | | summary structure. From now on, when there is no room for it, we simply allocate new one in a newly added cylinder group. This patch removes a conditional in updcsloc(), reindents some code there, and removes unused routines. I decided to do it this way instead of disabling reallocation when the filesystem is live and leaving it as it is otherwise, because this allows for removal of lots of complicated and hard to test code. Also, conditionally disabling it would result in a different layout in filesystems resized online and offline, which would look somewhat weird. Reviewed by: mckusick No objections from: kib Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud