summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Unbreak tinderbox.jpaetzel2012-04-182-27/+35
| | | | | | | Fix FreeBSD paradigms in the upstream code. PR: bin/166933 Submitted by: Garrett Cooper <yanegomi@gmail.com>
* Style.trasz2012-04-181-2/+2
|
* Some improvements to GEOM MULTIPATH:mav2012-04-182-8/+45
| | | | | | | | | | | | | | | | - Implement "configure" command to allow switching operation mode of running device on-fly without destroying and recreation. - Implement Active/Read mode as hybrid of Active/Active and Active/Passive. In this mode all paths not marked FAIL may handle reads same time, but unlike Active/Active only one path handles write requests at any point in time. It allows to closer follow original write request order if above layers need it for data consistency (not waiting for requisite write completion before sending dependent write). - Hide duplicate messages about device status change. - Remove periodic thread wake up with 10Hz rate. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* VMware environment is frequent nowadays. Add VMFS id.marck2012-04-161-0/+1
| | | | MFC after: 2 weeks
* Style.trasz2012-04-151-5/+5
|
* Remove FSIRAND and FSMAXSWAP ifdefs, removing code unconditionally.trasz2012-04-152-20/+1
| | | | | Reviewed by: kib, mckusick Sponsored by: The FreeBSD Foundation
* Update to version 2.3.1.0jpaetzel2012-04-134-4/+22
| | | | Obtained from: Daniel Braniss <danny@cs.huji.ac.il>
* Style.trasz2012-04-121-10/+7
|
* Remove block reallocation used to make room for the cylinder grouptrasz2012-04-121-854/+165
| | | | | | | | | | | | | | | | | summary structure. From now on, when there is no room for it, we simply allocate new one in a newly added cylinder group. This patch removes a conditional in updcsloc(), reindents some code there, and removes unused routines. I decided to do it this way instead of disabling reallocation when the filesystem is live and leaving it as it is otherwise, because this allows for removal of lots of complicated and hard to test code. Also, conditionally disabling it would result in a different layout in filesystems resized online and offline, which would look somewhat weird. Reviewed by: mckusick No objections from: kib Sponsored by: The FreeBSD Foundation
* s/Free Memory Pages/Free Memory/ to avoid confusion, since we'reeadler2012-04-111-1/+1
| | | | | | | | | reporting a number of bytes rather than a number of pages PR: misc/165208 Submitted by: Arnaud Lacombe <lacombar@gmail.com> Approved by: cperciva MFC after: 3 days
* It seems that libdisk(3) incorrectly sets d_secperunit value.ae2012-04-111-1/+2
| | | | | | Automatically fix it like GEOM_PART_BSD does. MFC after: 1 week
* Include <signal.h> (for SIGINFO).rmh2012-04-091-0/+1
|
* Fix a couple of style issues. Tweak grammar and markup while here.bjk2012-04-091-22/+27
| | | | Approved by: hrs (mentor)
* Remove end of line whitespace introduced in previous commit.joel2012-04-071-1/+1
|
* mdoc: fix column names, indentation, column separation within each row, andjoel2012-04-071-8/+8
| | | | | | | quotation. Also make sure we have the same amount of columns in each row as the number of columns we specify in the head arguments. Reviewed by: brueffer
* Properly clear the O_NONBLOCK flag after opening the TTY.ed2012-04-061-1/+5
| | | | | | | | | | Though we should open the TTY with O_NONBLOCK to prevent rc(8) execution from potentially stalling, we must not forget to clear the flag later on, to prevent read(2) calls from failing later on. This prevented the shell pathname prompt from working properly. Reported by: kib
* Document syncdev, syncpeer and defer keywords forglebius2012-04-031-1/+19
| | | | pfsync(4) interfaces.
* Make it possible to switch pfsync(4) deferral mechanism on/off.glebius2012-04-031-3/+25
| | | | Obtained from: OpenBSD
* If hastd is invoked with "-P pidfile" option always create pidfiletrociny2012-03-291-5/+7
| | | | | | | | | | | regardless of whether -F (foreground) option is set or not. Also, if -P option is specified, ignore pidfile setting from configuration not only on start but on reload too. This fixes the issue when for hastd run with -P option reload caused the pidfile change. Reviewed by: pjd MFC after: 1 week
* Remove disklabel handling code from growfs. This should be donetrasz2012-03-291-105/+9
| | | | | | | via geom_part(4), and it doesn't belong in growfs anyway. Reviewed by: kib, mckusick Sponsored by: The FreeBSD Foundation
* Remove trailing whitespace per mdoc lint warningeadler2012-03-2910-82/+82
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* mdoc: correct .Bd/.Bl arguments.joel2012-03-261-8/+8
| | | | Reviewed by: brueffer
* mdoc: terminate quoted strings.joel2012-03-262-67/+67
| | | | Reviewed by: brueffer
* - Permit number of ipfw tables to be changed in runtime.melifaro2012-03-252-10/+4
| | | | | | | | | | | | | | | net.inet.ip.fw.tables_max is now read-write. - Bump IPFW_TABLES_MAX to 65535 Default number of tables is still 128 - Remove IPFW_TABLES_MAX from ipfw(8) code. Sponsored by Yandex LLC Approved by: kib(mentor) MFC after: 2 weeks
* Remove superfluous paragraph macro.joel2012-03-259-21/+0
|
* Document the show alias and add an EXAMPLES section.joel2012-03-241-1/+36
|
* 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
OpenPOWER on IntegriCloud