aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* expand_number(3) takes a uint64_t * now; intmax_t was never correctDag-Erling Smørgrav2010-08-191-1/+1
| | | | | | | | | except by accident. MFC after: 3 weeks Notes: svn path=/head/; revision=211500
* expand_number(3) takes a uint64_t * now.Dag-Erling Smørgrav2010-08-191-1/+1
| | | | | | | MFC after: 3 weeks Notes: svn path=/head/; revision=211499
* For some setups sending data in 128kB chunks makes communication very slow. NoPawel Jakub Dawidek2010-08-181-2/+1
| | | | | | | | | | idea why. 32kB on the other hand seems to work properly everywhere. Reported by: Thomas Steen Rasmussen <thomas@gibfest.dk> MFC after: 3 weeks Notes: svn path=/head/; revision=211452
* The 'size' variable is there to limit how many bytes we want to copy fromPawel Jakub Dawidek2010-08-161-2/+1
| | | | | | | | | | 'addr'. It is very likely that size of 'addr' is larger than 'size', so checking strlcpy() return value is bogus. MFC after: 3 weeks Notes: svn path=/head/; revision=211407
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whileJoel Dahl2010-08-167-12/+12
| | | | | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> Notes: svn path=/head/; revision=211397
* - Check that strtoul(3) succeeds to convert the entire string in a fewJaakko Heinonen2010-08-151-7/+14
| | | | | | | | | | | places. - In getasciilabel(), set the disk type only when a valid type is given. PR: bin/86765 MFC after: 2 weeks Notes: svn path=/head/; revision=211342
* Avoid a memory leak.Matt Jacob2010-08-131-10/+10
| | | | | | | | Submitted by: Dmitry Luhtionov via Alexander Motin MFC after: 1 week Notes: svn path=/head/; revision=211282
* - Add full support for header / data digests.Dag-Erling Smørgrav2010-08-0912-243/+142
| | | | | | | | | | | | | | | | - Increase target limit from 4 to 64; this limit will be removed entirely at a later time. - Improve recovery from lost network connections. - Fix some potential deadlocks and a serious memory leak. - Fix incorrect use of MH_ALIGN (instead of M_ALIGN), which makes no practical difference, but triggers a KASSERT with INVARIANTS. - Fix some warnings in iscontrol(8) and improve the man page somewhat. Submitted by: Daniel Braniss <danny@cs.huji.ac.il> Sponsored by: Dansk Scanning A/S, Data Robotics Inc. Notes: svn path=/head/; revision=211095
* Ethernet vlan(4) interfaces have valid Ethernet link layer addresses butJohn Baldwin2010-08-062-2/+6
| | | | | | | | | | | use a different interface type (IFT_L2VLAN vs IFT_ETHER). Treat IFT_L2VLAN interfaces like IFT_ETHER interfaces when handling link layer addresses. Reviewed by: syrinx (bsnmpd) MFC after: 1 week Notes: svn path=/head/; revision=210936
* Fix typos and spelling mistakes.Joel Dahl2010-08-067-8/+8
| | | | Notes: svn path=/head/; revision=210933
* Update the arguments to yy_config_parse() to match r210883.Doug Barton2010-08-061-1/+1
| | | | | | | | Choose the more conservative option ('yes' to exit on error) to match the equivalent code in hastd. Notes: svn path=/head/; revision=210909
* Document 'none' value for remote.Pawel Jakub Dawidek2010-08-051-1/+6
| | | | | | | | Reviewed by: dougb MFC after: 1 month Notes: svn path=/head/; revision=210892
* Implement configuration reload on SIGHUP. This includes:Pawel Jakub Dawidek2010-08-053-12/+322
| | | | | | | | | | | | | | - Load added resources. - Stop and forget removed resources. - Update modified resources in least intrusive way, ie. don't touch /dev/hast/<name> unless path to local component or provider name were modified. Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com MFC after: 1 month Notes: svn path=/head/; revision=210886
* Prepare configuration parsing code to be called multiple times:Pawel Jakub Dawidek2010-08-053-58/+111
| | | | | | | | | | | | | - Don't exit on errors if not requested. - Don't keep configuration in global variable, but allocate memory for configuration. - Call yyrestart() before yyparse() so that on error in configuration file we will start from the begining next time and not from the place we left of. MFC after: 1 month Notes: svn path=/head/; revision=210883
* Make control_set_role() more public. We will need it soon.Pawel Jakub Dawidek2010-08-052-10/+20
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=210882
* Allow to use 'none' keywork as remote address in case second cluster nodePawel Jakub Dawidek2010-08-051-2/+12
| | | | | | | | | is not setup yet. MFC after: 1 month Notes: svn path=/head/; revision=210881
* Reset signal handlers after fork().Pawel Jakub Dawidek2010-08-052-0/+6
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=210880
* - Use pjdlog_exitx() to log errors and exit instead of errx().Pawel Jakub Dawidek2010-08-052-5/+7
| | | | | | | | | - Use 'unable to' (instead of 'cannot') consistently. MFC after: 1 month Notes: svn path=/head/; revision=210879
* Assert that various buffers we are large enough.Pawel Jakub Dawidek2010-08-052-10/+13
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=210876
* Problem with assertion is that it logs on stderr. Add two macros:Pawel Jakub Dawidek2010-08-052-0/+33
| | | | | | | | | | | | PJDLOG_ASSERT() and PJDLOG_VERIFY() that will check the given condition and log the problem where appropriate. The difference between those two is that PJDLOG_VERIFY() always work and PJDLOG_ASSERT() can be turned off by defining NDEBUG. MFC after: 1 month Notes: svn path=/head/; revision=210875
* Keep $FreeBSD$ in __FBSDID() only for C files.Pawel Jakub Dawidek2010-08-051-2/+0
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=210873
* Mark two more places that we won't reach.Pawel Jakub Dawidek2010-08-051-0/+2
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=210872
* Now that TCP will be checked last we don't need any knowledge about otherPawel Jakub Dawidek2010-08-051-5/+6
| | | | | | | | | protocols. MFC after: 1 month Notes: svn path=/head/; revision=210870
* Add an argument to the proto_register() function which allows protocol toPawel Jakub Dawidek2010-08-055-10/+17
| | | | | | | | | | declare it is the default and be placed at the end of the queue so it is checked last. MFC after: 1 month Notes: svn path=/head/; revision=210869
* One question mark per question; everything else is just exaggerating.Bjoern A. Zeeb2010-08-031-1/+1
| | | | | | | | reply() will output a '?', when printing the question along with [yn], so no need to have another here. Notes: svn path=/head/; revision=210793
* Spelling fixes.Joel Dahl2010-07-315-8/+8
| | | | Notes: svn path=/head/; revision=210702
* gsched(8) was first released with FreeBSD 8.1Ulrich Spörlein2010-07-301-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=210645
* Fix typo.Pawel Jakub Dawidek2010-07-291-1/+1
| | | | | | | | | PR: docs/149033 Submitted by: Kolar <hsn@sendmail.cz> MFC after: 3 days Notes: svn path=/head/; revision=210628
* - Avoid calling the copy constructor when it is not necessary.Ulf Lilleengen2010-07-291-4/+3
| | | | Notes: svn path=/head/; revision=210610
* - Remove unused instance of string.Ulf Lilleengen2010-07-291-1/+0
| | | | Notes: svn path=/head/; revision=210609
* Small typo fix: s/ommited/omittedBenedict Reuschling2010-07-271-2/+2
| | | | | | | | | PR: docs/148977 Submitted by: Warren Block (wblock at wonkity dot com) MFC after: 4 days Notes: svn path=/head/; revision=210544
* Document that the "ngtee" action no longer accepts packet, andGleb Smirnoff2010-07-271-4/+2
| | | | | | | | | | | thus don't depend on one_pass flag anymore. This is a POLA violation, but it is quite difficult to restore the old behavior with new code. Also, the new behavior matches behavior of the older "tee" action, and this is more intuitive. Notes: svn path=/head/; revision=210539
* Export PCI IDs of ATA/SATA controllers through CAM and ata(4) layers toAlexander Motin2010-07-251-0/+10
| | | | | | | | GEOM. This information needed for proper soft-RAID's on-disk metadata reading and writing. Notes: svn path=/head/; revision=210471
* Clarify that the "number of bytes per sector"-range in theBenedict Reuschling2010-07-251-2/+2
| | | | | | | | | | | | | | -S option is meant to be "inclusive". The original issue of the PR was already fixed. PR: docs/142418 Submitted by: David Naylor (naylor dot b dot david at gmail dot com) No objection from: kib MFC after: 5 days Notes: svn path=/head/; revision=210463
* Note that foreground fsck should be run after a filesystem related panic.Kirk McKusick2010-07-231-0/+9
| | | | | | | | Suggested by: Mikhail Teterin (mi@) MFC after: 1 week Notes: svn path=/head/; revision=210415
* Document that SI unit suffixes are supported for -b and -s optionsAndrey V. Elsukov2010-07-231-7/+11
| | | | | | | | | | | | of add verb. Mention about maximum size limit for "freebsd-boot" partition. It should be smaller than 545 KB (hardcoded in pmbr). Show usage of SI unit suffixes in example. Approved by: mav (mentor) MFC after: 1 week Notes: svn path=/head/; revision=210408
* Note that foreground fsck should be run after a filesystem related panic.Kirk McKusick2010-07-221-0/+11
| | | | | | | | Suggested by: Mikhail Teterin (mi@) MFC after: 1 week Notes: svn path=/head/; revision=210382
* Actually, only the fullsync mode is implemented, not memsync mode.Pawel Jakub Dawidek2010-07-221-3/+5
| | | | | | | | | Correct manual page. MFC after: 3 days Notes: svn path=/head/; revision=210368
* better printing of headers when listing flowsLuigi Rizzo2010-07-151-8/+18
| | | | Notes: svn path=/head/; revision=210118
* Do not bzero() NULL pointer on malloc() error.Alexander Motin2010-07-141-1/+1
| | | | | | | Submitted by: Dmitry Luhtionov Notes: svn path=/head/; revision=210058
* o Restore missed flag in the synopsis.Maxim Konovalov2010-07-131-1/+1
| | | | | | | | | PR: docs/148534 Submitted by: Warren Block MFC after: 1 week Notes: svn path=/head/; revision=209972
* o Add -q flag to usage().Maxim Konovalov2010-07-131-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=209971
* o Add -q flag to the synopsis.Maxim Konovalov2010-07-131-1/+2
| | | | | | | | | PR: docs/148535 Submitted by: Warren Block MFC after: 1 week Notes: svn path=/head/; revision=209970
* When dhclient obtains a lease, it runs dhclient-script and expectsBrian Somers2010-07-071-16/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it to configure the interface. When the script is complete, dhclient monitors the routing socket and will terminate if its address is deleted or if its interface is removed or brought down. Because the routing socket is already open when dhclient-script is run, dhclient ignores address deletions for 10 seconds after the script was run. If the address that will be obtained is already configured on the interface before dhclient starts, and if dhclient-script takes more than 10 seconds (perhaps due to dhclient-*-hooks latencies), on script completion, dhclient will immediately and silently exit when it sees the RTM_DELADDR routing message resulting from the script reassigning the address to the interface. This change logs dhclient's reason for exiting and also changes the 10 second timeout to be effective from completion of dhclient-script rather than from when it was started. We now ignore RTM_DELADDR and RTM_NEWADDR messages when the message contains no interface address (which should not happen) rather than exiting. Not reviewed by: brooks (timeout) MFC after: 3 weeks Notes: svn path=/head/; revision=209756
* - Permit zero length directories as a handled inconsistency. This allowsJeff Roberson2010-07-061-46/+115
| | | | | | | | | | | | directory truncation to proceed before the link has been cleared. This is accomplished by detecting a directory with no . or .. links and clearing the named directory entry in the parent. - Add a new function ino_remref() which handles the details of removing a reference to an inode as a result of a lost directory. There were some minor errors in various subcases of this routine. Notes: svn path=/head/; revision=209716
* Fix the clear function which has been broken for a bit.Matt Jacob2010-07-041-6/+17
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=209704
* Let boot(8) refer to the uart(4) serial driver, which is the replacementBenedict Reuschling2010-07-041-3/+3
| | | | | | | | | | | | for the obsolete sio(4) driver. PR: docs/144498 Submitted by: Bruce Cran (bruce at cran dot org dot uk) Approved by: marcel MFC after: 2 weeks Notes: svn path=/head/; revision=209703
* sysctlbyname() returns -1 on error and sets errno. It doesMarcel Moolenaar2010-07-031-10/+8
| | | | | | | not return the error itself. Notes: svn path=/head/; revision=209677
* Correct explanation for idle and standby subcommands' -t argument.Alexander Motin2010-07-011-5/+7
| | | | Notes: svn path=/head/; revision=209625
* - Don't assign the return value from read(2) to a variable of typeJaakko Heinonen2010-06-301-6/+8
| | | | | | | | | | | | | int. - Use errx(3) instead of err(3) to print the error message on short reads in readlabel(). errno won't be set on short reads which can easily occur here due to the fixed size read request. PR: 144307 Reviewed by: bde Notes: svn path=/head/; revision=209614