ƒ«3226520 179 828 239 177 145 513 194 135 214 1094 200 400 183 584 187 180 226 365 107 161 174 179 138 290 313 561 220 332 282 271 146 230 186 337 490 198 489 200 274 275 247 140 130 121 108 239 207 183 307 342 231 409 335 984 383 210 272 172 189 206 151 1746 680 256 146 207 128 207 129 658 233 200 647 625 625 230 184 236 597 185 391 146 236 248 141 237 131 442 649 570 182 394 409 1794 281 251 167 205 278 151 127 308 570 448 360 787 131 186 196 163 188 191 186 166 273 134 209 130 221 179 198 191 168 266 165 99 776 212 631 160 188 245 319 187 103 393 240 244 259 229 148 884 750 130 263 197 219 190 233 210 210 179 156 569 359 188 99 1082 240 174 326 300 190 127 124 229 165 271 403 289 271 201 228 116 108 302 214 170 361 171 K 10 svn:author V 8 mckusick K 8 svn:date V 27 2011-10-18T18:42:26.736376Z K 7 svn:log V 730 The current /etc/dumpdates file restricts device names to 32 characters. With the addition of various GEOM layers some device names now exceed this length, for example /dev/mirror/encrypted.elig.journal. This change expands the field to 53 bytes which brings the /etc/dumpdates lines to 80 characters. Exceeding 80 characters makes the /etc/dumpdates file much less human readable. A test is added to dump so that it verifies that the device name will fit in the 53 character field failing the dump if it is too long. This change has been checked to verify that its /etc/dumpdates file is compatible with older versions of dump. Reported by: Martin Sugioarto PR: kern/160678 MFC after: 3 weeks END K 10 svn:author V 6 grehan K 8 svn:date V 27 2011-10-18T18:52:22.591158Z K 7 svn:log V 143 Ignore legacy INIT de-asserts in x2apic mode before verifying the contents of the IPI. Uncovered by jhb's x2apic patch. Obtained from: NetApp END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-18T20:16:02.544063Z K 7 svn:log V 82 Allow to dump on Solaris swap partitions. PR: 161764 Submitted by: Peter Jeremy END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-10-18T22:51:40.193177Z K 7 svn:log V 50 Fix some memory errors in *at() regression tests. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-19T01:23:13.491496Z K 7 svn:log V 418 In parent_exit() run the code to kill background processes if we're called with a non-zero exit code. That will trigger it (for example) where the user answers no to the confirmation prompt and is either using -D, or the generation of the list of valid distfiles did not complete. Now that there are 3 sites to trip it, use a flag to indicate that it needs to be run to make sure that we don't run it more than once. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-19T06:24:53.839869Z K 7 svn:log V 101 Fix breakage introduced by r226518. Spotted by: tinderbox, yanefbsd at gmail.com Pointy hat to: dim END K 10 svn:author V 7 fabient K 8 svn:date V 27 2011-10-19T07:16:57.837475Z K 7 svn:log V 39 Add missing DEBUG define from r226514. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-10-19T08:37:48.745125Z K 7 svn:log V 122 Fix indentation in a loop and a tiny maze of #ifdefs for just the __FreeBSD__ parts that had it wrong. MFC after: 3 days END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-19T08:39:44.820196Z K 7 svn:log V 998 Rollback r226399 to r226516. It turns out that no, I can't hold these locks for this long without causing all kinds of LORs with both net80211 and the IP stack. Things work ok in hostap mode when bridging occurs but it all utterly fails (and very quickly) when passing IP traffic. I'll re-merge in some of the useful work here, but I unfortunately can't just cheat and hold locks as a method of enforcing atomic and predictable states within the driver. As a node: iwn holds the IWN_LOCK for long periods but it doesn't hold it over some net80211 calls and the RX path. The TX path however has it being held. So when RX'ing, the net80211 ic comlock will be grabbed when calling ieee80211_input and ieee80211_free_node(). When TX'ing, the IWN_LOCK is grabbed, then net80211 comlock will be grabbed on completion of each frame. So a LOR will likely occur if the IWN_LOCK is grabbed at any point whilst the net80211 lock is held. eg, maybe a channel change? or reset? I'll have to look into it. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-19T08:52:14.495667Z K 7 svn:log V 104 Remove unneeded code and comment. The race has been fixed by placing the relevant bits behind ATH_LOCK. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-10-19T08:57:17.221599Z K 7 svn:log V 308 Fix a bug when NPFSYNC > 0 that on FreeBSD we would always return and never remove state. This fixes the problem some people are seeing that state is removed when pf is loaded as a module but not in situations when compiled into the kernel. Reported by: many on freebsd-pf Tested by: flo MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-10-19T09:34:40.066248Z K 7 svn:log V 92 Fix an obvious locking bug where we would lock again rather than unlock. MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-10-19T10:04:24.979634Z K 7 svn:log V 492 Pseudo interfaces should go at SI_SUB_PSEUDO. However at least pfsync also depends on pf to be initialized already so pf goes at FIRST and the interfaces go at ANY. Then the (VNET_)SYSINIT startups for pf stays at SI_SUB_PROTO_BEGIN and for pfsync we move to the later SI_SUB_PROTO_IF. This is not ideal either but at least an order that should work for the moment and can be re-fined with the VIMAGE merge, once this will actually work with more than one network stack. MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-10-19T10:08:58.828719Z K 7 svn:log V 96 In the non-FreeBSD case we do not expect PF_LOCK and friends to do anything. MFC after: 3 days END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-10-19T10:09:01.203443Z K 7 svn:log V 83 Add new USB IDs to RUN driver. Update usb.conf. PR: usb/161798 MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-10-19T10:16:42.842910Z K 7 svn:log V 134 Adjust the PF_ASSERT() macro to what we usually use in the network stack: PF_LOCK_ASSERT() and PF_UNLOCK_ASSERT(). MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-10-19T11:04:49.712920Z K 7 svn:log V 273 De-virtualize the pf_task_mtx lock. At the current state of pf locking and virtualization it is not helpful but complicates things. Current state of art is to not virtualize these kinds of locks - inp_group/hash/info/.. are all not virtualized either. MFC after: 3 days END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-19T11:43:51.358088Z K 7 svn:log V 15 latin1 -> utf8 END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-19T11:48:21.270914Z K 7 svn:log V 69 MFH r221820-221823,225814,22653: whitespace, warnings, cosmetic nits END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-19T11:49:14.436254Z K 7 svn:log V 82 MFH r221830: mark all sockets and file descriptors close-on-exec PR: bin/151866 END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-19T12:14:14.709304Z K 7 svn:log V 87 MFH r225599,225800,225805: improve handling of resumed http transfers PR: bin/117277 END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-19T12:15:16.045473Z K 7 svn:log V 46 MFH r225982: fix name in copyright statements END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-19T12:16:19.967597Z K 7 svn:log V 194 Begin fleshing out a way to wait for all pending taskqueue entries to complete. The current API only lets you wait for a given taskqueue task, rather than all of them. This isn't (yet) tested. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-19T13:11:50.630423Z K 7 svn:log V 217 * Remove the locking around the channel set code (for now), as we can't hold the lock across where ath_rx_proc() will be called to properly drain the RX queue. * Split out the "drain txq" and "stop tx dma" code. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-10-19T13:13:56.614632Z K 7 svn:log V 469 Fix recursive pf locking leading to panics. Splatter PF_LOCK_ASSERT()s to document where we are expecting to be called with a lock held to more easily catch unnoticed code paths. This does not neccessarily improve locking in pfsync, it just tries to avoid the panics reported. PR: kern/159390, kern/158873 Submitted by: pluknet (at least something that partly resembles my patch ignoring other cleanup, which I only saw too late on the 2nd PR) MFC After: 3 days END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-10-19T14:38:01.426472Z K 7 svn:log V 122 Keep FDT options commented until dtc is build by default for mips Otherwise automated builds will fail for XLP and XLP64 END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-19T15:35:41.080969Z K 7 svn:log V 239 If ls was invoked with -i but neither -l nor -s, blocksize was used in display() to calculate column widths, but was not initialized in main(). This resulted in a division by zero. Noticed by: Michael Butler END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2011-10-19T21:55:20.692200Z K 7 svn:log V 184 Add a warning about why sbp(4) is commented out so that curious folks are forewarned they might wind up with a hole in their foot if they decide to give it a try. Suggested by: dougb END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2011-10-19T23:02:57.825982Z K 7 svn:log V 173 Remove the last of the debugging support (INVARIANT*) from the ia64 GENERIC config file, the ia64 kernel runs OK without it. Reviewed by: marcel Approved by: re (implicit) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-19T23:31:50.069372Z K 7 svn:log V 54 Remove redundant size calculation. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-19T23:33:48.471672Z K 7 svn:log V 137 Initialize 'rc' properly before using it. This error could lead to infinite loop when data reconstruction was needed. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-19T23:37:30.125810Z K 7 svn:log V 94 Don't mark vdev as healthy too soon, so we won't try to use invalid vdevs. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-19T23:40:37.427614Z K 7 svn:log V 244 Never pass NULL block pointer when reading. This is neither expected nor handled by lower layers like vdev_raidz, which uses bp for checksum verification. This bug could lead to NULL pointer reference and resets during boot. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-19T23:44:38.206800Z K 7 svn:log V 397 Always pass data size for checksum verification function, as using physical block size declared in bp may not always be what we want. For example in case of gang block header physical block size declared in bp is much larger than SPA_GANGBLOCKSIZE (512 bytes) and checksum calculation failed. This bug could lead to accessing unallocated memory and resets/failures during boot. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-19T23:48:15.414943Z K 7 svn:log V 105 Fix missing return when LOADER_GPT_SUPPORT is defined, but LOADER_MBR_SUPPORT is not. MFC after: 3 days END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-20T06:01:44.115708Z K 7 svn:log V 394 Improve the handling of the -F option with packages, especially with --packages-only: In update_port() do better at saying what we're launching a child to do In post_first_pass() make clear that we are fetch'ing, not building, installing, etc. In multiport() call check_fetch_only when we're done In the main body add fetch'ed ports to the CUR_DEPS list so that they are only fetched once. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-20T06:25:57.082832Z K 7 svn:log V 104 make ath_tx_processq() again take a flag which states whether or not to run the software txq scheduler. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-20T06:55:59.606951Z K 7 svn:log V 178 Push the task enqueue further down. This fixes some strange bugs I've been seeing where txq hangs occur. I dunno why; the taskqueue shouldn't cause a thread preemption to occur. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-20T07:24:33.956989Z K 7 svn:log V 179 Re-add this locking for now, just so I don't have to undo the locking I've added around ath_reset() and ath_reset_locked(). This fixes the panic I was seeing in ath_startrecv(). END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-20T07:53:15.807098Z K 7 svn:log V 151 Begin undoing the ath_reset() / ath_reset_locked() code. I can't hold locks here across the net80211 input routines or things will get somewhat messy. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-20T09:46:47.022475Z K 7 svn:log V 45 Track whether the driver is in reset or not. END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-10-20T09:53:20.061427Z K 7 svn:log V 36 - Add -N for REG_NEWLINE - style(9) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-10-20T09:55:21.374851Z K 7 svn:log V 27 - Manual fixes after merge END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-10-20T09:57:27.882545Z K 7 svn:log V 14 - Minor fixes END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-10-20T13:41:37.232387Z K 7 svn:log V 141 Build 'dtc' by default for MIPS. The device tree compiler is needed during the kernel build to compile DTS files to DTB. Reviewed by: stas END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-10-20T14:45:16.777128Z K 7 svn:log V 109 MFC r226474: Make the usbdump utility work again by using the correct BPF structures. Approved by: re (kib) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-10-20T14:56:44.179617Z K 7 svn:log V 86 MFC r226474: Make the usbdump utility work again by using the correct BPF structures. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-10-20T15:34:17.882981Z K 7 svn:log V 206 MFC r226410: Enforce a memory barrier in stream operations, as is done on other bus_space calls. This makes ath(4) work correctly on PowerPC. Submitted by: adrian Tested by: andreast Approved by: re (kib) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-20T15:42:38.598241Z K 7 svn:log V 249 - Correctly read gang header from raidz. - Decompress assembled gang block data if compressed. - Verify checksum of a gang header. - Verify checksum of assembled gang block data. - Verify checksum of uber block. Submitted by: avg MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-20T15:46:54.052140Z K 7 svn:log V 138 With LOADER_MBR_SUPPORT defined and LOADER_GPT_SUPPORT undefined we would never call disk_openmbr(). Submitted by: avg MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-20T15:53:26.817471Z K 7 svn:log V 312 MFhead r226338: Restore functions in6_ifaddloop() and in6_ifremloop() that were inlined by Qing Li in his big new-ARP commit. I am going to utilize them in my newcarp work, and also these functions left declared in in6_var.h for all the time they were absent. Reviewed by: bz Approved by: re (kib) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-20T15:55:01.637549Z K 7 svn:log V 238 MFhead r226367: Never switch directly from INIT to MASTER, since this produces nasty status flaps. PR: kern/161123 Submitted by: Damien Fleuriot OpenBSD: ip_carp.c, rev. 1.115 Approved by: re (kib) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-20T15:58:05.685347Z K 7 svn:log V 887 MFhead 226401,226402: Remove last remnants of classful addressing: - Remove ia_net, ia_netmask, ia_netbroadcast from struct in_ifaddr. - Remove net.inet.ip.subnetsarelocal, I bet no one need it in 2011. - fix bug when we were not forwarding to a host which matches classful net address. For example router having 192.168.x.y/16 network attached, would not forward traffic to 192.168.*.0, which are legal IPs in CIDR world. - For compatibility, leave autoguessing of mask based on class. Reviewed by: andre, bz, rwatson Add support for IPv4 /31 prefixes, as described in RFC3021. To run a /31 network, participating hosts MUST drop support for directed broadcasts, and treat the first and last addresses on subnet as unicast. The broadcast address for the prefix should be the link local broadcast address, INADDR_BROADCAST. Approved by: re (kib) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-10-20T16:08:11.199391Z K 7 svn:log V 288 MFC r226432, r226273: - Use getprogname() instead of __progname - Allow disabling bzip2 support with WITHOUT_BZIP2 - Fix handling patterns that start with a dot - Remove superfluous semicolon - Fix counting of match limit (-m) Approved by: re (kib), delphij (mentor, implicit) END K 10 svn:author V 2 np K 8 svn:date V 27 2011-10-20T17:09:53.631940Z K 7 svn:log V 118 MFC r226318: Make sure the inp wasn't dropped when rexmt let go of the inp and pcbinfo locks. Approved by: re (kib) END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-20T17:33:22.947572Z K 7 svn:log V 179 Update gcc's __FreeBSD__ and __FreeBSD_cc_version macros for FreeBSD 9. This is a direct commit to stable/9, since the macro values are different in head. Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-10-20T18:39:01.425343Z K 7 svn:log V 80 MFC r226208: Do not ignore block offsets. PR: kern/160943 Approved by: re (bz) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-10-20T18:47:58.027921Z K 7 svn:log V 97 MFC r226041: Export devfs inode number allocator for the kernel consumers. Approved by: re (bz) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-10-20T18:54:05.010022Z K 7 svn:log V 113 MFC r226042: Supply unique (st_dev, st_ino) value pair for the fstat(2) done on the pipes. Approved by: re (bz) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-10-20T19:16:52.424740Z K 7 svn:log V 59 MFC r226208: Do not ignore block offsets. PR: kern/160943 END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2011-10-20T19:23:21.612102Z K 7 svn:log V 1649 MFC r224536: Confirmed behavior of a Cisco 6509 in production. In the old TFTP server, there was an undocumented behavior where the block counter would rollover to 0 if a file larger than 65535 blocks was transferred. With the default block size of 512 octets per block, this is a file size of approximately 32 megabytes. The new TFTP server code would report an error and stop transferring the file if a file was larger than 65535 blocks. This patch restores the old TFTP server's behavior to the new TFTP server code. If a TFTP client transfers a file larger than 65535 blocks, and does *not* specify the "rollover" option, then automatically rollover the block counter to 0 every time we reach 65535 blocks. This restores interoperability with the FreeBSD 6 TFTP client. Without this change, if a FreeBSD 6 TFTP client tried to retrieve a file larger than 65535 blocks from a FreeBSD 9 TFTP server , the transfer would fail. The same file could be retrieved successfully if the same FreeBSD 6 TFTP client was used against a FreeBSD 6 TFTP server. Approved by: re (kib) Tested by: Pawan Gupta , Obtained from: Juniper Networks FreeBSD7 Reviewed by: Yahoo Inc. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M tftpd/tftp-transfer.c END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-20T20:31:09.207875Z K 7 svn:log V 583 MFC r226483: Fix a bug in sa_find_sizes() which could lead to panic: When calculating space needed for SA_BONUS buffers, hdrsize is always rounded up to next 8-aligned boundary. However, in two places the round up was done against sum of 'total' plus hdrsize. On the other hand, hdrsize increments by 4 each time, which means in certain conditions, we would end up returning with will_spill == 0 and (total + hdrsize) larger than full_space, leading to a failed assertion because it's invalid for dmu_set_bonus. Sponsored by: iXsystems, Inc. Reviewed by: mm Approved by: re (kib) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-20T20:33:31.940414Z K 7 svn:log V 159 MFC r226476: Return BUS_PROBE_DEFAULT instead of 0 (BUS_PROBE_SPECIFIC), allowing vendor provided driver to override in kernel driver. Approved by: re (kib) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-20T21:01:50.921563Z K 7 svn:log V 54 Make all the lines align properly. MFC after: 3 days END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-20T21:10:27.480373Z K 7 svn:log V 114 Vendor import of llvm release_30 branch r142614: http://llvm.org/svn/llvm-project/llvm/branches/release_30@142614 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-20T21:11:28.630549Z K 7 svn:log V 36 Tag llvm release_30 branch r142614. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-20T21:14:49.595838Z K 7 svn:log V 114 Vendor import of clang release_30 branch r142614: http://llvm.org/svn/llvm-project/cfe/branches/release_30@142614 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-20T21:15:43.288331Z K 7 svn:log V 37 Tag clang release_30 branch r142614. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-20T21:48:09.824757Z K 7 svn:log V 561 MFC r226483: Fix a bug in sa_find_sizes() which could lead to panic: When calculating space needed for SA_BONUS buffers, hdrsize is always rounded up to next 8-aligned boundary. However, in two places the round up was done against sum of 'total' plus hdrsize. On the other hand, hdrsize increments by 4 each time, which means in certain conditions, we would end up returning with will_spill == 0 and (total + hdrsize) larger than full_space, leading to a failed assertion because it's invalid for dmu_set_bonus. Sponsored by: iXsystems, Inc. Reviewed by: mm END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-20T21:49:26.299548Z K 7 svn:log V 136 MFC r226476: Return BUS_PROBE_DEFAULT instead of 0 (BUS_PROBE_SPECIFIC), allowing vendor provided driver to override in kernel driver. END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-10-20T22:38:24.312490Z K 7 svn:log V 105 - Fix return value in heuristic compiler - Implement longest fragment heuristic for REG_NEWLINE behavior END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-10-21T05:37:40.433477Z K 7 svn:log V 550 MFC r226403: In r225809 the intention was to send VEOF only once if STDIN was not a terminal. Unfortunately the fix was incorrect and for flushtime > 0 it keept sending VEOF. Sent VEOF generates ^D\b\b echoed by the terminal, which was reported in bin/161526. Note, we still send VEOF at least once. Otherwise commands like below would hang forever: echo 1 |script /tmp/script.out cat PR: bin/161526 Reported by: Adrian Wontroba , Stefan Bethke Tested by: Stefan Bethke Approved by: re (kib) END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-10-21T05:40:30.641477Z K 7 svn:log V 528 MFC r226403: In r225809 the intention was to send VEOF only once if STDIN was not a terminal. Unfortunately the fix was incorrect and for flushtime > 0 it keept sending VEOF. Sent VEOF generates ^D\b\b echoed by the terminal, which was reported in bin/161526. Note, we still send VEOF at least once. Otherwise commands like below would hang forever: echo 1 |script /tmp/script.out cat PR: bin/161526 Reported by: Adrian Wontroba , Stefan Bethke Tested by: Stefan Bethke END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-10-21T05:41:20.660159Z K 7 svn:log V 528 MFC r226403: In r225809 the intention was to send VEOF only once if STDIN was not a terminal. Unfortunately the fix was incorrect and for flushtime > 0 it keept sending VEOF. Sent VEOF generates ^D\b\b echoed by the terminal, which was reported in bin/161526. Note, we still send VEOF at least once. Otherwise commands like below would hang forever: echo 1 |script /tmp/script.out cat PR: bin/161526 Reported by: Adrian Wontroba , Stefan Bethke Tested by: Stefan Bethke END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:25:31.152842Z K 7 svn:log V 137 Bugfix: feenableexcept() and fedisableexcept() should just return the old exception mask, not mask | ~FE_ALL_EXCEPT. MFC after: 2 weeks END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:26:07.518826Z K 7 svn:log V 92 Per IEEE754r, pow(1, y) is 1 even if y is NaN, and pow(-1, +-Inf) is 1. MFC after: 2 weeks END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:26:38.730498Z K 7 svn:log V 143 Use STRICT_ASSIGN() to ensure that the compiler doesn't screw things up by storing x in a wider type than it's supposed to. Submitted by: bde END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:27:56.474497Z K 7 svn:log V 504 The cexp() and {,c}{cos,sin}h functions all need to be able to compute exp(x) scaled down by some factor, and the challenge is doing this accurately when exp(x) would overflow. This change replaces all of the tricks we've been using with common __ldexp_exp() and __ldexp_cexp() routines that handle all the scaling. bde plans to improve on this further by moving the guts of exp() into k_exp.c and handling the scaling in a more direct manner. But the current approach is simple and adequate for now. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:28:47.639218Z K 7 svn:log V 93 Use __ldexp_exp() to simplify things and improve accuracy for x near the overflow threshold. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:29:32.358628Z K 7 svn:log V 298 Improved handling of large x in ccosh{,f}(): - Handle cases where exp(x) would overflow, but ccosh(x) ~= exp(x) / 2 shouldn't. - Use the ccosh(x) ~= exp(x) / 2 approximation to simplify the calculation when x is large. Similarly for csinh(). Also fixed the return value of csinh(-Inf +- 0i). END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:30:16.472663Z K 7 svn:log V 54 Fix a corner case: tan(large + Inf i) == NaN + NaN i. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:30:43.333767Z K 7 svn:log V 143 Fix a regression introduced in r226371: When the high part of x*y exactly cancels with z, return the low part of x*y instead of discarding it. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:32:54.428860Z K 7 svn:log V 155 Tests for cancellation in fma(). Also include more tests for 128-bit long doubles. Thanks for clusteradm (simon) for making the needed hardware available. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:34:38.117587Z K 7 svn:log V 49 Tests for complex trig and hyperbolic functions. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:35:58.402017Z K 7 svn:log V 144 Add support for the 'x' mode option in fopen() as specified in the C1X draft standard. The option is equivalent to O_EXCL. MFC after: 1 month END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:36:40.403073Z K 7 svn:log V 39 Add regression tests for modf{,f,l}(). END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:40:36.681099Z K 7 svn:log V 349 Replace a proliferation of buggy MD implementations of modf() with a working MI one. The MI one only needs to be overridden on machines with non-IEEE754 arithmetic. (The last supported one was the VAX.) It can also be overridden if someone comes up with a faster one that actually passes the regression tests -- but this is harder than it sounds. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T06:41:46.752849Z K 7 svn:log V 556 People porting FreeBSD to new architectures ought not have to implement a deprecated FPU control interface in addition to the standard one. To make this clearer, further deprecate ieeefp.h by not declaring the function prototypes except on architectures that implement them already. Currently i386 and amd64 implement the ieeefp.h interface for compatibility, and for fp[gs]etprec(), which doesn't exist on most other hardware. Powerpc, sparc64, and ia64 partially implement it and probably shouldn't, and other architectures don't implement it at all. END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-21T11:08:25.900089Z K 7 svn:log V 477 It turns out that truss also used kdump's mkioctls script, and expected ioctlname() to return a pointer to the name rather than print it. This did not show up in testing because truss had its own prototype for ioctlname(), so it would build fine and run fine as long as the program being traced did not issue an ioctl. Teach mkioctls to generate different versions of ioctlname() based on its first command-line argument. Pointed out by: Garrett Cooper END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-21T11:11:18.528569Z K 7 svn:log V 86 In FreeBSD ip_output() expects ip_len and ip_off in host byte order PR: kern/159029 END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-21T12:58:34.304508Z K 7 svn:log V 302 Add missing #includes. According to POSIX, these two header files should be able to be included by themselves, not depending on other headers. The header uses struct sockaddr when __BSD_VISIBLE=1, while uses integer datatypes (u_int32_t, u_short, etc). MFC after: 2 months END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-21T13:13:18.626735Z K 7 svn:log V 316 - Allow to specify multiple files to check, eg. zfsboottest gpt/system0 gpt/system1 - /boot/kernel/kernel /boot/zfsloader - Instead of printing file's content calculate MD5 hash of the file, so it can be easly compared to the hash calculated via file system. - Some other minor improvements. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-21T13:44:26.073711Z K 7 svn:log V 1700 Because ZFS boot code was very fragile in the past and real PITA to debug, introduce zfsboottest.sh script that will verify if it will be possible to boot from the given pool. # zfsboottest.sh system Where "system" is pool name of the pool we want to boot from. What is being verified by the script: - Does the pool exist? - Does it have bootfs property configured? - Is mountpoint property of the boot dataset set to 'legacy'? Dataset configured in bootfs property has to be mounted to perform more checks: - Does the /boot directory in boot dataset exist? - Is this dataset configured as root file system in /etc/fstab or set in vfs.root.mountfrom variable in /boot/loader.conf? By using zfsboottest tool the script will read all the files in /boot directory using ZFS boot code and calculate their checksums. Then, it will walk /boot directory using find(1) though regular file sytem and also read all the files in /boot directory and calculate their checksums. If any of the files cannot be looked up, read or checksum is invalid it will be reported and booting off of this pool is probably not possible. Some additional checks may be interesting as well. For example if the disks contain proper pmbr and gptzfsboot code or if all expected files in /boot/ are present. When upgrading FreeBSD, one should snapshot datasets that contain operating system, upgrade (install new world and kernel) and use zfsboottest.sh to verify if it will be possible to boot from new configuration. If all is good one should upgrade boot blocks, by eg.: # gpart -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1 If something is wrong, one should rollback datasets and report the problems. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-21T13:53:06.564832Z K 7 svn:log V 188 libzpool task_alloc: pass only valid flags to kmem_alloc tqflags may contain other flags besided those that are suitable for kmem_alloc == umem_alloc Submitted by: avg MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-21T13:54:17.391627Z K 7 svn:log V 154 Note that it is still not possible to guard special kind of allocations, those that have special relationships with uma(9). Currently only mbuf clusters. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-21T13:54:58.397927Z K 7 svn:log V 75 thr_create: new_thread_ID may be NULL Submitted by: avg MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-21T13:56:17.627845Z K 7 svn:log V 112 zdb: access dp_free_bpobj only if pool version is >= SPA_VERSION_DEADLISTS Submitted by: avg MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-21T14:00:48.992940Z K 7 svn:log V 185 zfs vdev_file_io_start: validate vdev before using vdev_tsd vdev_tsd can be NULL for certain vdev states. At least in userland testing with ztest. Submitted by: avg MFC after: 3 days END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-21T14:23:59.591470Z K 7 svn:log V 59 Minor corrections and clarifications regarding exceptions. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-21T20:23:40.060053Z K 7 svn:log V 31 Spelling. Submitted by: dougb END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-21T21:49:34.151564Z K 7 svn:log V 215 Update per-thread I/O statistics collection in ZFS. This allows to see processes I/O activity in 'top -m io' output. PR kern/156218 Reported by: Marcus Reid Patch by: avg MFC after: 3 days END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2011-10-21T22:07:52.405641Z K 7 svn:log V 472 MFC 226266: After creating a filesystem using newfs -j the time stamps are all zero and thus report as having been made in January 1970. Apart from looking a bit silly, it also triggers alarms from scripts that detect weird time stamps. This update sets all 4 (or 3, in the case of UFS1) time stamps to the current time when enabling journaling during newfs or later when enabling it with tunefs. Reported by: Hans Ottevanger Approved by: re (kib) END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2011-10-21T22:12:24.971207Z K 7 svn:log V 350 MFC: 226265 When unmounting a filesystem always wait for the vfs_busy lock to clear so that if no vnodes in the filesystem are actively in use the unmount will succeed rather than failing with EBUSY. Reported by: Garrett Cooper Reviewed by: Attilio Rao and Kostik Belousov Tested by: Garrett Cooper Approved by: re (kib) PR: kern/161016 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-21T22:28:15.981952Z K 7 svn:log V 263 Fix a race: we should update sc_len before dropping the pf lock, otherwise a number of packets can be queued on sc, while we are in ip_output(), and then we wipe the accumulated sc_len. On next pfsync_sendout() that would lead to writing beyond our mbuf cluster. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-22T01:29:35.586942Z K 7 svn:log V 691 Merge r226465 (below message) and r226467 (subsequent compile fixes). Fix an issue with 11g beacon frames which looks to be a limitation on the largest multi-write size. From the submitter: == I looked further into the magic 88-byte threshold after which the bug occurs. It turns out that figure included the 24-byte tx_desc, and up to 64 bytes of beacon frame (header+data). rum_write_multi doesn't seem happy with writing >64 bytes at a time to the MAC register. If I break it up into separate calls (e.g. bytes 0-63, then bytes 64-65, written at the appropriate offset) I see the proper beacon frames being transmitted now. == Submitted by: Steven Chamberlain END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-22T04:39:12.369988Z K 7 svn:log V 39 openpam_static.c isn't auto-generated. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-10-22T09:29:44.002799Z K 7 svn:log V 89 Fix bmiss notifications, events should be sent when NOT scanning. Approved by: re (kib) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-10-22T09:38:03.240729Z K 7 svn:log V 101 - Drop dots from heuristics because they decrease efficiency - Count pattern length for future usage END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-10-22T09:43:35.649742Z K 7 svn:log V 66 Fix bmiss notifications, events should be sent when NOT scanning. END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-10-22T10:29:06.287792Z K 7 svn:log V 94 - Remove handling of dot because in some cases it was less efficient than using a heuristic END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-10-22T11:39:17.566029Z K 7 svn:log V 97 - Use the pattern lenght if possible to limit the context that is processed with the automaton END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-10-22T11:42:48.631447Z K 7 svn:log V 92 - Add a missing break - Fix compilation on some platforms - Turn off REG_NEWLINE by default END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-22T14:08:21.910321Z K 7 svn:log V 74 Revert the previous commit and add a comment explaining why it was wrong. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-22T14:08:43.953335Z K 7 svn:log V 180 Upgrade our copy of llvm/clang to r142614, from upstream's release_30 branch. This brings us very close to the 3.0 release, which is expected in a week or two. MFC after: 1 week END K 10 svn:author V 6 cognet K 8 svn:date V 27 2011-10-22T16:03:45.149555Z K 7 svn:log V 39 Catchup with the vm_page flags changes END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2011-10-22T16:52:04.854255Z K 7 svn:log V 111 Bring in the --gid --gname --uid and --uname implementation from libarchive.googlecode.com. MFC after: 3 days END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2011-10-22T16:53:29.180964Z K 7 svn:log V 33 Typo from previous commit. Urgh. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-22T17:51:45.276352Z K 7 svn:log V 123 MFC: r226185 Add missing break statement to make sure all 3DES etypes really are treated the same. Approved by: re (kib) END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2011-10-22T17:56:24.072281Z K 7 svn:log V 82 Correct the spelling of getgrgid and getpwuid in the man page. MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-22T18:06:56.412197Z K 7 svn:log V 100 MFC: r226185 Add missing break statement to make sure all 3DES etypes really are treated the same. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-22T18:20:12.001981Z K 7 svn:log V 94 MFC: r226247, r226253 Properly free linux_gidset in case of an error. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-22T18:23:32.194535Z K 7 svn:log V 71 MFC: r226247, r226253 Properly free linux_gidset in case of an error. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-22T22:00:35.388681Z K 7 svn:log V 169 VN_NRESERVLEVEL is used in this file but opt_vm is not included thus the stub switch won't be correctly handled. Include opt_vm.h. Submitted by: jeff MFC after: 3 days END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2011-10-22T22:22:46.641581Z K 7 svn:log V 68 Fix Buildworld WITHOUT_OPENSSL. PR: kern/160922 MFC after: 3 days END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-22T22:56:20.723217Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-22T23:34:37.096487Z K 7 svn:log V 679 Check in an intial implementation of radix tree implementation to replace the vm object pages splay. TODO: - Handle differently the negative keys for having smaller depth index nodes (negative keys caming from indirect blocks) - Fix the get_node() by having support for a low reserved objects directly from UMA - Implement the lookup_le and re-enable VM_NRESERVELEVEL = 1 - Try to rework the superpage splay of idle pages and the cache splay for every vm object in order to regain space on vm_page structure - Verify performance and improve them (likely by having consumers to deal with several ranges of pages manually?) Obtained from: jeff, Mayur Shardul (GSoC 2009) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2011-10-23T01:19:01.492068Z K 7 svn:log V 118 - Implement vm_radix_lookup_le(). - Fix vm_radix_lookupn() when max == -1 by making the end parameter inclusive. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-23T02:51:23.093057Z K 7 svn:log V 535 Add support for Boot Camp. The support is defined as follows: o Detect when Boot Camp is enabled (i.e. the MBR mirrors the GPT). o When Boot Camp is enabled, update the MBR whenever we write the GPT. o Creation of a Boot Camp enabled GPT is not supported. o Automatically disable Boot Camp when the GPT has been changed so that there's either no EFI partition or no HFS+ partition. o The first 4 partitions (by index) get mirrored in the MBR. Requested by, discussed with and tested by: kris@pcbsd.org MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-10-23T02:52:20.450792Z K 7 svn:log V 60 Fix missing space in SEE ALSO section. Submitted by: novel END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-10-23T05:56:59.215571Z K 7 svn:log V 96 Fix an issue that 127/8 is not configured when $ifconfig_DEFAULT is not empty. Spotted by: ume END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2011-10-23T06:23:11.218782Z K 7 svn:log V 147 Add '%' and '@' to the set of characters which can appear in path names. Without this change, freebsd-update refuses to accept 9.0 metadata files. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-10-23T06:34:52.760676Z K 7 svn:log V 226 - Add description that IPv6 configuration will be ignored if $ifconfig_IF_ipv6 is empty. - Move a configuration example "inet6 accept_rtadv" to just after the manual GUA configuration. - Add an example of $ipv6_prefix_IF. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-10-23T07:37:36.941388Z K 7 svn:log V 95 Add support for removing addresses added by ipv6_prefix_hostid_addr_up() upon rc.d/netif stop. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2011-10-23T07:38:55.933608Z K 7 svn:log V 11 Fix typos. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-10-23T09:08:42.220571Z K 7 svn:log V 301 Add etc/rc.d/static_ndp, analogous to etc/rc.d/static_arp. Make sure that static ARP and NDP bindings are set before NETWORKING. As static_ndp is based on static_arp, pass copyright to the project with permission of the original author (delphij@). Reviewed by: delphij@FreeBSD.org MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-23T10:05:25.352254Z K 7 svn:log V 143 Correct flag for uma_zalloc() is M_WAITOK. M_WAIT is an old and deprecated flag from historical mbuf(9) allocator. This is style only change. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-23T10:13:20.684100Z K 7 svn:log V 147 Absense of M_WAITOK in malloc flags for UMA doesn't equals presense of M_NOWAIT. Specify M_NOWAIT explicitly. This fixes sleeping with PF_LOCK(). END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-10-23T10:17:42.437030Z K 7 svn:log V 167 Correctly reassign copyright of etc/rc.d/static_ndp back to delphij@ as the project itself is no legal entity Reported by: Joe Dahl MFC after: 3 days END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-10-23T10:20:31.567823Z K 7 svn:log V 137 Add information about static_ndp_pairs to rc.conf(5) manual page Submitted by: Sergey Kandaurov MFC after: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-23T13:33:10.526238Z K 7 svn:log V 52 Release gabor@ from mentorship and congratulations! END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-23T14:59:54.907138Z K 7 svn:log V 787 Fix from r226623 is not sufficient to close all races in pfsync(4). The root of problem is re-locking at the end of pfsync_sendout(). Several functions are calling pfsync_sendout() holding pointers to pf data on stack, and these functions expect this data to be consistent. To fix this, the following approach was taken: - The pfsync_sendout() doesn't call ip_output() directly, but enqueues the mbuf on sc->sc_ifp's interfaces queue, that is currently unused. Then pfsync netisr is scheduled. PF_LOCK isn't dropped in pfsync_sendout(). - The netisr runs through queue and ip_output()s packets on it. Apart from fixing race, this also decouples stack, fixing potential issues, that may happen, when sending pfsync(4) packets on input path. Reviewed by: eri (a quick review) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-23T15:08:18.392491Z K 7 svn:log V 653 - Fix a bad typo (FreeBSD specific) in pfsync_bulk_update(). Instead of scheduling next run pfsync_bulk_update(), pfsync_bulk_fail() was scheduled. This lead to instant 100% state leak after first bulk update request. - After above fix, it appeared that pfsync_bulk_update() lacks locking. To fix this, sc_bulk_tmo callout was converted to an mtx one. Eventually, all pf/pfsync callouts should be converted to mtx version, since it isn't possible to stop or drain a non-mtx callout without risk of race. - Add comment that callout_stop() in pfsync_clone_destroy() lacks locking. Since pfsync0 can't be destroyed (yet), let it be here. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-23T15:10:15.483848Z K 7 svn:log V 34 Fix indentation, no code changed. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-23T15:15:17.040258Z K 7 svn:log V 166 Merge several fixes to bulk update processing from OpenBSD. Merged revisions: 1.148, 1.149, 1.150. This makes number of states on master/slave to be of a sane value. END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-10-23T16:04:07.031740Z K 7 svn:log V 102 - Fix installation when WITH_BSD_GREP is set to yes Submitted by: Aleksandr Rybalko END K 10 svn:author V 3 rmh K 8 svn:date V 27 2011-10-23T16:27:03.905140Z K 7 svn:log V 126 Conditionalize a pair of FreeBSD GCC extensions so that its CFLAGS are only used with FreeBSD GCC. Approved by: kib (mentor) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-10-23T16:57:10.208084Z K 7 svn:log V 90 Avoid some "Invalid argument" errors in the installer. PR: bin/161926 MFC after: 5 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-23T18:20:51.353701Z K 7 svn:log V 135 MFC: r226398, r226442 Move the allocation of usrbufs down a few lines to avoid leaking it in case of an error. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-23T18:24:55.257384Z K 7 svn:log V 112 MFC: r226398, r226442 Move the allocation of usrbufs down a few lines to avoid leaking it in case of an error. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-23T18:27:53.718984Z K 7 svn:log V 112 MFC: r226398, r226442 Move the allocation of usrbufs down a few lines to avoid leaking it in case of an error. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-23T18:31:24.840982Z K 7 svn:log V 82 MFC: r226406 Properly free resources in case of an error. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-23T18:37:57.097416Z K 7 svn:log V 59 MFC: r226406 Properly free resources in case of an error. END K 10 svn:author V 3 phk K 8 svn:date V 27 2011-10-23T19:46:01.385603Z K 7 svn:log V 476 Add a "-P olddistfiles" facility to prefetch ports distfiles, using an old distfile directory as primary source: mkdir /freebsd/ports/distfiles.old mv /freebsd/ports/distfiles/* /freebsd/ports/distfiles.old sh sysbuild.sh -c $yourconfig -P /freebsd/ports/distfiles.old rm -rf /freebsd/ports/distfiles.old Unfortunately bsd.ports.mk does not attempt to use a hard-link so while this runs you need diskspace for both your old and your "new" distfiles. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-23T20:03:33.376449Z K 7 svn:log V 263 Don't terminate the interactive root mount prompt on mount failure. This restores the previous behaviour. While here, match '?' and '.' inputs exactly and improve the error message. Requested by: avg@ Derived from a patch by: Arnaud Lacombe END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-23T21:37:01.404525Z K 7 svn:log V 92 Remove the stub for faking promotion failure now that the reservations are fully supported. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-23T23:04:39.896296Z K 7 svn:log V 4 MFC END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-24T00:38:09.542351Z K 7 svn:log V 989 Allow to rename file systems without remounting if it is possible. It is possible for file systems with 'mountpoint' preperty set to 'legacy' or 'none' - we don't have to change mount directory for them. Currently such file systems are unmounted on rename and not even mounted back. This introduces layering violation, as we need to update 'f_mntfromname' field in statfs structure related to mountpoint (for the dataset we are renaming and all its children). In my opinion it is worth it, as it allow to update FreeBSD in even cleaner way - in ZFS-only configuration root file system is ZFS file system with 'mountpoint' property set to 'legacy'. If root dataset is named system/rootfs, we can snapshot it (system/rootfs@upgrade), clone it (system/oldrootfs), update FreeBSD and if it doesn't boot we can boot back from system/oldrootfs and rename it back to system/rootfs while it is mounted as /. Before it was not possible, because unmounting / was not possible. MFC after: 2 weeks END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-10-24T01:19:34.114433Z K 7 svn:log V 147 Acquire the pmap lock in order to prevent a race that might lead to the machine-independent layer mistakenly believing that a dirty page is clean. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-24T05:26:40.614301Z K 7 svn:log V 82 Include only when compiling kernel module. MFC after: 2 weeks END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-10-24T07:37:01.365983Z K 7 svn:log V 228 Let net80211 also know about stopped BA sessions. This fixes some issues where the driver assumed that BA resources are still available due to net80211 saying so. PR: 161407, 159768 Tested by: cperciva, rene MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-10-24T08:47:23.835740Z K 7 svn:log V 207 Some dmesg cosmetics: - for the legacy PCI ATA channels move channel number out of the device description, same as it is for ahci(4), siis(4) and mvs(4); - add device description for the ISA ATA channels. END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-10-24T10:35:37.651105Z K 7 svn:log V 98 Only unlock if the lock is exclusive. Reported by: Subbsd Discussed with: kib END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-10-24T10:48:13.686811Z K 7 svn:log V 35 New nullfs(5) test scenario added. END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2011-10-24T12:21:58.502702Z K 7 svn:log V 29 Fix typo MFC after: 1 month END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2011-10-24T12:43:20.448133Z K 7 svn:log V 133 It seems that the warning is much less severe than its message says. The device is certainly added to the list after the first pass. END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2011-10-24T12:59:39.172503Z K 7 svn:log V 70 Apparently, "ada" drives are better treated similarly to "da" drives. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-10-24T13:48:13.145430Z K 7 svn:log V 178 The covered vnode must be reloced if it was unlocked. Remove VOP_ISLOCKED test because of this and also because it can lead to false positives. Tested by: pho MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-10-24T13:53:32.040008Z K 7 svn:log V 310 The only possible error return from null_nodeget() is due to insmntque1 failure (the getnewvnode cannot return an error). In this case, the null_insmntque_dtr() already unlocked the reclaimed vnode, so VOP_UNLOCK() in the nullfs_mount() after null_nodeget() failure is wrong. Tested by: pho MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-10-24T13:56:31.987911Z K 7 svn:log V 196 The use of VOP_ISLOCKED() without a check for the return values can cause false positives. Replace the #ifdef block with the proper ASSERT_VOP_UNLOCKED() assert. Tested by: pho MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-24T14:23:40.877037Z K 7 svn:log V 175 Introduce some new counters which will be used to track which parts of the codebase the driver is currently in. This is prepratory work for further locking/concurrency work. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-24T14:35:31.852605Z K 7 svn:log V 104 Protect NIS client with madvise(2) since this daemon is required for succesful authentication of users. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-24T14:37:26.129012Z K 7 svn:log V 132 Add a function to restart TX DMA after it's been stopped - ath_txq_restart_dma(). This restarts DMA for a queue with frames in it. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-24T14:45:31.819985Z K 7 svn:log V 21 Another thing fixed. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-24T14:50:56.537012Z K 7 svn:log V 13 More updates END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-24T15:50:23.077764Z K 7 svn:log V 206 Stick the imask update behind ATH_LOCK, so it's done atomically. The rest of ath_hal_intrset() calls aren't done behind locks though, neither are the imask updates/fetches. That'll come in a later commit. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-24T17:05:59.953230Z K 7 svn:log V 117 Fix a regression introduced in r218832. For TX status check, driver should use a TX list DMA tag. MFC after: 3 days END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-24T17:09:22.681102Z K 7 svn:log V 74 Add missing bus_dmamap_sync() in setup frame transmit. MFC after: 3 days END K 10 svn:author V 6 emaste K 8 svn:date V 27 2011-10-24T18:29:50.403536Z K 7 svn:log V 265 Avoid printing // for packages that install to / I have some packages that install to / (for whatever reason). Right now we print entries of the form //path/to/file when listing files (pkg_info -L, pkg_info -g etc.) This change avoids printing the redundant / . END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-24T18:35:16.509727Z K 7 svn:log V 79 Put in a temporary band-aid to fix kernel builds when CC=clang, after r226665. END