summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo.trociny2012-03-231-7/+7
| | | | MFC after: 3 days
* Also fix the parameter usage in set80211meshpeering().bschmidt2012-03-231-1/+1
| | | | | | Submitted by: Monthadar Al Jaberi MFC after: 1 week X-MFC after: r233328
* Fix an incorrect parameter usage here.adrian2012-03-221-1/+1
| | | | Submitted by: monthadar@gmail.com
* Document GEOM_PART_LDM scheme and partition types.ae2012-03-191-2/+38
| | | | MFC after: 1 month
* Add option to ignore error codes if the module specified is already loaded.hselasky2012-03-182-6/+20
| | | | MFC after: 1 week
* Make init(8) slightly more robust when /dev/console is missing.ed2012-03-143-17/+34
| | | | | | | | | | | | | | | | | | | | | | If the environment doesn't offer a working /dev/console, the existing version of init(8) will simply refuse running rc(8) scripts. This means you'll only have a system running init(8) and nothing else. Change the code to do the following: - Open /dev/console like we used to do, but make it more robust to use O_NONBLOCK to prevent blocking on a carrier. - If this fails, use /dev/null as stdin and /var/log/init.log as stdout and stderr. - If even this fails, use /dev/null as stdin, stdout and stderr. So why us this useful? Well, if you remove the `getpid() == 1' check in main(), you can now use init(8) inside jails to properly execute rc(8). It still requires some polishing, as existing tools assume init(8) has PID 1. Also it is now possible to use use init(8) on `headless' devices that don't even have a serial boot console.
* Add missing "static".trasz2012-03-141-1/+1
|
* - Add ipfw eXtended tables permitting radix to be used for any kind of keys.melifaro2012-03-122-80/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add support for IPv6 and interface extended tables - Make number of tables to be loader tunable in range 0..65534. - Use IP_FW3 opcode for all new extended table cmds No ABI changes are introduced. Old userland will see valid tables for IPv4 tables and no entries otherwise. Flush works for any table. IP_FW3 socket option is used to encapsulate all new opcodes: /* IP_FW3 header/opcodes */ typedef struct _ip_fw3_opheader { uint16_t opcode; /* Operation opcode */ uint16_t reserved[3]; /* Align to 64-bit boundary */ } ip_fw3_opheader; New opcodes added: IP_FW_TABLE_XADD, IP_FW_TABLE_XDEL, IP_FW_TABLE_XGETSIZE, IP_FW_TABLE_XLIST ipfw(8) table argument parsing behavior is changed: 'ipfw table 999 add host' now assumes 'host' to be interface name instead of hostname. New tunable: net.inet.ip.fw.tables_max controls number of table supported by ipfw in given VNET instance. 128 is still the default value. New syntax: ipfw add skipto tablearg ip from any to any via table(42) in ipfw add skipto tablearg ip from any to any via table(4242) out This is a bit hackish, special interface name '\1' is used to signal interface table number is passed in p.glob field. Sponsored by Yandex LLC Reviewed by: ae Approved by: ae (mentor) MFC after: 4 weeks
* After r232548, clang complains about the apparent '=-' operator (adim2012-03-121-1/+1
| | | | | | | | | | left-over from ancient C times, and a frequent typo) in growfs.c: sbin/growfs/growfs.c:1550:8: error: use of unary operator that may be intended as compound assignment (-=) [-Werror] blkno =- 1; ^~ Use 'blkno = -1' instead, to silence the error.
* Fix whitespace.ed2012-03-111-8/+8
| | | | MFC after: 1 week
* Partially undo r228693, by removing NO_WFORMAT.clang in fsdb's Makefile,dim2012-03-092-3/+1
| | | | | | | | | | | | and fixing the format string in sbin/fsdb/fsdbutil.c instead. Note the remark "Work around a problem with format string warnings and ntohs macros" was actually incorrect. The DIP(dp, di_nlink) macro invocation actually returned an int, due to its ternary expression, even though the di_nlink members of struct ufs1_dinode and struct ufs2_dinode are both defined as int16_t. MFC after: 2 weeks
* Fix a variety of grammar and style nitseadler2012-03-091-15/+13
| | | | | | | PR: docs/165841 Submitted by: Robert Simmons <rsimmons0@gmail.com> Approved by: brd MFC after: 1 week
* Fix typo and bump the document date which I also forgot.thompsa2012-03-071-2/+2
| | | | Spotted by: Andrey Zonov
* Add the ability to set which packet layers are used for the load balance hashthompsa2012-03-062-0/+68
| | | | calculation.
* Make growfs(8) mostly style compliant. No functional changes,trasz2012-03-052-616/+457
| | | | verified with MD5.
* Fix a variety of grammar issues and style nits.eadler2012-03-041-74/+75
| | | | | | | | PR: docs/165668 Submitted by: Robert Simmons <rsimmons0@gmail.com> Reviewed by: kaduk@mit.edu Approved by: cperciva MFC after: 1 week
* remove some write-only variables.luigi2012-03-011-7/+2
| | | | | There is another block of code that is now useless as the computation is done in the kernel.
* Update bridge(4) default values.brueffer2012-02-291-3/+3
| | | | | | PR: 164564 Submitted by: "Rudy (bulk)" <crapsh@monkeybrains.net> MFC after: 2 weeks
* Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, todim2012-02-281-3/+1
| | | | | | | | | | | | | | | | | | | | | get rid of testing explicitly for clang (using ${CC:T:Mclang}) in individual Makefiles. Instead, use the following extra macros, for use with clang: - NO_WERROR.clang (disables -Werror) - NO_WCAST_ALIGN.clang (disables -Wcast-align) - NO_WFORMAT.clang (disables -Wformat and friends) - CLANG_NO_IAS (disables integrated assembler) - CLANG_OPT_SMALL (adds flags for extra small size optimizations) As a side effect, this enables setting CC/CXX/CPP in src.conf instead of make.conf! For clang, use the following: CC=clang CXX=clang++ CPP=clang-cpp MFC after: 2 weeks
* Correct capitalization of "Hz" in user-visible text (manpages, printf(),gavin2012-02-282-3/+3
| | | | | | etc). MFC after: 3 days
* Whitespace cleanup:gjb2012-02-251-4/+4
| | | | | | | | | o Wrap sentences on to new lines o Cleanup trailing whitespace Found with: textproc/igor MFC after: 1 week X-MFC-With: r232157
* Fix various typos in manual pages.gjb2012-02-251-2/+2
| | | | | | Submitted by: amdmi3 PR: 165431 MFC after: 1 week
* Handle NULL return from crypt(3). Mostly from DragonFlykevlo2012-02-221-1/+2
|
* Remove reference to gsched_as module, which doesn'teadler2012-02-221-1/+1
| | | | | | | | | actually exist. PR: docs/163043 Submitted by: olgeni Approved by: brd MFC after: 3 days
* 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
|
OpenPOWER on IntegriCloud