aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that pjdlog functions don't modify errno.Pawel Jakub Dawidek2011-09-271-0/+25
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=225773
* Add myself to committers-src.dot.Robert Millan2011-09-271-0/+3
| | | | | | | Approved by: kib (mentor) Notes: svn path=/head/; revision=225772
* Forgot to add "RELENG_8" to list of CVS tags.Ken Smith2011-09-261-1/+1
| | | | | | | | Submitted by: Mamontov Roman <mr.xanto at gmail.com> Approved by: re (implicit) Notes: svn path=/head/; revision=225764
* Shift head from 9.0-CURRENT to 10.0-CURRENT in preparation for releasingKen Smith2011-09-267-16/+23
| | | | | | | | | it from the 9.0-RELEASE release cycle code freeze. Approved by: re (implicit) Notes: svn path=/head/; revision=225757
* Update netfront so that it queries and honors publishedJustin T. Gibbs2011-09-211-16/+52
| | | | | | | | | | | | | | | | | | | | | | | back-end features. sys/dev/xen/netfront/netfront.c: o Add xn_query_features() which reads the XenStore and records the TSO, LRO, and chained ring-request support of the backend. o Rename xn_configure_lro() to xn_configure_features() and use this routine to manage the setup of TSO, LRO, and checksum offload. o In create_netdev(), initialize if_capabilities and if_hwassist to the capabilities found on all backends. Delegate configuration of if_capenable and the TSO flag if if_hwassist to xn_configure_features(). Reported by: Hugo Silva (fix inspired by patch provided) Approved by: re MFC after: 1 week Notes: svn path=/head/; revision=225709
* Modify the netfront driver so it can successfully attach toJustin T. Gibbs2011-09-211-11/+29
| | | | | | | | | | | | | | | | | | | | PV devices with the ioemu attribute set. sys/dev/xen/netfront/netfront.c: o If a mac address for the interface cannot be found in the front-side XenStore tree, look for an entry in the back-side tree. With ioemu devices, the emulator does not populate the front side tree and neither does Xend. o Return an error rather than panic when an attach attempt fails. Reported by: Janne Snabb (fix inspired by patch provided) PR: kern/154302 Approved by: re Notes: svn path=/head/; revision=225708
* Correct suspend/resume support in the Netfront driver.Justin T. Gibbs2011-09-211-26/+54
| | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: BQ Internet sys/dev/xen/netfront/netfront.c: o Implement netfront_suspend(), a specialized suspend handler for the netfront driver. This routine simply disables the carrier so the driver is idle during system suspend processing. o Fix a leak when re-initializing LRO during a link reset. o In netif_release_tx_bufs(), when cleaning up the grant references for our TX ring, use gnttab_end_foreign_access_ref instead of attempting to grant the page again. o In netif_release_tx_bufs(), we do not track mbufs associated with mbuf chains, but instead just free each mbuf directly. Use m_free(), not m_freem(), to avoid double frees of mbufs. o Refactor some code to enhance clarity. Approved by: re MFC after: 1 week Notes: svn path=/head/; revision=225707
* [ Forced commit. Actual changes accidentally included in r225704 ]Justin T. Gibbs2011-09-210-0/+0
| | | | | | | | | | | | | | sys/dev/xen/control/control.c: Fix locking violations in Xen HVM suspend processing and have it perform similar actions to those performed during an ACPI triggered suspend. Sponsored by: BQ Internet Approved by: re MFC after: 1 week Notes: svn path=/head/; revision=225706
* Add suspend/resume support to the Xen blkfront driver.Justin T. Gibbs2011-09-212-46/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: BQ Internet sys/dev/xen/blkfront/block.h: sys/dev/xen/blkfront/blkfront.c: Remove now unused blkif_vdev_t from the blkfront soft. sys/dev/xen/blkfront/blkfront.c: o In blkfront_suspend(), indicate the desire to suspend by changing the softc connected state to SUSPENDED, and then wait for any I/O pending on the remote peer to drain. Cancel suspend processing if I/O does not drain within 30 seconds. o Enable and update blkfront_resume(). Since I/O is drained prior to the suspension of the VM, the complicated recovery process performed by other Xen blkfront implementations is avoided. We simply tear down the connection to our old peer, and then re-connect. o In blkif_initialize(), fix a resource leak and botched return if we cannot allocate shadow memory for our requests. o In blkfront_backend_changed(), correct our response to the XenbusStateInitialised state. This state indicates that our backend peer has published sufficient data for blkfront to publish ring information and other XenStore data, not that a connection can occur. Blkfront now will only perform connection processing in response to the XenbusStateConnected state. This corrects an issue where blkfront connected before the backend was ready during resume processing. Approved by: re MFC after: 1 week Notes: svn path=/head/; revision=225705
* Properly handle suspend/resume events in the Xen deviceJustin T. Gibbs2011-09-205-18/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | framework. Sponsored by: BQ Internet sys/xen/xenbus/xenbusb.c: o In xenbusb_resume(), publish the state transition of the resuming device into XenbusStateIntiailising so that the remote peer can see it. Recording the state locally is not sufficient to trigger a re-connect sequence. o In xenbusb_resume(), defer new-bus resume processing until after the remote peer's XenStore address has been updated. The drivers may need to refer to this information during resume processing. sys/xen/xenbus/xenbusb_back.c: sys/xen/xenbus/xenbusb_front.c: Register xenbusb_resume() rather than bus_generic_resume() as the handler for device_resume events. sys/xen/xenstore/xenstore.c: o Fix grammer in a comment. o In xs_suspend(), pass suspend events on to the child devices (e.g. xenbusb_front/back, that are attached to the XenStore. Approved by: re MFC after: 1 week Notes: svn path=/head/; revision=225704
* Use nowait sync request for a vnode when doing softdep cleanup. We possiblyKonstantin Belousov2011-09-201-1/+1
| | | | | | | | | | own the unrelated vnode lock, doing waiting sync causes deadlocks. Reported and tested by: pho Approved by: re (bz) Notes: svn path=/head/; revision=225700
* Restore the writing of the .bss sections of the dsos (not the mainKonstantin Belousov2011-09-201-2/+3
| | | | | | | | | | | | | | | | | executable) after r190885. The whole region for the dso is mmaped with MAP_NOCORE flag, doing only mprotect(2) over .bss prevented it from writing .bss to core files. Revert the optimization of using mprotect(2) to establish .bss, overlap the section with mmap(2). Reported by: attilio Reviewed by: attilio, emaste Approved by: re (bz) MFC after: 2 weeks Notes: svn path=/head/; revision=225699
* Make KBI changes required for future MFCing of inpcb rtentry / llentry caching.Kip Macy2011-09-204-2/+9
| | | | | | | | Reviewed by: rwatson, bz Approved by: re (kib) Notes: svn path=/head/; revision=225698
* Avoid starting the USB transfer if an error is already pending.Hans Petter Selasky2011-09-201-4/+6
| | | | | | | | | | | | This change fixes a race in device side mode during clear-stall from host, which can cause data to be sent too early on the given endpoint. Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225695
* Manually set the channel when using monitor mode - the firmwareAdrian Chadd2011-09-201-0/+12
| | | | | | | | | | | | doesn't select it automatically. Submitted by: nox Reviewed by: bschmidt Approved by: re PR: kern/160815 Notes: svn path=/head/; revision=225686
* Use REQUIRE: line to reorder rc.d/bridge instead of BEFORE: line.Hiroki Sato2011-09-202-2/+1
| | | | | | | | Pointed out by: dougb Approved by: re (bz) Notes: svn path=/head/; revision=225684
* Remove RA timer on an interface with !IFF_UP actively after starting to sendHiroki Sato2011-09-201-0/+15
| | | | | | | | | | | | clean-up RA messages for shutting down. The RA timers could prevent the rtadvd daemon from shutting down because ra_output() just ignored !IFF_UP interfaces and TRANSITIVE->UNCONFIGURED state transition never happened due to it. Spotted by: kib Approved by: re (bz) Notes: svn path=/head/; revision=225683
* Copy ip6po_minmtu and ip6po_prefer_tempaddr in ip6_copypktopts(). This fixesHiroki Sato2011-09-201-0/+2
| | | | | | | | | | | inconsistency when options are specified by both setsockopt() and ancillary data types. PR: kern/158307 Approved by: re (bz) Notes: svn path=/head/; revision=225682
* - Fix a trivial bug in iconv. When there is no space to perform theGabor Kovesdan2011-09-191-2/+1
| | | | | | | | | | | | conversion, conversion must fail and errno must be set to E2BIG. PR: standards/160673 Submitted by: Henning Petersen <henning.petersen@t-online.de> Reviewed by: pluknet Approved by: re (kib), delphij (mentor) Notes: svn path=/head/; revision=225678
* Do not overallocate on the stack. Threaded code might use custom stackKonstantin Belousov2011-09-191-43/+69
| | | | | | | | | | | | | size. Reported by: many Tested by: Jeremie Le Hen <jeremie@le-hen.org> (previous version) Reviewed by: jilles Approved by: re (bz) MFC after: 2 weeks Notes: svn path=/head/; revision=225677
* Cleanup the iterator code, remove code that is never executed.Michael Tuexen2011-09-193-38/+8
| | | | | | | | Approved by: re MFC after: 1 month. Notes: svn path=/head/; revision=225676
* It is safe to initialize locks even on early boot (and it is the sameAttilio Rao2011-09-192-8/+1
| | | | | | | | | | | | | | thing all the other architectures already do) thus just initialize kernel_pmap in pmap_bootstrap(). Reported by: alc Reviewed by: alc, marius Tested by: flo, marius Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225675
* - Document inet6 no_radr flag.Hiroki Sato2011-09-191-1/+26
| | | | | | | | | | - Add descriptions of sysctl(8) variables which can control the default configuration of the inet6 flags. Approved by: re (kib) Notes: svn path=/head/; revision=225672
* - Document $ipv6_cpe_wanif.Hiroki Sato2011-09-191-26/+116
| | | | | | | | | | | | - Emphasize $ipv6_enable and $ipv6_prefer are deprecated. - Add more detail descriptions about $ipv6_activate_all_interfaces. - Add some more examples of $ifconfig_IF_ipv6. - rtsold(8) and rtadvd(8) can be used even when ipv6_gateway_enable=NO now. Approved by: re (kib) Notes: svn path=/head/; revision=225671
* Use resolvconf(8) to create /etc/resolv.conf, not directly overwrite it.Hiroki Sato2011-09-191-7/+7
| | | | | | | Approved by: re (kib) Notes: svn path=/head/; revision=225670
* Fix the script order to run rc.d/bridge after the initial networkHiroki Sato2011-09-191-1/+2
| | | | | | | | | interface configuration and before running network daemons. Approved by: re (kib) Notes: svn path=/head/; revision=225669
* #PROCHOT assertion is sticky after reading the MSR (accordingly withAttilio Rao2011-09-191-1/+4
| | | | | | | | | | | | | | Intel manuals) it must be cleared by writing a 0. Fix that. Sponsored by: Sandvine Incorporated Reported by: rstone Reviewed by: delphij, emaste, rstone Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225662
* Implement missing USB debug information functions.Hans Petter Selasky2011-09-197-4/+184
| | | | | | | | Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225659
* Fix a logic bug in pc-sysinstall creating partitions.Josh Paetzel2011-09-1911-36/+60
| | | | | | | | | | | | | | | | Improve exit when an error occurs. Fix parsing to grab values which contain extra '=' signs. Fix a bug setting the timezone properly. Fix a usage bug when setting up with gmirror. Allow a uzip file from local media to be used. Allow specifying flags for "newfs" when using UFS as the file system. Run custom commands after doing final cleanup / fstab generation and such. Also fix using relative path for config file. Approved by: re (bz) Notes: svn path=/head/; revision=225657
* Bump .Dd date for previous revision.Xin LI2011-09-171-1/+1
| | | | | | | Approved by: re (follow up commit fixing trivial issue) Notes: svn path=/head/; revision=225644
* Change the example of using smbfs in fstab to a password-less one,Xin LI2011-09-171-3/+3
| | | | | | | | | | | | which is less likely to block a remote system from boot. Submitted by: Garrett Cooper <yanegomi@gmail.com> PR: doc/160775 MFC after: 1 month Approved by: re (kib) Notes: svn path=/head/; revision=225643
* Fix error handling bug that would prevent MAC structures from gettingEdward Tomasz Napierala2011-09-171-20/+18
| | | | | | | | | freed properly if resource limit got exceeded. Approved by: re (kib) Notes: svn path=/head/; revision=225642
* Fix long-standing thinko regarding maxproc accounting. Basically,Edward Tomasz Napierala2011-09-172-37/+7
| | | | | | | | | | | | | we were accounting the newly created process to its parent instead of the child itself. This caused problems later, when the child changed its credentials - the per-uid, per-jail etc counters were not properly updated, because the maxproc counter in the child process was 0. Approved by: re (kib) Notes: svn path=/head/; revision=225641
* Clear transmit checksum offload context state upon lem(4) interfaceRyan Stone2011-09-171-0/+1
| | | | | | | | | | | | | | initialization. Prior to this change packets may be transmitted with an incorrect checksum. Em(4) already has an equivalent change in r213234. Obtained From: Sandvine MFC After: 1 week Approved by: re (bz) Notes: svn path=/head/; revision=225640
* Inquire about terminal type if starting from a serial console and doNathan Whitehorn2011-09-172-8/+30
| | | | | | | | | | | | not configure the host's networking if netbooted [1]. Also fix FTP installations behind some firewalls [2]. PR: bin/159583 [2] Reported by: stas [1] Approved by: re (kib) Notes: svn path=/head/; revision=225637
* Fix the enabling/disabling of Heartbeats and path MTUMichael Tuexen2011-09-175-20/+40
| | | | | | | | | discovery when using the SCTP_PEER_ADDR_PARAMS socket option. Approved by: re MFC after: 1 month. Notes: svn path=/head/; revision=225635
* Add myself and connect me with my mentorsCarlo Strub2011-09-161-0/+3
| | | | | | | Approved by: re@, glarkin@ Notes: svn path=/head/; revision=225632
* Auto-generated code from sys_ prefixing makesyscalls.sh changeKip Macy2011-09-1613-1175/+1181
| | | | | | | Approved by: re(bz) Notes: svn path=/head/; revision=225618
* In order to maximize the re-usability of kernel code in user space thisKip Macy2011-09-16118-825/+869
| | | | | | | | | | | | | | | | patch modifies makesyscalls.sh to prefix all of the non-compatibility calls (e.g. not linux_, freebsd32_) with sys_ and updates the kernel entry points and all places in the code that use them. It also fixes an additional name space collision between the kernel function psignal and the libc function of the same name by renaming the kernel psignal kern_psignal(). By introducing this change now we will ease future MFCs that change syscalls. Reviewed by: rwatson Approved by: re (bz) Notes: svn path=/head/; revision=225617
* Remove the svn:keywords property and restore the historical $FreeBSD$ tag.Dag-Erling Smørgrav2011-09-161-1/+1
| | | | | | | | Approved by: re (kib) MFC after: 3 weeks Notes: svn path=/head/; revision=225614
* Fix a typo introduced in r219892 that prevented file system options fromNathan Whitehorn2011-09-161-1/+1
| | | | | | | | | being set correctly. Approved by: re (kib) Notes: svn path=/head/; revision=225613
* Fix WPA setup broken by changes to shell argument passing inside theNathan Whitehorn2011-09-161-0/+1
| | | | | | | | | | installer network configuration. PR: bin/159558 Approved by: re (kib) Notes: svn path=/head/; revision=225612
* Print the package name on deletion errors.Sergey Kandaurov2011-09-161-2/+2
| | | | | | | | | | | | | It appears this was already done in NetBSD a decade ago, hence I just reuse the change (except our code is bad styled). PR: bin/160516 Approved by: portmgr Approved by: re (kib) Obtained from: NetBSD Notes: svn path=/head/; revision=225610
* zfsboottest: some additional enhancementsAndriy Gapon2011-09-161-5/+10
| | | | | | | | | | | | | - redirect diagnostics printfs in the boot code to stderr - do not read trailing garbage from a trailing block of a file Also add my copyright to the file after making so many changes. Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225609
* zfstest: rename to zfsboottest and move to toolsAndriy Gapon2011-09-162-0/+23
| | | | | | | | Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225608
* When resuming an HTTP download, we failed to verify that the rangeDag-Erling Smørgrav2011-09-151-0/+14
| | | | | | | | | | | | | | | | | | | returned by the server matched what we requested, and blindly appended what we received to what we already had. This could go two ways: if the delivered offset was higher than expected, the local file would contain duplicate data, while if it was lower than expected, there would be data missing from the middle of the file. Furthermore, if the transfer was interrupted again, each subsequent attempt would compound the error. Fix the first problem by restarting the transfer from scratch if there is a gap, and the second by explicitly seeking to the correct location in the local file so as to overwrite any duplicated data. PR: bin/117277 Approved by: re (kib) MFC after: 3 weeks Notes: svn path=/head/; revision=225599
* It seems when I added code for affine unit changes to units, IDavid Malone2011-09-151-3/+5
| | | | | | | | | | forgot to tell the man page we could now convert Celsius to Fahrenheit. Approved by: re (kib) MFC after: 1 month Notes: svn path=/head/; revision=225596
* Expose "log" in the default devfs rules. /etc/rc.d/jail creates /dev/logJaakko Heinonen2011-09-151-0/+1
| | | | | | | | | | | | as a symbolic link. PR: conf/160711 Submitted by: Jase Thew Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225587
* Add IPv6 support to the ng_ipfw(4) [1]. Also add ifdefs to be ableAndrey V. Elsukov2011-09-152-13/+57
| | | | | | | | | | | | build it with and without INET/INET6 support. Submitted by: Alexander V. Chernikov <melifaro at yandex-team.ru> [1] Tested by: Alexander V. Chernikov <melifaro at yandex-team.ru> [1] Approved by: re (bz) MFC after: 2 weeks Notes: svn path=/head/; revision=225586
* Fix a typo introduced inMichael Tuexen2011-09-151-1/+1
| | | | | | | | | | | http://svn.freebsd.org/changeset/base/225571 Reported by Ilya A. Arkhipov. Approved by: re MFC after: 1 month. Notes: svn path=/head/; revision=225584