summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Note that output is in seconds, not msec.mckusick2013-03-241-2/+3
| | | | | | | | | KNF indentation. No functional change. No change to printf strings. No change to casting of printf arguments. Reported by: Bruce Evans
* Resolve clang compile errors on amd64/i386 for certain by casting.sbruno2013-03-241-4/+4
| | | | | | | compile tested with clang on i386, amd64 compile tested with gcc on i386, amd64, sparc64 Submitted by: delphij
* Minor formatting fix for printf() to fix clang builds.sbruno2013-03-241-2/+2
| | | | | Submitted by: db Reviewed by: gjb
* Revert 248634 and 248643 (e.g., restoring 248625 and 248639).mckusick2013-03-238-59/+158
| | | | Build verified by: Glen Barber (gjb@)
* Revert r248639 to fix build failure on head/gjb2013-03-231-4/+3
|
* Fix the build after addition of cylinder group cacheing (r248625)mckusick2013-03-231-3/+4
| | | | | Reported by: Glen Barber (gjb@) Pointy hat to: Kirk McKusick (mckusick@)
* Revert svn r248625sbruno2013-03-237-154/+56
| | | | | | | | Clang errors around printf could be trivially fixed, but the breakage in sbin/fsdb were to significant for this type of change. Submitter of this changeset has been notified and hopefully this can be restored soon.
* Speed up fsck by caching the cylinder group maps in pass1 somckusick2013-03-227-56/+154
| | | | | | | | | | | | | | | | | | | | that they do not need to be read again in pass5. As this nearly doubles the memory requirement for fsck, the cache is thrown away if other memory needs in fsck would otherwise fail. Thus, the memory footprint of fsck remains unchanged in memory constrained environments. This work was inspired by a paper presented at Usenix's FAST '13: www.usenix.org/conference/fast13/ffsck-fast-file-system-checker Details of this implementation appears in the April 2013 of ;login: www.usenix.org/publications/login/april-2013-volume-38-number-2. A copy of the April 2013 ;login: paper can also be downloaded from: www.mckusick.com/publications/faster_fsck.pdf. Reviewed by: kib Tested by: Peter Holm MFC after: 4 weeks
* The purpose of this change to the FFS layout policy is to reduce themckusick2013-03-227-11/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | running time for a full fsck. It also reduces the random access time for large files and speeds the traversal time for directory tree walks. The key idea is to reserve a small area in each cylinder group immediately following the inode blocks for the use of metadata, specifically indirect blocks and directory contents. The new policy is to preferentially place metadata in the metadata area and everything else in the blocks that follow the metadata area. The size of this area can be set when creating a filesystem using newfs(8) or changed in an existing filesystem using tunefs(8). Both utilities use the `-k held-for-metadata-blocks' option to specify the amount of space to be held for metadata blocks in each cylinder group. By default, newfs(8) sets this area to half of minfree (typically 4% of the data area). This work was inspired by a paper presented at Usenix's FAST '13: www.usenix.org/conference/fast13/ffsck-fast-file-system-checker Details of this implementation appears in the April 2013 of ;login: www.usenix.org/publications/login/april-2013-volume-38-number-2. A copy of the April 2013 ;login: paper can also be downloaded from: www.mckusick.com/publications/faster_fsck.pdf. Reviewed by: kib Tested by: Peter Holm MFC after: 4 weeks
* Remove EOL whitespace.joel2013-03-211-1/+1
|
* Remove unused variable.melifaro2013-03-201-2/+1
|
* Add ipfw support for setting/matching DiffServ codepoints (DSCP).melifaro2013-03-203-0/+221
| | | | | | | | | | | | | | | | | | | | | | Setting DSCP support is done via O_SETDSCP which works for both IPv4 and IPv6 packets. Fast checksum recalculation (RFC 1624) is done for IPv4. Dscp can be specified by name (AFXY, CSX, BE, EF), by value (0..63) or via tablearg. Matching DSCP is done via another opcode (O_DSCP) which accepts several classes at once (af11,af22,be). Classes are stored in bitmask (2 u32 words). Many people made their variants of this patch, the ones I'm aware of are (in alphabetic order): Dmitrii Tejblum Marcelo Araujo Roman Bogorodskiy (novel) Sergey Matveichuk (sem) Sergey Ryabin PR: kern/102471, kern/121122 MFC after: 2 weeks
* Add simple example.joel2013-03-191-1/+6
|
* Add a comment about why aout support is still here: We need it forimp2013-03-191-0/+7
| | | | compat2x, which is still in use, as evidence by recent bug reports.
* Remove obsolete objformat information.joel2013-03-191-27/+1
| | | | Submitted by: db
* Reduce stack usage.pjd2013-03-181-3/+5
|
* Cross-reference gvinum(8) instead of vinum(8).joel2013-03-166-12/+12
|
* Remove reference to vinum(4). The manual page was removed in r248370.joel2013-03-161-2/+2
|
* Now that ioctl(2) is allowed in capability mode and we can limit ioctls for thepjd2013-03-141-16/+48
| | | | | | | | | given descriptors, use Capsicum sandboxing for hastd in primary and secondary modes. Allow for DIOCGDELETE and DIOCGFLUSH ioctls on provider descriptor and for G_GATE_CMD_MODIFY, G_GATE_CMD_START, G_GATE_CMD_DONE and G_GATE_CMD_DESTROY on GEOM Gate descriptor. Sponsored by: The FreeBSD Foundation
* Minor corrections.pjd2013-03-141-4/+4
|
* Delete requests can be larger than MAXPHYS.pjd2013-03-141-1/+1
|
* Rename 'status' command to 'list' and introduce new 'status' which producesmarck2013-03-142-5/+71
| | | | | | | | | | more terse output more observable for both scripts and humans. Also, it shifts hastctl closer to GEOM utilities with their list/status command pairs. Approved by: pjd MFC after: 4 weeks
* Removed redundant includes.pjd2013-03-141-10/+0
|
* Correct type for DIOCGSTRIPESIZE. Without this theredelphij2013-03-141-1/+1
| | | | | | | | | would be a stack overflow which will crash the program later. PR: bin/176953 Submitted by: r4721 tormail org MFC after: 3 days
* Minor mdoc fixes.joel2013-03-141-1/+4
|
* Add legacy support to geom raid to create a /dev/arX device for supportsbruno2013-03-081-0/+3
| | | | | | | | | | | | | | | of upgrading older machines using ataraid(4) to newer releases. This optional parameter is controlled via kern.geom.raid.legacy_aliases and will create a /dev/ar0 device that will point at /dev/raid/r0 for example. Tested on Dell SC 1425 DDF-1 format software raid controllers installing from stable/7 and upgrading to stable/9 without having to adjust /etc/fstab Reviewed by: mav Obtained from: Yahoo! MFC after: 2 Weeks
* Use build_iovec() to make it less cryptic. This also fixes warnings.jkim2013-03-062-32/+13
|
* GC unused mount_* directories. mount_reiserfs was disconnected from buildjkim2013-03-059-772/+0
| | | | with r158666. mount_ext2fs and mount_std were disconnected with r164527.
* Update the manual page to reflect reality. With r138509 and r152355,jkim2013-03-051-3/+3
| | | | | | | "nostrictjoliet" option for mount_cd9660(8) was completely replaced with "brokenjoliet" somehow. MFC after: 3 days
* GC unused variables. Prefer NULL over 0 for pointers.jkim2013-03-058-25/+21
|
* Do not suddenly fail on some rulesets if -n (syntax check only) is specifiedmelifaro2013-03-041-4/+13
| | | | | | and ipfw(4) module is not loaded. MFC after: 2 weeks
* devd: Correct typo in comment.eadler2013-03-041-1/+1
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Use simpler dst += *x instead of str.append(x, 1).eadler2013-03-041-6/+6
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Use string::empty() instea of string::length() == 0.eadler2013-03-041-1/+1
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Remove unnecessary empty default constructors.eadler2013-03-041-2/+0
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Remove empty virtual destructor from class, which has noch subclasses.eadler2013-03-041-1/+0
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Avoid unnecessary temporary objects (and simplify the code) when ↵eadler2013-03-041-3/+3
| | | | | | | handling std::string. Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Use the standard constructor of std::string instead of string("").eadler2013-03-041-1/+1
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Simplify while (1) { if (x) break; } to while (!x) {}.eadler2013-03-041-3/+1
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Remove call to _exit() from signal handler, which also sets a stop flag.eadler2013-03-041-1/+0
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* devd: Use volatile sig_atomic_t for the flag set by a signal handler.eadler2013-03-041-2/+2
| | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
* Constify where possible.eadler2013-03-042-2/+2
| | | | Approved by: cperciva (mentor)
* Implement buffer size checking in ipfw(8) add cmd.melifaro2013-03-033-62/+125
| | | | | | PR: bin/65961 Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru> MFC after: 2 weeks
* Fix ipfw table argument parsing/printing.melifaro2013-03-021-54/+92
| | | | | | | | Fix style. PR: kern/175909 Submitted by: Daniel Hagerty <hag@linnaean.org> MFC after: 2 weeks
* Garbage collect NTFS bits which are now completely disconnected fromattilio2013-03-023-473/+0
| | | | | | the tree since few months. This patch is not targeted for MFC.
* Garbage collect HPFS bits which are now already completely disconnectedattilio2013-03-023-358/+0
| | | | | | | | from the tree since few months (please note that the userland bits were already disconnected since a long time, thus there is no need to update the OLD* entries). This is not targeted for MFC.
* The .journal file needs to reside on the ROOTINO which must not extendpho2013-02-271-1/+1
| | | | beyond direct blocks. A typo caused this check to fail.
* Fix typo in EFI GPT GUID.benno2013-02-271-1/+1
|
* Clarify that overriding the -h/-D flags through flags in device.hintsn_hibma2013-02-261-4/+3
| | | | only works for sio(4) but not for uart(4) which no longer has this flag.
* Fix casting.trociny2013-02-261-5/+5
| | | | MFC after: 3 days
OpenPOWER on IntegriCloud