aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Improve output for controllers that doesn't report SATA speed.Alexander Motin2010-02-222-0/+3
| | | | Notes: svn path=/head/; revision=204195
* Changing proto_socketpair.c compilation and linking order revealedPawel Jakub Dawidek2010-02-211-1/+4
| | | | | | | | a problem - we should simply ignore proto_server() if address doesn't start with socketpair://, and not abort. Notes: svn path=/head/; revision=204177
* Document the interaction between /etc/devfs.conf andGavin Atkinson2010-02-211-2/+7
| | | | | | | | | | | /etc/defaults/devfs.conf PR: docs/117308 Submitted by: Mel <mel.xyzzy rachie.is-a-geek.net> (partially) MFC after: 1 week Notes: svn path=/head/; revision=204166
* Add TSO support on VLAN in fconfig(8).Pyun YongHyeon2010-02-203-8/+10
| | | | | | | Reviewed by: thompsa Notes: svn path=/head/; revision=204150
* Fix common misspelling of hierarchyUlrich Spörlein2010-02-201-1/+1
| | | | | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor) Notes: svn path=/head/; revision=204111
* Please welcome HAST - Highly Avalable Storage.Pawel Jakub Dawidek2010-02-1844-2/+11091
| | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=204076
* Style nits.Pawel Jakub Dawidek2010-02-182-5/+5
| | | | Notes: svn path=/head/; revision=204075
* The NetBSD Foundation has granted permission for people to removeWarner Losh2010-02-161-7/+0
| | | | | | | clause 3 and 4 from their software. Notes: svn path=/head/; revision=203970
* sysctl(8): make WARNS=3 cleanUlrich Spörlein2010-02-152-12/+18
| | | | | | | | | | Fixes inspired by work done in DragonflyBSD. PR: bin/140016 Approved by: ed (Co-mentor) Notes: svn path=/head/; revision=203917
* Bump WARNS where possible.Ulrich Spörlein2010-02-157-11/+4
| | | | | | | | Checked by: make universe Approved by: ed (co-mentor) Notes: svn path=/head/; revision=203916
* Rename fields to match better the msdosfs headers. This work is stillKonstantin Belousov2010-02-145-106/+106
| | | | | | | | | | | | incomplete as some info doesn't really belong to the structs where it is defined. Submitted by: Pedro F. Giffuni <giffunip tutopia com> Reviewed by: bde MFC after: 2 weeks Notes: svn path=/head/; revision=203874
* Bug fixes from NetBSDKonstantin Belousov2010-02-147-70/+100
| | | | | | | | | | | | | | - fix sign-compare issues. - ANSIfy a couple of functions. - Remove more duplicate #includes. - Memory leak found by Coverity on NetBSD. Submitted by: Pedro F. Giffuni <giffunip tutopia com> Reviewed by: bde MFC after: 2 weeks Notes: svn path=/head/; revision=203872
* License changes from NetBSD.Konstantin Belousov2010-02-148-56/+0
| | | | | | | | | | Move to 2 clause license, approved by Wolfgang Solfrank. Submitted by: Pedro F. Giffuni <giffunip tutopia com> MFC after: 2 weeks Notes: svn path=/head/; revision=203871
* Rename variables to match msdosfs headers.Konstantin Belousov2010-02-142-249/+250
| | | | | | | | | Submitted by: Pedro F. Giffuni <giffunip tutopia com> Reviewed by: bde MFC after: 2 weeks Notes: svn path=/head/; revision=203869
* Some cleanups from NetBSD:Konstantin Belousov2010-02-142-20/+23
| | | | | | | | | | | | | | | | | - C99 initializers. - Change the default volume label from "NO NAME" to "NO_NAME". - Set OEM String to "BSD4.4 " following the unnamed spacing convention in that other OS that suggests "MSWIN4.1" Also, David Naylor's changes for Clang, mostly changing the signess of constants. Submitted by: Pedro F. Giffuni <giffunip tutopia com> Clang fixes by: David Naylor <naylor.b.david gmail com> Reviewed by: bde (with some disagreement about Clang issues) MFC after: 2 weeks Notes: svn path=/head/; revision=203868
* When growing a UFS1 filesystem, we need to initialise all inodes in any newGavin Atkinson2010-02-131-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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 Eldredgei nge cs.hmc.edu Reviewed by: mjacob MFC after: 1 month Notes: svn path=/head/; revision=203835
* Don't try to determine tape block size when the -P option is used.Jaakko Heinonen2010-02-131-1/+1
| | | | | | | | | This was missed in r203157. PR: bin/121502 Notes: svn path=/head/; revision=203816
* One last pass to get all the unsigned comparisons correct.Kirk McKusick2010-02-111-10/+13
| | | | Notes: svn path=/head/; revision=203784
* Quiet spurious warnings.Kirk McKusick2010-02-111-8/+8
| | | | Notes: svn path=/head/; revision=203770
* Quiet spurious warnings.Kirk McKusick2010-02-111-2/+2
| | | | Notes: svn path=/head/; revision=203769
* Ensure that newfs will never create a filesystem with more than 2^32Kirk McKusick2010-02-103-47/+67
| | | | | | | | | | | | | | | | | | | inodes by cutting back on the number of inodes per cylinder group if necessary to stay under the limit. For a default (16K block) file system, this limit begins to take effect for file systems above 32Tb. This fix is in addition to -r203763 which corrected a problem in the kernel that treated 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. Reported by: Scott Burns, John Kilburg, Bruce Evans Followup by: Jeff Roberson PR: 133980 MFC after: 2 weeks Notes: svn path=/head/; revision=203764
* - Remove reference to nfs4. mount_nfs4(8) was removed in r192578.Jaakko Heinonen2010-02-101-2/+2
| | | | | | | - Add newnfs. Notes: svn path=/head/; revision=203757
* Add -i to usage()Gavin Atkinson2010-02-091-1/+1
| | | | | | | | Noticed by: ru MFC after: 5 days Notes: svn path=/head/; revision=203717
* Add the -i option to the synopsis.Gavin Atkinson2010-02-061-2/+2
| | | | | | | | Submitted by: dhw MFC after: 1 week (with r203310) Notes: svn path=/head/; revision=203547
* Correct two typos.Xin LI2010-02-061-2/+2
| | | | | | | | Reported by: Brandon Falk <falkman gamozo org> MFC after: 1 week Notes: svn path=/head/; revision=203534
* Add the long missing "destroy" option.Matt Jacob2010-02-041-0/+4
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=203505
* Introduce '[ipaddr]:path' notation.Hajimu UMEMOTO2010-02-042-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 after: 2 weeks Notes: svn path=/head/; revision=203490
* Shortening a passphrase caused wrong authentication key to be used.Ruslan Ermilov2010-02-041-0/+1
| | | | | | | | | Fix this in a FreeBSD and OpenBSD compatible way. MFC after: 3 days Notes: svn path=/head/; revision=203486
* static'ify function prototypes and convert K&R to ANSI.Xin LI2010-02-031-24/+23
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=203461
* pukeText is an internal function so define it as static rather thanXin LI2010-02-032-2/+3
| | | | | | | | | exporting it. MFC after: 1 month Notes: svn path=/head/; revision=203460
* Plug two memory leaks in error case.Xin LI2010-02-032-2/+5
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=203459
* - Give ATA/SATA SIMs info about ATAPI packet size, supported by device.Alexander Motin2010-02-021-2/+14
| | | | | | | | - Make ATA XPT to reject longer SCSI CDBs then supported by device, or any SCSI CDBs, if device doesn't support ATAPI. Notes: svn path=/head/; revision=203376
* Implement the "-i" option to sysctl(8), to ignore failures whileGavin Atkinson2010-01-312-4/+15
| | | | | | | | | | | | | | 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 Approved by: ed (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=203310
* Allow mknod(8) to be only invoked with a pathname as an argument.Ed Schouten2010-01-312-32/+40
| | | | | | | | | | | | In 99% of the cases people just want to recreate device nodes they removed from /dev. There is no reason to pass the additional "c 0 0" anymore. Also slightly improve the manpage. Remove references to non-existent device names and platforms. Notes: svn path=/head/; revision=203277
* - Handle short reads when the -P option is used. Short reads must beJaakko Heinonen2010-01-291-8/+3
| | | | | | | | | | | | | handled when reading from pipes. - Remove dead code related to the -P option from getvol(). pipein and pipecmdin are never set at the same time. PR: bin/121502 Approved by: trasz (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=203157
* - Cast time_t, int64_t and some int32_t values to intmax_t and use "%jd"Jaakko Heinonen2010-01-295-25/+29
| | | | | | | | | | | | | | | | in format strings. - Use (void) instead of (void *) when discarding strcat(3) return value. - Format string fixes to match variable types. - Change canon() len parameter and getcmd() size parameter type from int to size_t. - Style Makefile and increase WARNS to 2. PR: bin/140061 Submitted by: uqs Approved by: trasz (mentor) Notes: svn path=/head/; revision=203155
* Remove stale inclusion of <ulog.h>.Ed Schouten2010-01-271-1/+0
| | | | | | | This tool doesn't require libulog anymore. Notes: svn path=/head/; revision=203096
* Revised revision 199201 (add interface description capability as inspiredXin LI2010-01-272-2/+70
| | | | | | | | | | | by OpenBSD), based on comments from many, including rwatson, jhb, brooks and others. Sponsored by: iXsystems, Inc. MFC after: 1 month Notes: svn path=/head/; revision=203052
* Make mdconfig(8) WARNS=6 clean:Jaakko Heinonen2010-01-222-8/+6
| | | | | | | | | | | | - Constify geom_config_get() name argument. - Add void keyword for usage(). - Initialize mdunit to NULL. - Don't call md_prthumanval() at all if length is NULL. Approved by: trasz (mentor) Notes: svn path=/head/; revision=202784
* Document the negnametimeo option for mount_nfs as implementedRick Macklem2010-01-211-0/+4
| | | | | | | | | by r202767. This is a content change. MFC after: 2 weeks Notes: svn path=/head/; revision=202772
* Remove stale references to utmp(5) and its corresponding filenames.Ed Schouten2010-01-212-18/+7
| | | | | | | I removed utmp and its manpage, but not other manpages referring to it. Notes: svn path=/head/; revision=202756
* - Add -v argument to `camcontrol identify` command. It makes camcontrolAlexander Motin2010-01-202-16/+34
| | | | | | | | print full identify data block. - Improve identify result view and add TRIM support. Notes: svn path=/head/; revision=202694
* Also output stripeoffset for consumer even if stripesize is zero, whileXin LI2010-01-181-1/+1
| | | | | | | | | stripeoffset is non-zero. Pointed out by: mav Notes: svn path=/head/; revision=202586
* Print sizes up to INT64_MAX in md_prthumanval().Jaakko Heinonen2010-01-181-5/+6
| | | | | | | | | PR: bin/125365 Approved by: trasz (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=202573
* Raise WARNS for various tools where possible.Ed Schouten2010-01-179-9/+4
| | | | | | | Submitted by: Marius Nünnerich <marius@nuenneri.ch> Notes: svn path=/head/; revision=202532
* Mute some (hidden) warnings about old-style function definitions.Ed Schouten2010-01-171-2/+2
| | | | | | | Submitted by: Marius Nünnerich <marius nuenneri ch> Notes: svn path=/head/; revision=202531
* Small fixes.Christian Brueffer2010-01-171-3/+4
| | | | Notes: svn path=/head/; revision=202519
* Stripe offset may be usable even without stripe size known,Xin LI2010-01-171-1/+1
| | | | | | | | | so give the output when either is non-zero. Suggested by: mav Notes: svn path=/head/; revision=202457
* Expose stripe offset and stripe size through libgeom and geom(8) userlandXin LI2010-01-171-0/+8
| | | | | | | | | utilities. Reviewed by: pjd, mav (earlier version) Notes: svn path=/head/; revision=202454
* Add gmountver, disk mount verification GEOM class.Edward Tomasz Napierala2010-01-165-0/+194
| | | | | | | | | | | Note that due to e.g. write throttling ('wdrain'), it can stall all the disk I/O instead of just the device it's configured for. Using it for removable media is therefore not a good idea. Reviewed by: pjd (earlier version) Notes: svn path=/head/; revision=202437