summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix several typos in macros or macro misusage.uqs2010-03-121-1/+1
| | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor)
* implement listing of a subset of pipes/queues/schedulers.luigi2010-03-111-28/+117
| | | | | The filtering of the output is done in the kernel instead of userland to reduce the amount of data transfered.
* nos-tun(8): make WARNS=3 cleanuqs2010-03-102-13/+16
| | | | | | | The renames are in spirit of DragonflyBSD, to keep diff minimal. PR: bin/140060 Approved by: ed (co-mentor)
* Fix "Empty input line" mdoc warning.sobomax2010-03-101-2/+2
| | | | Submitted by: Alexander Best
* o bdeficize expand_number_int() function;sobomax2010-03-093-38/+36
| | | | | o revert most of the recent changes (int -> int64_t conversion) by using this functon for parsing all options.
* Change secrorsize back to int, since that's the data type expected by thesobomax2010-03-092-3/+21
| | | | | | | ioctl(DIOCGSECTORSIZE). It creates issues on some architectures. MFC after: 1 week Reported by: Jayachandran C.
* add back DPADD (removed by mistake in a previous commit)luigi2010-03-081-0/+1
|
* As statfs.f_flags are uint64_t the local variables should be as well.bz2010-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
* more documentation on new dummynet features.luigi2010-03-051-18/+98
|
* Use our standard license text. No more voices in the authors head. :-)joel2010-03-042-16/+16
| | | | Approved by: trasz
* make the listing of queues/pipes/schedulers handle the case ofluigi2010-03-041-4/+19
| | | | data size increasing while we fetch the info.
* fix handling of setsluigi2010-03-041-5/+13
|
* reduce diffs with the cross-platform version (windows needsluigi2010-03-041-0/+14
| | | | some extra initialization)
* remove stale commentluigi2010-03-041-2/+0
|
* Cast these to intmax_t before printing to fix build bustage. Betterimp2010-03-031-7/+9
| | | | solutions welcome.
* - Make function of finding an available drive name a macro.lulf2010-03-031-14/+12
| | | | | | | | - Move check of /dev/ prefix and copy into a function to save code duplication. This also fixes a bug where the /dev/ prefix could not be used when creating volumes on the command line. Tested by: Niclas Zeising <niclas.zeising - at - gmail.com>
* Use expand_number(3) from libutil instead of home-grown function to parsesobomax2010-03-033-92/+34
| | | | | | | human-friendly power-of-two numbers (i.e. 2k, 5M etc). Suggested by: many MFC after: 1 week
* Teach newfs(8) to understand size modifiers for all options takingsobomax2010-03-031-11/+84
| | | | | | | | | size or size-like argument. I.e. "-s 32k" instead of "-s 32768". Size parsing function has been shamelessly stolen from the truncate(1). I'm sure many sysadmins out there will appreciate this small improvement. MFC after: 1 week
* Remove redundant WARNS?=6 overrides and inherit the WARNS setting fromuqs2010-03-022-2/+0
| | | | | | | | the toplevel directory. This does not change any WARNS level and survives a make universe. Approved by: ed (co-mentor)
* Bring in the most recent version of ipfw and dummynet, developedluigi2010-03-027-593/+883
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and tested over the past two months in the ipfw3-head branch. This also happens to be the same code available in the Linux and Windows ports of ipfw and dummynet. The major enhancement is a completely restructured version of dummynet, with support for different packet scheduling algorithms (loadable at runtime), faster queue/pipe lookup, and a much cleaner internal architecture and kernel/userland ABI which simplifies future extensions. In addition to the existing schedulers (FIFO and WF2Q+), we include a Deficit Round Robin (DRR or RR for brevity) scheduler, and a new, very fast version of WF2Q+ called QFQ. Some test code is also present (in sys/netinet/ipfw/test) that lets you build and test schedulers in userland. Also, we have added a compatibility layer that understands requests from the RELENG_7 and RELENG_8 versions of the /sbin/ipfw binaries, and replies correctly (at least, it does its best; sometimes you just cannot tell who sent the request and how to answer). The compatibility layer should make it possible to MFC this code in a relatively short time. Some minor glitches (e.g. handling of ipfw set enable/disable, and a workaround for a bug in RELENG_7's /sbin/ipfw) will be fixed with separate commits. CREDITS: This work has been partly supported by the ONELAB2 project, and mostly developed by Riccardo Panicucci and myself. The code for the qfq scheduler is mostly from Fabio Checconi, and Marta Carbone and Francesco Magno have helped with testing, debugging and some bug fixes.
* Always assign WARNS using ?=uqs2010-03-022-3/+2
| | | | | | | - fix some nearby style bugs - include Makefile.inc where it makes sense and reduces duplication Approved by: ed (co-mentor)
* rtsol(8)/rtsold(8): make WARNS=3 cleanuqs2010-02-271-1/+1
| | | | | | It is actually WARNS=6 clean for non-strict alignment archs. Approved by: ed (co-mentor)
* route(8): make WARNS=3 cleanuqs2010-02-272-149/+155
| | | | | | | | | | | | - add static and const where appropriate - check pointers against NULL - minor styling nits - it is actually WARNS=6 clean for non-strict alignment platforms This is shamelessly stolen from DragonflyBSD and reduces our diff. PR: bin/140078 Approved by: ed (co-mentor)
* routed(8)/rtquery(8) bump/demote to WARNS=3 for all archsuqs2010-02-273-11/+12
| | | | | | | | | - The MACHINE_ARCH check is not exhaustive (missing at least powerpc), and generally not worth maintaining. - While here, fix whitespace and ordering of the Makefile PR: bin/140081 Approved by: ed (co-mentor)
* mount_ntfs(8): make WARNS=6 cleanuqs2010-02-272-12/+6
| | | | | PR: bin/140000 Approved by: ed (co-mentor)
* mount_hpfs(8): make WARNS=6 cleanuqs2010-02-272-15/+7
| | | | | PR: bin/139995 Approved by: ed (co-mentor)
* Fixed static linkage.ru2010-02-261-2/+3
|
* Fixed dependencies (make checkdpadd).ru2010-02-253-1/+3
|
* Improve output for controllers that doesn't report SATA speed.mav2010-02-222-0/+3
|
* Changing proto_socketpair.c compilation and linking order revealedpjd2010-02-211-1/+4
| | | | | a problem - we should simply ignore proto_server() if address doesn't start with socketpair://, and not abort.
* Document the interaction between /etc/devfs.conf andgavin2010-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
* Add TSO support on VLAN in fconfig(8).yongari2010-02-203-8/+10
| | | | Reviewed by: thompsa
* Fix common misspelling of hierarchyuqs2010-02-201-1/+1
| | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor)
* Please welcome HAST - Highly Avalable Storage.pjd2010-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
* Style nits.pjd2010-02-182-5/+5
|
* The NetBSD Foundation has granted permission for people to removeimp2010-02-161-7/+0
| | | | clause 3 and 4 from their software.
* sysctl(8): make WARNS=3 cleanuqs2010-02-152-12/+18
| | | | | | | Fixes inspired by work done in DragonflyBSD. PR: bin/140016 Approved by: ed (Co-mentor)
* Bump WARNS where possible.uqs2010-02-157-11/+4
| | | | | Checked by: make universe Approved by: ed (co-mentor)
* Rename fields to match better the msdosfs headers. This work is stillkib2010-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
* Bug fixes from NetBSDkib2010-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
* License changes from NetBSD.kib2010-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
* Rename variables to match msdosfs headers.kib2010-02-142-249/+250
| | | | | | Submitted by: Pedro F. Giffuni <giffunip tutopia com> Reviewed by: bde MFC after: 2 weeks
* Some cleanups from NetBSD:kib2010-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
* When growing a UFS1 filesystem, we need to initialise all inodes in any newgavin2010-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
* Don't try to determine tape block size when the -P option is used.jh2010-02-131-1/+1
| | | | | | This was missed in r203157. PR: bin/121502
* One last pass to get all the unsigned comparisons correct.mckusick2010-02-111-10/+13
|
* Quiet spurious warnings.mckusick2010-02-111-8/+8
|
* Quiet spurious warnings.mckusick2010-02-111-2/+2
|
* Ensure that newfs will never create a filesystem with more than 2^32mckusick2010-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
* - Remove reference to nfs4. mount_nfs4(8) was removed in r192578.jh2010-02-101-2/+2
| | | | - Add newnfs.
OpenPOWER on IntegriCloud