summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Also use %zu to print the allocation size when malloc(3) fails.ed2009-03-111-1/+1
| | | | Discussed with: phk
* Fix printf warnings on amd64 etc.phk2009-03-111-1/+1
|
* One Pp is more than enough.phk2009-03-111-1/+0
| | | | Says: brueffer
* Some improvements to recoverdiskphk2009-03-112-19/+48
|
* o Spell. Sort .Xrs.maxim2009-03-081-7/+7
|
* Document several notifications, among them are DEVFS, update to ifneti,kib2009-03-081-3/+58
| | | | | | | | | coretemp and kern. The asmc(4) and zfs(5) are still not documented. Based on the patch by Roland Smith <rsmith xs4all nl>. MFC after: 1 week
* Add a -o mountprog parameter to mount which explicitly allowsrodrigc2009-03-052-4/+39
| | | | | | | | | | | | | | | | | | | an alternative program to be used for mounting a file system. Ideally, all file systems should be converted to pass string arguments to nmount(), so that /sbin/mount can handle them. However, certain file systems such as FUSE have not done this, and want to have their own userland mount programs. For example, to mount an NTFS file system with the FUSE NTFS driver: mount -t ntfs -o mountprog=/usr/local/bin/ntfs-3g /dev/acd0 /mnt or via an fstab entry: /dev/acd0 /mnt ntfs ro,noauto,mountprog=/usr/local/bin/ntfs-3g 0 0 PR: 120784 Requested by: Dominic Fandrey
* move a variable declaration to the beginning of the blockluigi2009-03-051-1/+1
| | | | | (unfortunately, it is far away; we need to pack this code in a better way).
* remove some signed/unsigned and one const/!const warningluigi2009-03-051-5/+5
|
* mark a function static, as it isluigi2009-03-051-1/+1
|
* Verify that the filesystem being referenced in fstab is indeed a UFScy2009-03-021-2/+3
| | | | | | | | filesystem. This avoids confusion with nullfs and unionfs filesystems which reference the root of a UFS filesystem as a target. PR: 116849 Approved by: kib
* newfs_msdos: allow to work with media that doesn't have any CHS paramsavg2009-02-271-5/+17
| | | | | | | | | | Either use parameters provided by user or make them up. The code for faking CHS params is borrowed from disklabel code. The logic for using user-provided and auto-guessed parameters is not perfect, so to speak. PR: bin/121182 Approved by: jhb (mentor)
* Replace clone_setcallback() with a new function clone_setdefcallback()rpaulo2009-02-274-18/+34
| | | | | | | | that selects a callback from an interface prefix name. This allows us to report a meaningful error when the user types 'ifconfig wlan0 create', for example, and also kills some redundant code. Reviewed by: sam (earlier version)
* Bring SATA revision reporting into conformance with SATA-IO guidelines.mav2009-02-231-6/+6
|
* Add SATA and USB modes for completeness. USB modes principally can't be set,mav2009-02-222-7/+12
| | | | | | SATA mode setting is not implementes at this time. Submitted by: Christoph Mallon
* - Punctuation fixes.pjd2009-02-221-9/+18
| | | | | | | | - New sentence - new line. Reported by: Ben Kaduk <minimarmot@gmail.com> - No more than 80 chars per line.
* Display an error message when the requested mode is not known. So the user canrdivacky2009-02-191-0/+2
| | | | | | | | | distinguish between a typo in the mode name and that the device does not support a certain mode (till now both causes show the same result, i.e. the old mode is displayed). Submitted by: Christoph Mallon <christoph.mallon gmx.de> Approved by: kib (mentor)
* Fixup handling of roaming and xmit parameters to support 1/2 and 1/4-widthsam2009-02-191-110/+125
| | | | | | | | | channel modes: o usurp 'h' mode flag for half-width channels o add 'q' mode flag for quarter-width channels o rewrite rate parameter parsing to handle fractional values o merge mode loops to eliminate ordering assumptions o replace 0x80 with IEEE80211_RATE_MCS
* Correct the year.pjd2009-02-171-1/+1
| | | | Reported by: Florian Smeets <flo@kasimir.com>
* Document kern.geom.journal.* sysctls.pjd2009-02-171-6/+102
| | | | | | PR: docs/130548 Submitted by: Hywel Mallett <hywel@hmallett.co.uk> MFC after: 1 week
* Don't add a bwrite() symbol, it breaks the build when building newfscognet2009-02-122-16/+16
| | | | | | statically. Instead, bring in a stripped down version of sbwrite(), and add the offset to every bwrite() calls.
* Prefer the start and end attributes over the offset and sizemarcel2009-02-081-14/+31
| | | | | | attributes. The start and end more accurately describe the space taken by a partition. The offset and size are used to describe the effective (usable) storage of that partition.
* Add SCTP NAT support.piso2009-02-072-16/+218
|\ | | | | | | Submitted by: CAIA (http://caia.swin.edu.au)
| * Import sctp nat support in ipfw obtained from CAIA - http://caia.swin.edu.au.piso2008-12-281-1/+49
| |
* | Regulatory fixups:sam2009-02-073-66/+140
| | | | | | | | | | | | | | | | | | | | | | | | o add missing channel flags for ECM, indoor, and outdoor constraints o use HT capabilities to short-circuit HT20/HT40 channel construction o rewrite 1/2 and 1/4 width channel handling yet again; previously we assumed there was a full-width version of the channel in the calibration table but that's not always true (e.g. for the Public Safety Band), now we first check the calibration table for the exact channel we want then fall back to the heuristics we used before o fix HT channel construction; wasn't adjusting band edges for HT40 channel bandwidth requirements
* | Set NFSMNT_ACDIRMAX flag in fallback_mount() function.rodrigc2009-02-061-0/+1
| |
* | Set NFSMNT_ACREGMIN, NFSMNT_ACREGMAX, and NFSMNT_ACDIRMIN flagsrodrigc2009-02-061-0/+9
| | | | | | | | | | | | | | | | in fallback_mount() function. Add a comment to indicate that the fallback_mount() function should eventually go away. Submitted by: Jaakko Heinonen <jh saunalahti fi>
* | add support for max antenna gain (not used at the moment)sam2009-02-052-0/+5
| |
* | Update the actions previously attempted by the -D option to make themmckusick2009-02-046-76/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | robust. With these changes fsck is now able to detect and reliably rebuild corrupted cylinder group maps. The -D option is no longer necessary as it has been replaced by a prompt asking whether the corrupted cylinder group should be rebuilt and doing so when requested. These actions are only offered and taken when running fsck in manual mode. Corrupted cylinder groups found during preen mode cause the fsck to fail. Add the -r option to free up excess unused inodes. Decreasing the number of preallocated inodes reduces the running time of future runs of fsck and frees up space that can allocated to files. The -r option is ignored when running in preen mode. Reviewed by: Xin LI <delphij@> Sponsored by: Rsync.net
* | Use %u instead of %zu when we intend to print integer constant.delphij2009-02-031-3/+3
| |
* | - Use a separate pointer to the allocated memory for freeing, as strsep maylulf2009-02-021-3/+3
| | | | | | | | | | | | | | | | | | | | modify the pointer argument passed to it. This triggered an assert in malloc when a geom command being run under the livefs environment. PR: bin/130632 Submitted by: Dimitry Andric <dimitry -at- andric.com> Pointy hat to: me MFC after: 2 days
* | Explain that we assume AF_INET and only use the addr and port fieldluigi2009-02-021-1/+4
| | | | | | | | from a struct sockaddr_in, so there is no need to initialize sin_len
* | remove duplicate #includeluigi2009-02-021-1/+0
| |
* | put the altq-related functions into a separate file.luigi2009-02-016-122/+167
| | | | | | | | | | Minor cleanup of the includes used by the various source files, including annotations of why certain headers are used.
* | Remove and unused variable.bz2009-01-311-2/+1
| | | | | | | | | | Submitted by: Christoph Mallon christoph.mallon@gmx.de MFC after: 2 weeks
* | Add the '-C' "check clean" flag. If the FS is marked clean, skip fileobrien2009-01-307-15/+37
| | | | | | | | | | | | | | | | system checking. However, if the file system is not clean, perform a full fsck. Reviewed by: delphij Obtained from: Juniper Networks
* | include the channel list in list caps when -v is set; ieee channelsam2009-01-281-2/+9
| | | | | | | | | | #'s are not available and we have to hack around the mapchan routine but it lets us see the calibration table w/o forcing the debug regdomain
* | pritize the channel we display with list chans so that, among othersam2009-01-281-1/+28
| | | | | | | | | | | | things, 1/2 and 1/4 width channels are hidden behind the full width channel; this is needed because they are ordered such that they appear after in the channel table
* | simplify display of 1/2 and 1/4 width channelssam2009-01-281-16/+9
| |
* | improve debug msgs for regdomain operations; print channel flagssam2009-01-281-12/+25
| | | | | | | | | | symbolically so it's easier to identify channels and why they are added (or not)
* | Fix 1/2 and 1/4 width channel handling:sam2009-01-281-30/+38
| | | | | | | | | | | | | | | | | | | | | | | | o only include 1/2 and 1/4 width channels when they are specified in the regulatory database description; previously we treated them as if they were part of the band and blindly added them for 11a/g o check the channel list returned in the devcaps to identify whether a device supports 1/2 or 1/4 width channels on a band; this might be better brought out as a capability bit to avoid filling the channel list w/ 1/2 and 1/4 width channels but then cards that only support these channels in a range of frequencies could not be described (though right now we don't check frequency range only band)
* | Restore necessary NUL termination of locname.imp2009-01-281-0/+1
| | | | | | | | | | Submitted by: ian dowse MFC after: 2 days
* | Print disk offets as %jd rather than %lld; I fixed one before committingrwatson2009-01-281-1/+1
| | | | | | | | | | | | | | but missed the other, which breaks 64-bit builds. Reported by: bf <bf2006a at yahoo dot com> MFC after: 1 week
* | Avoid the use of duplicated typedefs -- see the comment for details.luigi2009-01-281-15/+21
| |
* | Bump doc date for recent change.trhodes2009-01-281-1/+1
| |
* | Add a new flag to dumpfs(8), -f, which causes dumpfs to list all freerwatson2009-01-282-7/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fragments in the file system by fragment (block) number. This new mode does the necessary arithmetic to generate absolute fragment numbers rather than than the cg-relative numbers printed in the default mode. If -f is passed once, contiguous fragment ranges are collapsed into an X-Y format as free block lists are currently printed in regular dumpfs output, but if specified twice, all block numbers are printed individually, allowing both compact and more script-friendly representation. This proves quite handy when attempting to recover deleted data, as it allows exclusion of non-deleted data from blocks searched. MFC after: 1 week Discussed with: jeff, Richard Clayton <richard dot clayton at cl.cam.ac.uk> Sponsored by: Google, Inc.
* | Fix parsing of acregmin, acregmax, acdirmin and acdirmax NFS mount optionsrodrigc2009-01-281-4/+4
| | | | | | | | | | | | when passed as strings via nmount(). Submitted by: Jaakko Heinonen <jh saunalahti fi>
* | Remove assumptions about the max # channels in ioctl's:sam2009-01-271-85/+132
| | | | | | | | | | | | | | | | | | o change ioctl's that pass channel lists in/out to handle variable-size arrays instead of a fixed (compile-time) value; we do this in a way that maintains binary compatibility o change ifconfig so all channel list data structures are now allocated to hold MAXCHAN entries (1536); this, for example, allows the kernel to return > IEEE80211_CHAN_MAX entries for calls like IEEE80211_IOC_DEVCAPS
* | remove %b msg bit defines now publicsam2009-01-271-7/+0
| |
* | fix printing of uint64_t values, so we can use WARNS=2luigi2009-01-274-11/+27
| |
OpenPOWER on IntegriCloud