aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace cleanup:Glen Barber2011-12-231-3/+3
| | | | | | | | | | | | ar/ar.1: - Remove trailing whitespace Reported by: igor MFC after: 1 week X-MFC-With: r228823 Notes: svn path=/head/; revision=228824
* Formatting fixes:Glen Barber2011-12-233-36/+36
| | | | | | | | | | | | | | | | | | | hexdump/od.1: - Enclose tabbed content in quotes [1] ar/ar.1: - Enclose tabbed content in quotes [1] rctl/rctl.8: - Enclose tabbed content in quotes [1] - Start a sentence on a newline [2] Reported by: manlint [1], igor [2] MFC after: 1 week X-MFC-after: 9.0-RELEASE Notes: svn path=/head/; revision=228823
* When building the kernel with clang, it produces several warnings whichDimitry Andric2011-12-231-0/+4
| | | | | | | | | | | | | | | | might be useful in some cases, but which are not severe enough to error out the whole kernel build. Display them anyway, so there is at least some incentive to fix them eventually. Start with -Wtautological-compare warnings. These usually occur when people check if unsigned quantities are negative, or similar cases. To clean these up would be painful, and might give problems if the base type which is compared against changes to signed later on. MFC after: 1 week Notes: svn path=/head/; revision=228822
* Merge to da driver quirks hinting 4K physical sector sizes for SATA disksAlexander Motin2011-12-231-6/+238
| | | | | | | | | | connected via SAS or USB. Unluckily I've found that SAS (mps) and USB-SATA I have translate models in different ways, requiring twice more quirks. Unluckily for Hitachi, their model names are trimmed on SAS, making impossible to identify 4K sector drives that way. Notes: svn path=/head/; revision=228820
* Update list of 4K physical sector hard drives.Alexander Motin2011-12-221-0/+30
| | | | Notes: svn path=/head/; revision=228819
* Disable various warnings for the ath module in a more fine-grained way:Dimitry Andric2011-12-221-1/+3
| | | | | | | | | | only add the option for the specific .c files that need them, like via sys/conf/files. MFC after: 1 week Notes: svn path=/head/; revision=228818
* Use the correct types when calling the decompression mask function.Adrian Chadd2011-12-222-2/+2
| | | | | | | | | | | | | | | There's currently no public code which uses this feature and the current reference driver doesn't enable this feature at all. It's possible it was used by a previous version of the driver and that indeed it should return HAL_STATUS; but at this point I'm happy to require that they complain and submit a patch. This was found by LLVM compile-time type checking. Submitted by: dim Notes: svn path=/head/; revision=228817
* Merge from OpenBSD:Gleb Smirnoff2011-12-221-3/+6
| | | | | | | | | | | | | | | revision 1.122 date: 2009/05/13 01:01:34; author: dlg; state: Exp; lines: +6 -4 only keep track of the number of updates on tcp connections. state sync on all the other protocols is simply pushing the timeouts along which has a resolution of 1 second, so it isnt going to be hurt by pfsync taking up to a second to send it over. keep track of updates on tcp still though, their windows need constant attention. Notes: svn path=/head/; revision=228816
* Merge from OpenBSD:Gleb Smirnoff2011-12-221-6/+7
| | | | | | | | | | | | | | | | revision 1.120 date: 2009/04/04 13:09:29; author: dlg; state: Exp; lines: +5 -5 use time_uptime instead of time_second internally. time_uptime isnt affected by adjusting the clock. revision 1.175 date: 2011/11/25 12:52:10; author: dlg; state: Exp; lines: +3 -3 use time_uptime to set state creation values as time_second can be skewed at runtime by things like date(1) and ntpd. time_uptime is monotonic and therefore more useful to compare against. Notes: svn path=/head/; revision=228815
* Merge couple more fixes from OpenBSD to bulk processing:Gleb Smirnoff2011-12-221-6/+14
| | | | | | | | | | | | | | | | | | | revision 1.118 date: 2009/03/23 06:19:59; author: dlg; state: Exp; lines: +8 -6 wait an appropriate amount of time before giving up on a bulk update, rather than giving up after a hardcoded 5 seconds (which is generally much too short an interval for a bulk update). pointed out by david@, eyeballed by mcbride@ revision 1.171 date: 2011/10/31 22:02:52; author: mikeb; state: Exp; lines: +2 -1 Don't forget to cancel bulk update failure timeout when destroying an interface. Problem report and fix from Erik Lax, thanks! Start a brief note of revisions merged from OpenBSD. Notes: svn path=/head/; revision=228814
* We really mean MTU of the real interface here, not of our pseudo.Gleb Smirnoff2011-12-221-1/+1
| | | | Notes: svn path=/head/; revision=228813
* Use a better log message for master down event.Gleb Smirnoff2011-12-221-1/+1
| | | | Notes: svn path=/head/; revision=228812
* In FreeBSD we always have bpf(4) API, either real or stub. No needGleb Smirnoff2011-12-222-10/+2
| | | | | | | in detecting presense of 'device bpf'. Notes: svn path=/head/; revision=228811
* Merge upstream r509: don't log an error in the common case (ENOENT).Dag-Erling Smørgrav2011-12-221-3/+5
|\ | | | | | | Notes: svn path=/head/; revision=228810
| * Merge upstream r509: don't log an error in the common case (ENOENT).Dag-Erling Smørgrav2011-12-221-3/+5
| | | | | | | | Notes: svn path=/vendor/openpam/dist/; revision=228809
* | Make cd driver to handle Audio CDs, reporting their 2352 bytes sectors toAlexander Motin2011-12-222-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | GEOM and using READ CD command for reading data, same as acd driver does. Audio CDs identified by checking respective bit of the control field of the first track in TOC. This fixes bunch of error messages during boot (GEOM taste) with Audio CD inserted and allows to grab Audio CD image using just dd. MFC after: 1 month Notes: svn path=/head/; revision=228808
* | Disable -Wconstant-conversion warnings for the aic7xxx module in a moreDimitry Andric2011-12-222-2/+6
| | | | | | | | | | | | | | | | | | | | fine-grained way: only add the option for the specific .c files that need them, like via sys/conf/files. MFC after: 1 week Notes: svn path=/head/; revision=228805
* | Use TASK_INITIALIZER() for dev_dtr_task rather than a dedicated SYSINIT().John Baldwin2011-12-221-10/+2
| | | | | | | | Notes: svn path=/head/; revision=228804
* | put back netmap support, deleted by mistake in a previous commitLuigi Rizzo2011-12-221-0/+96
| | | | | | | | Notes: svn path=/head/; revision=228803
* | Correctly spell my email address.Fabien Thomas2011-12-222-2/+2
| | | | | | | | Notes: svn path=/head/; revision=228802
* | Remove -mfancy-math from LIB32CPUFLAGS for amd64. It has been defaultDimitry Andric2011-12-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | for our gcc since more than three years (see r181534, which is also in stable/9 and stable/8). This flag used to be for the benefit of the old in-kernel math emulator, which was removed more than eight years ago. Pointed out by: arundel MFC after: 1 week Notes: svn path=/head/; revision=228801
* | Revert r228786. We'll need to work around the warnings in another way.Dimitry Andric2011-12-222-2/+2
| | | | | | | | | | | | | | | | Requested by: adrian MFC after: 1 week Notes: svn path=/head/; revision=228800
* | Revert r228785. We'll need to work around the warnings in another way.Dimitry Andric2011-12-222-6/+6
| | | | | | | | | | | | | | | | Requested by: adrian MFC after: 1 week Notes: svn path=/head/; revision=228799
* | Add placeholder code for prepending pathnames to tftp.Ed Schouten2011-12-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At work we have a single tftp server that provides installation data for a variety of operating systems. I'd rather place our FreeBSD-related files in a subdirectory, instead of the root. It would be nice if this setting could be run-time configurable, but at least in our specific case, this is not possible, as pxeboot is chainloaded through pxelinux. Sponsored by: Kumina bv Notes: svn path=/head/; revision=228798
* | Use contrib sources for building libarchive, tar and cpio.Martin Matuska2011-12-22340-96194/+78
| | | | | | | | | | | | | | | | | | Make "make test" fully operational. MFC after: 2 weeks Notes: svn path=/head/; revision=228797
* | Discarding local array based on return valuesKevin Lo2011-12-221-14/+14
| | | | | | | | Notes: svn path=/head/; revision=228796
* | - document the -l option to usermodEitan Adler2011-12-221-1/+12
| | | | | | | | | | | | | | | | | | | | PR: docs/161588 Submitted by: "Luchesar V. ILIEV" <luchesar.iliev@gmail.com> Approved by: gjb MFC after: 1 week Notes: svn path=/head/; revision=228795
* | Reduce NFPI by half to keep the default number of inodes the same withKirk McKusick2011-12-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | the now default 32K/4K filesystem the same as the number of inodes in the previously default 16K/2K filesystem. PR: bin/16265 Reported by: Olivier Cochard-Labbe <olivier@cochard.me> MFC: 4 weeks (9 is the only affected branch) Notes: svn path=/head/; revision=228794
* | Amend r228783 by also disabling -Wshift-count-negativeDimitry Andric2011-12-211-0/+1
| | | | | | | | | | | | | | | | | | -Wshift-count-overflow warnings for the ath module. MFC after: 1 week Notes: svn path=/head/; revision=228793
* | - Fix style(9) bug I introduced in the last commitEitan Adler2011-12-211-1/+1
| | | | | | | | | | | | | | Approved by: jhb Notes: svn path=/head/; revision=228791
* | - Remove extraneous null ptr deref checksEitan Adler2011-12-213-5/+8
| | | | | | | | | | | | | | | | | | | | | | - Fix memory leak Submitted by: Slono Slono <slonoman2011@yandex.ru> Approved by: jhb MFC after: 1 week Notes: svn path=/head/; revision=228790
* | Amend r228779 by also disabling -Wconstant-conversion warnings for theDimitry Andric2011-12-212-0/+2
| | | | | | | | | | | | | | | | | | aic7xxx module. MFC after: 1 week Notes: svn path=/head/; revision=228789
* | Restore the sysctl changes from 223676 and 227309 lost in the previousJohn Baldwin2011-12-212-6/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | import: - Add read-only sysctls for all of the tunables supported by the igb and em drivers. - Make the per-instance 'enable_aim' sysctl truly per-instance by having it change a per-instance variable (which is used to control AIM) rather than having all of the per-instance sysctls operate on a single global variable. While here, restore the previously existing hw.igb.rx_processing_limit tunable as it is very useful to be able to set a default tunable that applies to all adapters in the system. Notes: svn path=/head/; revision=228788
* | - Remove extra spaceEitan Adler2011-12-211-1/+1
| | | | | | | | | | | | | | | | Submitted by: Davide Italiano <davide.italiano@gmail.com> Approved by: brucec Notes: svn path=/head/; revision=228787
* | Fix enum conversion problems in sys/dev/ath/ath_hal/ar5212/ar5212_misc.cDimitry Andric2011-12-212-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and sys/dev/ath/ath_hal/ar5416/ar5416_misc.c: sys/dev/ath/ath_hal/ar5212/ar5212_misc.c:577:24: warning: implicit conversion from enumeration type 'HAL_STATUS' to different enumeration type 'HAL_BOOL' [-Wconversion] return HAL_EINVAL; ~~~~~~ ^~~~~~~~~~ and: sys/dev/ath/ath_hal/ar5416/ar5416_misc.c:164:9: warning: implicit conversion from enumeration type 'HAL_STATUS' to different enumeration type 'HAL_BOOL' [-Wconversion] return HAL_OK; ~~~~~~ ^~~~~~ In both cases, enums HAL_BOOL and HAL_STATUS are mixed up. MFC after: 1 week Notes: svn path=/head/; revision=228786
* | Fix shift overflow problem in sys/dev/ath/ath_hal/ar5210/ar5210_power.cDimitry Andric2011-12-212-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and sys/dev/ath/ath_hal/ar5211/ar5211_power.c: sys/dev/ath/ath_hal/ar5210/ar5210_power.c:36:3: warning: signed shift result (0x200000000) requires 35 bits to represent, but 'int' only has 32 bits [-Wshift-overflow] OS_REG_RMW_FIELD(ah, AR_SCR, AR_SCR_SLE, AR_SCR_SLE_ALLOW); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sys/dev/ath/ath_hal/ah_internal.h:472:42: note: expanded from: (OS_REG_READ(_a, _r) &~ (_f)) | (((_v) << _f##_S) & (_f))) ^ sys/dev/ath/ah_osdep.h:127:49: note: expanded from: (bus_space_handle_t)(_ah)->ah_sh, (_reg), (_val)) ^~~~ The AR_SCR_SLE_{WAKE,SLP,NORM} values are pre-shifted in ar5210reg.h and ar5211reg.h, while they should be unshifted, like in ar5212reg.h. Then, when the OS_REG_RMW_FIELD() macro shifts them again, the values will overflow, becoming effectively zero. MFC after: 1 week Notes: svn path=/head/; revision=228785
* | Follow style(9) more closely in the example.Jaakko Heinonen2011-12-211-3/+3
| | | | | | | | Notes: svn path=/head/; revision=228784
* | When building with clang, disable -Wshift-count-negative andDimitry Andric2011-12-212-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Wshift-count-overflow for sys/dev/ath/ath_hal/ah_regdomain.c, as it gets multiple instances of the following warnings: In file included from sys/dev/ath/ath_hal/ah_regdomain.c:99: sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:69:15: warning: shift count is negative [-Wshift-count-negative] .chan11a = BM4(F1_4950_4980, ^~~~~~~~~~~~~~~~~ sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:41:4: note: expanded from: W1(_fa) | W1(_fb) | W1(_fc) | W1(_fd) } ^ sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:34:45: note: expanded from: (((_a) > 63 && (_a) < 128 ? (((uint64_t) 1)<<((_a)-64)) : (uint64_t) 0)) ^ ~~~~~~~~~ and: In file included from sys/dev/ath/ath_hal/ah_regdomain.c:99: sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:629:15: error: shift count >= width of type [-Werror,-Wshift-count-overflow] .chan11a = BM4(W2_5260_5320, ^~~~~~~~~~~~~~~~~ sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:40:34: note: expanded from: { W0(_fa) | W0(_fb) | W0(_fc) | W0(_fd), \ ^ sys/dev/ath/ath_hal/ah_regdomain/ah_rd_domains.h:32:44: note: expanded from: (((_a) >= 0 && (_a) < 64 ? (((uint64_t) 1)<<(_a)) : (uint64_t) 0)) ^ ~~~~ Both warnings are false positives, caused by LLVM PR 10030. For global initializations, clang fails to detect that the branch of the ternary operator causing the warning is dead. MFC after: 1 week Notes: svn path=/head/; revision=228783
* | Make the RTC checking for QEMU even more aggressive.Ed Schouten2011-12-211-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | At work, where we use use KVM+QEMU, we notice that pxeboot is pratically impossible because of network timeouts. This is due to the fact that the RTC code makes aggressive jumps. Two RTC reads does not seem to be sufficient. Change the code to check for 8 identical RTC values. Sponsored by: Kumina bv Notes: svn path=/head/; revision=228782
* | When building with clang, disable -Warray-bounds for sys/dev/asr/asr.c,Dimitry Andric2011-12-212-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as it gets the following warning: sys/dev/asr/asr.c:1836:29: warning: array index of '58' indexes past the end of an array (that contains 1 element) [-Warray-bounds] while ((len > 0) && (sg < &((PPRIVATE_SCSI_SCB_EXECUTE_MESSAGE) ^ sys/dev/asr/i2omsg.h:934:8: note: array 'Simple' declared here I2O_SGE_SIMPLE_ELEMENT Simple[1]; ^ This is a false positive, since I2O_SG_ELEMENT::Simple is not declared as a C99 flexible array member, but in the old (but more portable) way. At run-time, the proper number of array elements will hopefully have been allocated. MFC after: 1 week Notes: svn path=/head/; revision=228781
* | Update libstdc++ with small updates from the latest rev. (135556)Pedro F. Giffuni2011-12-2115-49/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the gcc 4.2 branch. The libraries in the gcc-4_2-branch remained under the LGPLv2. The changes can be reproduced with the following command: svn diff svn://gcc.gnu.org/svn/gcc/branches/gcc-4_2-branch/libstdc++-v3 -r 127959:135556 Reviewed by: mm Approved by: jhb (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=228780
* | Start selectively disabling a few kernel build warnings for clang, sinceDimitry Andric2011-12-212-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | there are some places in the kernel where fixing them is too disruptive, or where there is a false positive. In this case, disable -Wconstant-conversion for two aic7xxx-related files, as they get the following warning on i386 (and possibly on other 32-bit arches): sys/dev/aic7xxx/ahc_pci.c:112:10: warning: implicit conversion from 'long long' to 'bus_addr_t' (aka 'unsigned int') changes value from 549755813887 to 4294967295 [-Wconstant-conversion] ? 0x7FFFFFFFFFLL ~~^~~~~~~~~~~~~~ This is a false positive, since the code only passes the 0x7FFFFFFFFFLL argument, if sizeof(bus_addr_t) is larger than 4 (e.g. on 64 bit arches, or when PAE is enabled on i386). The code could be refactored to do compile-time checks, but that is more disruptive. MFC after: 1 week Notes: svn path=/head/; revision=228779
* | Merge FreeBSD changes from usr.bin/cpio to contrib/libarchive/cpio:Martin Matuska2011-12-214-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r204111 (uqs): Fix common misspelling of hierarchy r211054 (kientzle); Fix -R when used with -p. Previously, the uname and gname weren't overwritten, so the disk restore would use those to lookup the original uid/gid again. Clearing the uname and gname prevents this. r212263 (gjb): Fix typo in bsdcpio manual: s/libarchive_formats/libarchive-formats MFC after: 2 weeks Notes: svn path=/head/; revision=228777
* | Merge FreeBSD changes from usr.bin/tar to contrib/libarchive/tar:Martin Matuska2011-12-216-112/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r204111 (uqs): Fix common misspelling of hierarchy r207786 (kientzle): Various manpage updates, including many long-option synonyms that were previously undocumented. r208028 (uqs): mdoc: move remaining sections into consistent order This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections. r209152 (kientzle): If the compressed data is larger than the uncompressed, report the compression ratio as 0% instead of displaying nonsense triggered by numeric overflow. This is common when dealing with uncompressed files when the I/O blocking causes there to be small transient differences in the accounting. r210720 (joel): Fix typos. r223541 (kientzle): If there is a read error reading Y/N confirmation from the keyboard, exit immediately with an error. If there is an error opening or reading a file to put into the archive, set the return value for a deferred error exit. r223573 (kientzle): The --newer-than test should descend into old directories to look for new files. r226636 (kientzle): Typo from previous commit. Urgh. r224153 (mm, partial): Update bsdtar.1 manpage MFC after: 2 weeks Notes: svn path=/head/; revision=228776
* | Merge FreeBSD changes from usr.bin/tar to contrib/libarchive/libarchive_fe:Martin Matuska2011-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | r213469: Recognize both ! and ^ as markers for negated character classes. MFC after: 2 weeks Notes: svn path=/head/; revision=228775
* | Add $FreeBSD$ to libarchive_fe headers where missing.Martin Matuska2011-12-212-0/+4
| | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=228774
* | Merge FreeBSD changes from lib/libarchive to contrib/libarchive:Martin Matuska2011-12-2124-120/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r204111 (uqs): Fix common misspelling of hierarchy r208027 (uqs): mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. r208291 (uqs): mdoc: consistently spell our email addresses <foo@FreeBSD.org> r209031 (uqs): mdoc nitpicking: the title argument shall be uppercase r214822 (kientzle): Clarify the naming: Methods that free an object should be called "free". Retain the old "finish" names to preserve source compatibility for now. r214905 (kientzle): If the Zip reader doesn't see a PK signature block because there's inter-entry garbage, just scan forward to find the next one. This allows us to handle a lot of Zip archives that have been modified in-place. Thanks to: Gleb Kurtsou for sending me a sample archive r216258 (kientzle): Don't write data into an empty "file." In particular, this check avoids a warning when extracting directory entries from certain GNU tar archives that store directory contents. r225525 (kientzle): Fix cpio on ARM. MFC after: 2 weeks Notes: svn path=/head/; revision=228773
* | Add missing integer casts to comparsions in libarchive read.Martin Matuska2011-12-212-3/+4
| | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=228772
* | Partial merge of r224691 from lib/libarchive:Martin Matuska2011-12-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Add compatibility for ISO images created with unfixed makefs that violated ECMA-119 (ISO9660): allow reserved4 to be 0x20 in PVD. This allows tar to read FreeBSD distribution ISO images created with makefs prior to NetBSD bin/45217 bugfix (up to 9.0-BETA1). MFC after: 2 weeks Notes: svn path=/head/; revision=228771
* | Remove libarchive/archive_entry_copy_bhfi.c and libarchive/mtree.5Martin Matuska2011-12-213-343/+2
| | | | | | | | | | | | | | | | | | Add these files to FREEBSD-Xlist MFC after: 2 weeks Notes: svn path=/head/; revision=228770