summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* kdump: Decode AT_FDCWD in first argument of bindat() and connectat().jilles2013-08-131-0/+2
|
* Teach libstdc++ about logl(3).pfg2013-08-131-2/+2
| | | | | | | The logl(3) family of functions were implemented in r251292. Define them in libstdc++'s configuration so they can be used. Reviewed by: dim
* - Remove the defaults for TARGET/TARGET_ARCH.gjb2013-08-131-8/+5
| | | | | | | | | - Note that WORLD_FLAGS and KERNEL_FLAGS set the number of make(1) jobs only on SMP-capable systems. MFC after: 3 days X-MFC-With: r254224 X-MFC-To: stable/9, releng/9.2
* - Only set ARCH_FLAGS (TARGET/TARGET_ARCH) if specified, otherwisegjb2013-08-132-26/+19
| | | | | | | | | | | | allow the toolchain to detect the correct values. - Remove {SRC,DOC,PORT}REVISION variables, and use 'branch@rNNNNNN' as the {SRC,DOC,PORT}BRANCH variables. - Only set default KERNEL_FLAGS and WORLD_FLAGS make(1) jobs if the number of CPUs is greater than 1. Submitted by: hrs
* Virtualize carp(4) variables to have per vnet control.trociny2013-08-131-53/+61
| | | | Reviewed by: ae, glebius
* kdump: Improve decoding of various *at calls:jilles2013-08-132-0/+47
| | | | | * Write AT_FDCWD where appropriate. * Decode the remaining arguments of openat() etc like open() etc.
* db: Use O_CLOEXEC instead of separate fcntl() call.jilles2013-08-132-8/+3
|
* init: Set kernel login class and CPU mask on new processes.jilles2013-08-131-1/+2
| | | | | | | In particular, this makes the kernel login class on processes started from /etc/rc "daemon" instead of "default". Reviewed by: trasz
* Some small cleanups to the fixes in r180340:jhb2013-08-131-3/+3
| | | | | | | | | | | - Set NOTE_TRACKERR before running filt_proc(). If the knote did not have NOTE_FORK set in fflags when registered, then the TRACKERR event could miss being posted. - Don't pass the pid in to filt_proc() for NOTE_FORK events. The special handling for pids is done knote_fork() directly and no longer in filt_proc(). MFC after: 2 weeks
* ext2fs: update format specifiers for ext4 type.pfg2013-08-131-1/+1
| | | | | Reported by: Sam Fourman Jr. MFC after: 3 weeks
* Expose _citrus_bcs_trunc_rws_len for libintl's use.peter2013-08-131-0/+1
| | | | Submitted by: Jan Beich <jbeich@tormail.org>
* Define ext2fs local types and use them.pfg2013-08-138-44/+48
| | | | | | | | | | | | | | | | | | | | | | Add definitions for e2fs_daddr_t, e4fs_daddr_t in addition to the already existing e2fs_lbn_t and adjust them for ext4. Other than making the code more readable these changes should fix problems related to big filesystems. Setting the proper types can be tricky so the process was helped by looking at UFS. In our implementation, logical block numbers can be negative and the code depends on it. In ext2, block numbers are unsigned so it is convenient to keep e2fs_daddr_t unsigned and use the complete 32 bits. In the case of e4fs_daddr_t, while the value should be unsigned, for ext4 we only need to support 48 bits so preserving an extra bit from the sign is not an issue. While here also drop the ext2_setblock() prototype that was never used. Discussed with: mckusick, bde MFC after: 3 weeks
* - Minor style(9) fix.glebius2013-08-131-2/+4
| | | | - Bring a comment up to date.
* Add imx6 compatibility and make the driver work for any clock frequency.ian2013-08-132-79/+132
| | | | | | | There are still a couple references to imx51 ccm driver functions that will need to be changed after an imx6 ccm driver is written. Reviewed by: ray
* ieee80211_rate2plcp() and ieee80211_rate2phytype() are both pre-11nadrian2013-08-131-2/+5
| | | | | | | | | | | | | | | | | | routines and thus assert if one passes in a rate code with the high bit set. Since the high bit can indicate either IEEE80211_RATE_BASIC or IEEE80211_RATE_MCS, it's up to the caller to determine whether the rate is 11n or not, and either mask out the BASIC bit, or call a different function. (Yes, this does mean that net80211 should grow 11n-aware rate2phytype() and rate2plcp() functions..) This may need to happen for the other drivers - it's currently only done (now) for iwn(4) and bwi(4). PR: kern/181100
* Apply upstream revision 1.151 (fix relative symlinks)des2013-08-131-1/+2
| | | | MFC after: 3 days
* Turn off warns for this do-nothing file. clang noticed.peter2013-08-131-0/+2
|
* Return error when opening read-only volumes (like RAID4/5/...) for writing.mav2013-08-133-1/+8
| | | | | | | Previously opens succeeded, but actual write operations returned errors. Requested by: peter MFC after: 2 weeks
* Add a note that if you were WITH_ICONV before, you should turn onpeter2013-08-131-0/+2
| | | | WITH_LIBICONV_COMPAT.
* The iconv in libc did two things - implement the standard APIs, the GNUpeter2013-08-1312-42/+122
| | | | | | | | | | | | | | | | | | | | | | | | extensions and also tried to be link time compatible with ports libiconv. This splits that functionality and enables the parts that shouldn't interfere with the port by default. WITH_ICONV (now on by default) - adds iconv.h, iconv_open(3) etc. WITH_LIBICONV_COMPAT (off by default) adds the libiconv_open etc API, linker symbols and even a stub libiconv.so.3 that are good enough to be able to 'pkg delete -f libiconv' on a running system and reasonably expect it to work. I have tortured many machines over the last few days to try and reduce the possibilities of foot-shooting as much as I can. I've successfully recompiled to enable and disable the libiconv_compat modes, ports that use libiconv alongside system iconv etc. If you don't enable the WITH_LIBICONV_COMPAT switch, they don't share symbol space. This is an extension of behavior on other system. iconv(3) is a standard libc interface and libiconv port expects to be able to run alongside it on systems that have it. Bumped osreldate.
* Oops, wrong constant at r254269.mav2013-08-131-1/+1
|
* Fix reasonable but safe Clang warnings.mav2013-08-131-2/+6
|
* FreeBSD's DTrace implementation has a few problems with respect to handlingmarkj2013-08-139-487/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | probes declared in a kernel module when that module is unloaded. In particular, * Unloading a module with active SDT probes will cause a panic. [1] * A module's (FBT/SDT) probes aren't destroyed when the module is unloaded; trying to use them after the fact will generally cause a panic. This change fixes both problems by porting the DTrace module load/unload handlers from illumos and registering them with the corresponding EVENTHANDLER(9) handlers. This allows the DTrace framework to destroy all probes defined in a module when that module is unloaded, and to prevent a module unload from proceeding if some of its probes are active. The latter problem has already been fixed for FBT probes by checking lf->nenabled in kern_kldunload(), but moving the check into the DTrace framework generalizes it to all kernel providers and also fixes a race in the current implementation (since a probe may be activated between the check and the call to linker_file_unload()). Additionally, the SDT implementation has been reworked to define SDT providers/probes/argtypes in linker sets rather than using SYSINIT/SYSUNINIT to create and destroy SDT probes when a module is loaded or unloaded. This simplifies things quite a bit since it means that pretty much all of the SDT code can live in sdt.ko, and since it becomes easier to integrate SDT with the DTrace framework. Furthermore, this allows FreeBSD to be quite flexible in that SDT providers spanning multiple modules can be created on the fly when a module is loaded; at the moment it looks like illumos' SDT implementation requires all SDT probes to be statically defined in a single kernel table. PR: 166927, 166926, 166928 Reported by: davide [1] Reviewed by: avg, trociny (earlier version) MFC after: 1 month
* Remove some unused fields from struct linker_file. They were added inmarkj2013-08-132-6/+0
| | | | | | | r172862 for use by the DTrace SDT framework but don't seem to have ever been used. MFC after: 2 weeks
* Add event handlers for module load and unload events. The load handlers aremarkj2013-08-133-3/+22
| | | | | | | | | called after the module has been loaded, and the unload handlers are called before the module is unloaded. Moreover, the module unload handlers may return an error to prevent the unload from proceeding. Reviewed by: avg MFC after: 2 weeks
* Make sure bootonly.iso for -BETAs and -RCs use the releases/gjb2013-08-131-1/+1
| | | | | | | | directory on the FTP mirrors to fetch distributions, since these are always pushed to releases/ during the release cycle. MFC after: 3 days X-MFC-To: stable/9, releng/9.2
* Alter the mq_start routine to do a TRYLOCK and call to the locked routinejfv2013-08-131-1/+7
| | | | | | rather than just queueing. The former code was an attempt at getting UDP performance up, but there have been customer reports of problems with it, so the ixgbe approach seems the best solution for now.
* Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCIscottl2013-08-1263-522/+110
| | | | | | | | | | | | | | | | | command register. The lazy BAR allocation code in FreeBSD sometimes disables this bit when it detects a range conflict, and will re-enable it on demand when a driver allocates the BAR. Thus, the bit is no longer a reliable indication of capability, and should not be checked. This results in the elimination of a lot of code from drivers, and also gives the opportunity to simplify a lot of drivers to use a helper API to set the busmaster enable bit. This changes fixes some recent reports of disk controllers and their associated drives/enclosures disappearing during boot. Submitted by: jhb Reviewed by: jfv, marius, achadd, achim MFC after: 1 day
* Improve the MSIX setup code in the drivers, thanks to Marius forjfv2013-08-124-13/+33
| | | | | | | | the changes. Make sure that pci_alloc_msix() does give us the vectors we need and fall back to MSI when it doesn't, also release any that were allocated when insufficient. MFC after: 3 days
* Blank m_nextpkt before passing it up.adrian2013-08-121-0/+1
|
* Add read-only support for extents in ext2fs.pfg2013-08-1213-32/+565
| | | | | | | | | | | | | | | | | | | | | | | | | | Basic support for extents was implemented by Zheng Liu as part of his Google Summer of Code in 2010. This support is read-only at this time. In addition to extents we also support the huge_file extension for read-only purposes. This works nicely with the additional support for birthtime/nanosec timestamps and dir_index that have been added lately. The implementation may not work for all ext4 filesystems as it doesn't support some features that are being enabled by default on recent linux like flex_bg. Nevertheless, the feature should be very useful for migration or simple access in filesystems that have been converted from ext2/3 or don't use incompatible features. Special thanks to Zheng Liu for his dedication and continued work to support ext2 in FreeBSD. Submitted by: Zheng Liu (lz@) Reviewed by: Mike Ma, Christoph Mallon (previous version) Sponsored by: Google Inc. MFC after: 3 weeks
* Make check for unknown login class actually work. Previously, using the ↵trasz2013-08-121-0/+2
| | | | | | | "-c" option with login class not defined in login.conf(5) would silently fail, resulting in using the default login class.
* Add brace missing in r254253.mav2013-08-121-1/+1
|
* r253460 accidentally some moderately expensive debugging code, evenscottl2013-08-121-0/+4
| | | | | | | | when debugging isn't enabled. Work around this. Submitted by: mav Obtained from: Netflix MFC after: 3 days
* Fix the formatting of the error message.ed2013-08-121-2/+2
| | | | | The G_MIRROR_DEBUG() macro already appends a newline. Also, most of the log messages emitted by gmirror start with an uppercase letter.
* Temporarily revert sendmail 8.14.7 change to getipnodebyname() flags togshapiro2013-08-121-0/+4
| | | | | | | | prevent problems between the resolver and Microsoft DNS servers with AAAA lookups. The upstream open source project will work on a more permanent fix for the next release. Issue noted by Pavel Timofeev. MFC after: 3 days
* Make the features a 64-bit value instead of 32-bit.tuexen2013-08-124-35/+34
| | | | | | | | This will allow an easier integration of the support for NDATA. While there, do also some minor cleanups. Obtained from: rrs@ MFC after: 2 weeks
* It seems the pre-commit checker doesn't detect illegal character sets. Fix.peter2013-08-120-0/+0
|
* Give up on using iconv to convert to UTF-8 at build time. I don't see anypeter2013-08-1210-50/+2783
| | | | | practical way to make iconv(1) as a build tool. Instead pre-convert. This gives us UTF-8 nvi catalogs even on systems without iconv enabled.
* - Try to fix build of 32-bit compatibility USB support for FreeBSD andhselasky2013-08-124-24/+32
| | | | | | | | | | | Linux targets without breaking the existing IOCTL API. - Remove some not-needed header file inclusions. - Wrap a long line. MFC after: 1 week Reported by: Damjan Jovanovic <damjan.jov@gmail.com>
* Fix some signed comparison compile warnings.hselasky2013-08-123-5/+5
|
* Correct an EHCI register write.hselasky2013-08-121-1/+1
| | | | | MFC after: 1 week Reported by: aseem.jolly@gmail.com
* Add optional support for default override of standard setup; but only ifdteske2013-08-121-3/+35
| | | | | corresponding functions are provided. If override function does not exist, boot remains unmodified. This patch should not result in any changes.
* When flushing packets from the powersave queue, make sure thatadrian2013-08-121-0/+1
| | | | | m_nextpkt is NULL before passing it up to the parent transmit method.
* Add a missing break.adrian2013-08-121-0/+1
|
* fnmatch(): Add test for r254091 (pattern with single backslash).jilles2013-08-111-0/+4
| | | | | | | | This test cannot be converted to an sh(1) test because the syntax would be invalid. PR: 181129 MFC after: 1 week
* Don't build the UTF-8 version of the catalogs without iconv enabled.peter2013-08-111-8/+7
| | | | Pointy-hat to: peter (don't do things at 4am!)
* Only allocate 2 bounce pages for maps that can only use them for buffers thatcognet2013-08-111-1/+6
| | | | are unaligned on cache lines boundary, as we will never need more.
* Correct the recovery logic in vm_page_alloc_contig:attilio2013-08-111-4/+2
| | | | | | | | | | | what is really needed on this code snipped is that all the pages that are already fully inserted gets fully freed, while for the others the object removal itself might be skipped, hence the object might be set to NULL. Sponsored by: EMC / Isilon storage division Reported by: alc, kib Reviewed by: alc
* Don't install a ru_SU.KOI8-R symlink, 'make delete-old' will just removepeter2013-08-111-1/+0
| | | | it again.
OpenPOWER on IntegriCloud