summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r208077:bz2010-05-181-1/+9
| | | | | | Document the 'short preamble' capability for 802.11bg. Reviewed by: sam
* MFC r203757:jh2010-05-121-2/+2
| | | | | - Remove reference to nfs4. mount_nfs4(8) was removed in r192578. - Add newnfs.
* MFC r207499:mav2010-05-081-0/+4
| | | | | | | | Make SATA XPT negotiate and enable some additional SATA features, such as: - device initiated power management (some devices support only this way); - Automatic Partial to Slumber Transition (more power saving); - DMA auto-activation (expected to slightly improve performance). More features could be added later, when hardware supports.
* MFC r207498:mav2010-05-082-3/+21
| | | | Add -d and -f arguments to `camcontrol cmd`, to execute DMA ATA commands.
* MFC r203874:kib2010-05-035-106/+106
| | | | Rename fields to match better the msdosfs headers.
* MFC r203872:kib2010-05-037-70/+100
| | | | Bug fixes from NetBSD.
* MFC r203871:kib2010-05-038-56/+0
| | | | | License changes from NetBSD. Move to 2 clause license, approved by Wolfgang Solfrank.
* MFC r203869:kib2010-05-032-249/+250
| | | | Rename variables to match msdosfs headers.
* MFC r203868:kib2010-05-032-20/+23
| | | | Some cleanups from NetBSD.
* MFC r207070,r207343,r207345,r207347,r207348,r207371,r207372,r207390:pjd2010-05-0114-31/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r207070: Fix compilation with WITHOUT_CRYPT or WITHOUT_OPENSSL options. Reported by: Andrei V. Lavreniyuk <andy.lavr@reactor-xg.kiev.ua> r207343: Don't assume that "resource" property is in metadata. Reported by: Mikolaj Golub <to.my.trociny@gmail.com> r207345: Use WEXITSTATUS() to obtain real exit code. r207347: Mark temporary issues as such. r207348: Restart worker thread only if the problem was temporary. In case of persistent problem we don't want to loop forever. r207371: Fix a problem where hastd will stuck in recv(2) after sending request to secondary, which died between send(2) and recv(2). Do it by adding timeout to recv(2) for primary incoming and outgoing sockets and secondary outgoing socket. Reported by: Mikolaj Golub <to.my.trociny@gmail.com> Tested by: Mikolaj Golub <to.my.trociny@gmail.com> r207372: - Check if the worker process was killed by signal and restart it. - Improve logging. Pointed out by: Garrett Cooper <yanefbsd@gmail.com> r207390: Default connection timeout is way too long. To make it shorter we have to make socket non-blocking, connect() and if we get EINPROGRESS, we have to wait using select(). Very complex, but I know no other way to define connection timeout for a given socket. Reported by: hiroshi@soupacific.com
* MFC r207070:pjd2010-05-011-2/+7
| | | | | | Fix compilation with WITHOUT_CRYPT or WITHOUT_OPENSSL options. Reported by: Andrei V. Lavreniyuk <andy.lavr@reactor-xg.kiev.ua>
* MFC r207020, r207027, r207072.thompsa2010-04-291-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change usb devd events from fake attach to a notify. The ugen device is not a proper device_t so it faked the devctl event to appear like one, this is now a notify which allows more information to be passed. We notify for both the device attach/detach and for each usb interface. A devd rule can now match on the interface properties, including composite devices which may have a uvideo interface and also usound and possibly uhid too. An example to match a umass device with a scsi subclass and BBB protocol would be notify 100 { match "system" "USB"; match "subsystem" "INTERFACE"; match "type" "ATTACH"; match "intclass" "0x08"; match "intsubclass" "0x06"; match "intprotocol" "0x50"; action ... }; The old attach devctl event has been retained for the moment to make merging to 8.1 easier. This was never compatible with 7.x or earlier due to the ugen regex change needed. Document the new USB notification types.
* This is an MFC of 205847mjacob2010-04-291-45/+51
| | | | | | | | | | | | | | | Change how multipath labels are created and managed. This makes it easier 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).
* MFC r206637:delphij2010-04-281-11/+12
| | | | | | | | | | | | | | | | | When an underlying ioctl(2) handler returns an error, our ioctl(2) 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
* This is an MFS of 205412.mjacob2010-04-231-0/+8
| | | | | Add 'rotate' and 'getactive' verbs to provide some control and information about what the currently active path is.
* MFC r205672: fix typo.maxim2010-04-211-1/+1
|
* MFC r205118:brucec2010-04-201-0/+1
| | | | | | | | Free the memory allocated via strdup. PR: bin/113881 Submitted by: Alexander Drozdov (dzal_mail at mtu-net.ru) Approved by: rrs (mentor)
* MFC geom_sched code, a geom-based disk scheduling framework.luigi2010-04-204-0/+306
|
* MFC r204352:pjd2010-04-191-2/+3
| | | | Fixed static linkage.
* MFC r206666:pjd2010-04-181-0/+2
| | | | Flush disk write cache after storing and clearing metadata.
* MFC r204177,r205738,r206669,r206696,r206697:pjd2010-04-184-29/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r204177: Changing proto_socketpair.c compilation and linking order revealed a problem - we should simply ignore proto_server() if address doesn't start with socketpair://, and not abort. r205738: Don't hold connection lock when doing reconnects as it makes I/Os wait for connection timeouts. Reported by: Kevin Day <toasty@dragondata.com> r206669: Increase ggate queue size to maximum value. HAST was not able to stand heavy random load. Reported by: Hiroyuki Yamagami r206696: Fix control socket leak when worker process exits. Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> r206697: Fix log size calculation which caused message truncation. Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>
* MFC r204076,r204077,r204083,r205279:pjd2010-04-1844-2/+11091
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r204076: Please welcome HAST - Highly Avalable Storage. HAST allows to transparently store data on two physically separated machines connected over the TCP/IP network. HAST works in Primary-Secondary (Master-Backup, Master-Slave) configuration, which means that only one of the cluster nodes can be active at any given time. Only Primary node is able to handle I/O requests to HAST-managed devices. Currently HAST is limited to two cluster nodes in total. HAST operates on block level - it provides disk-like devices in /dev/hast/ directory for use by file systems and/or applications. Working on block level makes it transparent for file systems and applications. There in no difference between using HAST-provided device and raw disk, partition, etc. All of them are just regular GEOM providers in FreeBSD. For more information please consult hastd(8), hastctl(8) and hast.conf(5) manual pages, as well as http://wiki.FreeBSD.org/HAST. Sponsored by: FreeBSD Foundation Sponsored by: OMCnet Internet Service GmbH Sponsored by: TransIP BV r204077: Remove some lines left over by accident. r204083: Add missing KEYWORD line. Pointed out by: dougb r205279 sys: Simplify loops.
* MFC r204075:pjd2010-04-182-5/+5
| | | | Style nits.
* MFC r200796:trasz2010-04-186-14/+76
| | | | | | Implement NFSv4 ACL support for UFS. Reviewed by: rwatson
* MFC r206266: Set net.inet6.ip6.fw.enable as well.ume2010-04-111-0/+2
|
* MFC r205514:rpaulo2010-04-061-0/+1
| | | | | | | Add a missing LINE_BREAK() after printing the roaming parameters in verbose mode. Sponsored by: iXsystems, inc.
* MFC 205222qingli2010-04-021-1/+1
| | | | | | | | | | | | | | Verify interface up status using its link state only 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 r201432:trasz2010-03-273-2/+193
| | | | Add manual page for gcache(8).
* MFC r199182:trasz2010-03-271-1/+3
| | | | Add links to zfs(8) and zpool(8) to mount(8) manual page.
* MFC r204840:bz2010-03-271-3/+3
| | | | | | | | | | | As statfs.f_flags are uint64_t the local variables should be as well. We'll start noticing this with the next flag introduced as the lower 32bit are all used. While here compare to 0 explicitly [1]. Suggested by: kib [1] Reviewed by: kib
* fix handling of "ipfw set N ..."luigi2010-03-241-1/+1
| | | | Submitted by: Marcin Wisnicki
* MFC of a large number of ipfw and dummynet fixes and enhancementsluigi2010-03-237-608/+1177
| | | | | | | | | | | | | | | | | | done in CURRENT over the last 4 months. HEAD and RELENG_8 are almost in sync now for ipfw, dummynet the pfil hooks and related components. Among the most noticeable changes: - r200855 more efficient lookup of skipto rules, and remove O(N) blocks from critical sections in the kernel; - r204591 large restructuring of the dummynet module, with support for multiple scheduling algorithms (4 available so far) See the original commit logs for details. Changes in the kernel/userland ABI should be harmless because the kernel is able to understand previous requests from RELENG_8 and RELENG_7. For this reason, this changeset would be applicable to RELENG_7 as well, but i am not sure if it is worthwhile.
* mfc r205179: print correctly addresses with an OR blockluigi2010-03-221-8/+17
|
* MFC r200183 by luigi:glebius2010-03-221-1/+3
| | | | | | | restore setting of sin_len (was removed in 1.146 last february) as it seems that now it is necessary for 'forward' to work outside lo0. Approved by: luigi
* MFC r204150:yongari2010-03-183-8/+10
| | | | Add TSO support on VLAN in fconfig(8).
* Merge r203835 from head:gavin2010-03-171-4/+2
| | | | | | | | | | | | | | | | | | | | | When growing a UFS1 filesystem, we need to initialise all inodes in any new cylinder groups that are created. When the filesystem is first created, newfs always initialises the first two blocks of inodes, and then in the UFS1 case will also initialise the remaining inode blocks. The changes in growfs.c 1.23 broke the initialisation of all inodes, seemingly based on this implementation detail in newfs(8). The result was that instead of initialising all inodes, we would actually end up initialising all but the first two blocks of inodes. If the filesystem was grown into empty (all-zeros) space then the resulting filesystem was fine, however when grown onto non-zeroed space the filesystem produced would appear to have massive corruption on the first fsck after growing. A test case for this problem can be found in the PR audit trail. Fix this by once again initialising all inodes in the UFS1 case. PR: bin/115174 Submitted by: "Nate Eldredge" <nge cs.hmc.edu> Reviewed by: mjacob
* MFC r203461:delphij2010-03-051-24/+23
| | | | static'ify function prototypes and convert K&R to ANSI.
* MFC r203460:delphij2010-03-052-2/+3
| | | | | pukeText is an internal function so define it as static rather than exporting it.
* MFC r203459:delphij2010-03-052-2/+5
| | | | Plug two memory leaks in error case.
* MFC r204195:mav2010-03-012-0/+3
| | | | Improve output for controllers that doesn't report SATA speed.
* Merge r204166 from head:gavin2010-02-281-2/+7
| | | | | | | | Document the interaction between /etc/devfs.conf and /etc/defaults/devfs.conf PR: docs/117308 Submitted by: Mel <mel.xyzzy rachie.is-a-geek.net> (partially)
* MFC r203490: Introduce '[ipaddr]:path' notation.ume2010-02-272-9/+26
| | | | | | | | | Since the existing implementation searches ':' backward, a path which includes ':' could not be mounted. You can now mount such path by enclosing an IP address by '[]'. Though we should change to search ':' forward, it will break 'ipv6addr:path' which is currently working. So, it still searches ':' backward, at least for now.
* MFC of 203763, 203764, 203768, 203769, 203770, 203782, and 203784.mckusick2010-02-265-67/+90
| | | | | | | | | | | | | | | | | These fixes correct a problem in the file system that treats large inode numbers as negative rather than unsigned. For a default (16K block) file system, this bug began to show up at a file system size above about 16Tb. These fixes also update newfs to ensure that it will never create a filesystem with more than 2^32 inodes. They also update libufs, tunefs, and growfs so that they properly handle inode numbers as unsigned. Reported by: Scott Burns, John Kilburg, and Bruce Evans Followup by: Jeff Roberson PR: 133980
* MFC 203052:delphij2010-02-262-2/+70
| | | | | | | Add interface description capability as inspired by OpenBSD. Thanks for rwatson@, jhb@, brooks@ and others for feedback to the old implementation! Sponsored by: iXsystems, Inc.
* MFC r203157, r203816:jh2010-02-201-9/+4
| | | | | | Handle short reads when the -P option is used and remove some dead code. PR: bin/121502
* Add the long missing "destroy" option [mfc of 203505]mjacob2010-02-181-0/+4
|
* MFC r203376, r203384:mav2010-02-141-2/+14
| | | | | | - Give ATA/SATA SIMs info about ATAPI packet size, supported by device. - Make ATA XPT to reject longer SCSI CDBs then supported by device, or any SCSI CDBs, if device doesn't support ATAPI.
* Merge r203310,203547,203717 from head:gavin2010-02-142-6/+17
| | | | | | | | | | Implement the "-i" option to sysctl(8), to ignore failures while retrieving individual OIDs. This allows the same list of OIDs to be passed to sysctl(8) across different systems where particular OIDs may not exist, and still get as much information as possible from them. PR: bin/123644 Submitted by: dhw
* MFC r203534: Correct two typos.delphij2010-02-131-2/+2
| | | | Reported by: Brandon Falk <falkman gamozo org>
* MFC of r201700 | mckusick | 2010-01-06mckusick2010-02-101-1/+1
| | | | | | | | | | | | This corrects a bug that manifested itself as identifying the last cylinder group of a UFS1 filesystem as bad. The error was in the check and not in the cylinder group itself. So even though fsck fixed the cylinder group correctly, it was still endlessly reported as bad. This bug first appeared in 8.0 so does not apply to earlier releases. PR: 141992 Reported by: Dan Strick
OpenPOWER on IntegriCloud