summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Disable jail support in ifconfig when either building a rescuermh2012-02-142-2/+15
| | | | | | | image or MK_JAIL knob has been set to "no". Reviewed by: bz Approved by: adrian (mentor)
* Globally replace u_int*_t from (non-contributed) man pages.ed2012-02-122-19/+19
| | | | | | | | | | | The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types. I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected. MFC after: 1 month
* Move utmpx handling out of init(8).ed2012-02-112-40/+2
| | | | | | | | | | | | | | | | | This has the following advantages: - During boot, the BOOT_TIME record is now written right after the file systems become writable, but before users are allowed to log in. This means that they can't cause `hidden logins' by logging in right before init(8) kicks in. - The pututxline(3) function may potentially block on file locking, though this is very rare to occur. By placing it in an rc script, the user can still kill it with ^C if needed. - Most importantly: jails don't use init(8). This means that a force reboot of a system running jails will leave stale entries in the accounting database of the jails individually.
* Nice range comparison.pjd2012-02-111-5/+3
| | | | MFC after: 3 days
* Be more helpful about alternate superblocks.trasz2012-02-102-2/+7
|
* Add BSD copyright notice.emaste2012-02-071-2/+22
| | | | Approved by: gordon@
* Improve sparse file handling when printing the block list for an inode bytruckman2012-02-061-7/+6
| | | | | | | | | | | not bailing out early when a hole is encountered in the direct block list. Print NULL block pointers in the direct block list. Simplify the code that prints the fragment count. Match the style of the existing code. Reviewed by: mckusick MFC after: 1 week
* Bump .Dd for r231076.glebius2012-02-061-1/+1
| | | | Submitted by: bz
* Make the 'tcpwin' option of ipfw(8) accept ranges and lists.glebius2012-02-062-7/+18
| | | | Submitted by: sem
* If a local write request is from the synchronization thread, when ittrociny2012-02-051-1/+2
| | | | | | | | | | | | | is synchronizing data that is out of date on the local component, we should not send G_GATE_CMD_DONE acknowledge to the kernel. This fixes the issue, observed in async mode, when on synchronization from the remote component the worker terminated with "G_GATE_CMD_DONE failed" error. Reported by: Artem Kajalainen <artem kayalaynen ru> Reviewed by: pjd MFC after: 1 week
* Fix the regression introduced in r226859: if the local component istrociny2012-02-051-1/+1
| | | | | | | | out of date BIO_READ requests got lost instead of being sent to the remote component. Reviewed by: pjd MFC after: 1 week
* Fix a possible infinite loop in "route flush" on 64-bit archs.hrs2012-02-041-2/+2
| | | | MFC after: 3 days
* Fix typo in comment.pjd2012-02-041-1/+1
| | | | MFC after: 3 days
* Add -e to set arbitrary kernel environment variables.emaste2012-01-312-10/+44
| | | | | | | | Nextboot(8) can now set any combination of kernel name (-k), kernel options (-o), and environment strings (-e). As a result of this change -k also becomes optional. Reviewed by: freebsd-current (Ian Lepore, pluknet@, jhb@)
* Fix build when RELEASE_CRUNCH is defined.nyan2012-01-291-2/+2
|
* Remove trailing whitespace.jh2012-01-281-1/+1
|
* Rewrite option parsing in mdconfig(8). This makes it more user-friendlytrasz2012-01-271-118/+131
| | | | | | | by removing the ordering requirements and adding more descriptive error messages; it also makes it more readable and maintainable. Sponsored by: The FreeBSD Foundation
* Add CAM infrastructure to allow reporting when a drive's long read capacityken2012-01-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | data changes. cam_ccb.h: Add a new advanced information type, CDAI_TYPE_RCAPLONG, for long read capacity data. cam_xpt_internal.h: Add a read capacity data pointer and length to struct cam_ed. cam_xpt.c: Free the read capacity buffer when a device goes away. While we're here, make sure we don't leak memory for other malloced fields in struct cam_ed. scsi_all.c: Update the scsi_read_capacity_16() to take a uint8_t * and a length instead of just a pointer to the parameter data structure. This will hopefully make this function somewhat immune to future changes in the parameter data. scsi_all.h: Add some extra bit definitions to struct scsi_read_capacity_data_long, and bump up the structure size to the full size specified by SBC-3. Change the prototype for scsi_read_capacity_16(). scsi_da.c: Register changes in read capacity data with the transport layer. This allows the transport layer to send out an async notification to interested parties. Update the dasetgeom() API. Use scsi_extract_sense_len() instead of scsi_extract_sense(). scsi_xpt.c: Add support for the new CDAI_TYPE_RCAPLONG advanced information type. Make sure we set the physpath pointer to NULL after freeing it. This allows blindly freeing it in the struct cam_ed destructor. sys/param.h: Bump __FreeBSD_version from 1000005 to 1000006 to make it easier for third party drivers to determine that the read capacity data async notification is available. camcontrol.c, mptutil/mpt_cam.c: Update these for the new scsi_read_capacity_16() argument structure. Sponsored by: Spectra Logic
* Add a timeout on positive name cache entries in the NFS client. That is,jhb2012-01-251-0/+4
| | | | | | | | | | | we will only trust a positive name cache entry for a specified amount of time before falling back to a LOOKUP RPC, even if the ctime for the file handle matches the cached copy in the name cache entry. The timeout is configured via a new 'nametimeo' mount option and defaults to 60 seconds. It may be set to zero to disable positive name caching entirely. Reviewed by: rmacklem MFC after: 1 week
* - Fix documentation to note that /etc/hast.conf is the default configurationpjd2012-01-241-4/+6
| | | | | | | | file for hastd(8) and hastctl(8) and not hast.conf. - In copyright statement correct that this file is documentation, not software. - Bump date. MFC after: 3 days
* Free memory that won't be used in child.pjd2012-01-221-3/+7
| | | | MFC after: 1 week
* Fix minor memory leak.pjd2012-01-211-0/+1
| | | | MFC after: 3 days
* Replace the beerware license on mdconfig(8) with standard 2-clause BSD.trasz2012-01-211-8/+25
| | | | Approved by: phk@
* Remove another unused token.pjd2012-01-201-1/+1
| | | | MFC after: 3 days
* Remove unused token 'port'.pjd2012-01-202-2/+1
| | | | MFC after: 3 days
* Don't print the nmount(2) provided error message if it is empty.jh2012-01-201-1/+4
|
* Change mount_fs() to not exit on error. The "failok" mount optionjh2012-01-201-6/+5
| | | | | | | requires that errors are passed to the caller. PR: 163668 Reviewed by: Garrett Cooper
* - Clean up checkpath().jh2012-01-201-8/+5
| | | | | | | | - Remove unneeded sysexits.h include. No functional change. Submitted by: bde
* Allow growfs to be built with GCC 4.7 and -Werror.ed2012-01-171-1/+3
| | | | | The dp1 variable is only used when FSIRAND is defined. Just place the variable behind #ifdefs entirely.
* Change checkpath() to not exit on error. This is a prerequisite forjh2012-01-1614-19/+41
| | | | | | | fixing the mount(8) "failok" option. PR: 163668 Reviewed by: Garrett Cooper, delphij (previous version)
* Style cleanups.pjd2012-01-131-6/+11
| | | | MFC after: 3 days
* Provide a better explanation for the sizing of the boot partition, anddes2012-01-131-10/+14
| | | | | | | | reduce the size of the partition in the example from 128 blocks to 94 blocks so it will end on a 128-block boundary. Also remove the -b option from the next example. MFC after: 3 weeks
* Fix a style bugkevlo2012-01-131-1/+1
|
* - Fix a bug where pidfile was removed in SIGHUP when it hasn't changed inpjd2012-01-101-4/+8
| | | | | | | configuration file. - Log the fact that pidfile has changed. MFC after: 3 days
* For functions that return -1 on failure check exactly for -1 and not forpjd2012-01-1017-144/+144
| | | | | | any negative number. MFC after: 3 days
* Don't touch pidfiles when running in foreground. Before that change wepjd2012-01-101-11/+19
| | | | | | would create an empty pidfile on start and check if it changed on SIGHUP. MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-102-6/+1
| | | | | | | | | error: variable 'freq' set but not used error: variable 'mode_pars' set but not used Reviewed by: mav Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | | error: variable 'blksfree' set but not used Reviewed by: pjd Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | error: variable 'inumber' set but not used Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | | error: variable 'secsz' set but not used Reviewed by: ae Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-5/+2
| | | | | | | | error: variable 'op' set but not used error: variable 'cmd' set but not used Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-3/+0
| | | | | | | error: variable 'firstkey' set but not used Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+0
| | | | | | | error: variable 'c' set but not used Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | error: variable 'origextlen' set but not used Approved by: dim MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | error: variable 'Sflag' set but not used Approved by: dim MFC after: 3 days
* Add support for >2TB disks in GEOM RAID for Intel metadata format.jimharris2012-01-091-1/+1
| | | | | | Reviewed by: mav Approved by: scottl MFC after: 1 week
* Whitespace-only fix. Translators, please feel free to ignore.wblock2012-01-091-3/+4
| | | | | | Approved by: gjb (mentor) MFC after: 3 days X-MFC-with: r227774, r227777, r227800
* Clarity improvements.wblock2012-01-091-8/+8
| | | | | Approved by: gjb (mentor) MFC after: 3 days
* Spelling fixes for sbin/uqs2012-01-0724-37/+37
|
* Handle the internal scope address representation of the KAME IPv6ume2012-01-071-3/+6
| | | | | | | stack for the node-local multicast address. Spotted by: Rainer Bredehorn <Bredehorn__at__gmx.de> MFC after: 1 week
OpenPOWER on IntegriCloud