ƒ³223820 176 835 147 117 308 293 394 189 352 520 372 333 198 167 101 168 536 574 536 519 301 225 237 136 458 143 843 289 290 292 136 388 130 362 183 427 198 121 152 251 232 161 332 359 544 192 508 644 297 241 179 200 283 596 706 239 139 313 181 132 215 2039 1253 381 180 170 243 340 250 237 331 170 167 170 725 202 130 163 335 119 343 423 122 246 139 111 950 159 449 121 562 336 160 122 118 400 244 244 168 259 120 120 138 131 156 177 146 216 214 469 134 247 338 132 646 193 263 266 367 692 170 248 441 136 134 218 180 185 183 361 710 530 663 247 171 309 174 247 196 224 470 543 316 184 259 155 199 330 204 519 262 456 386 304 304 140 672 253 345 154 112 171 121 958 113 539 540 355 119 920 483 140 185 166 144 148 226 K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-06T06:57:07.537121Z K 7 svn:log V 743 MFC r222582: O_FORWARD_IP is only action which depends from the result of lookup of dynamic rules. We are doing forwarding in the following cases: o For the simple ipfw fwd rule, e.g. fwd 10.0.0.1 ip from any to any out xmit em0 fwd 127.0.0.1,3128 tcp from any to any 80 in recv em1 o For the dynamic fwd rule, e.g. fwd 192.168.0.1 tcp from any to 10.0.0.3 3333 setup keep-state When this rule triggers it creates a dynamic rule, but this dynamic rule should forward packets only in forward direction. o And the last case that does not work before - simple fwd rule which triggers when some dynamic rule is already executed. PR: kern/136695, kern/147720, kern/150798 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-06T07:13:28.777144Z K 7 svn:log V 50 MFC r223672: Add support for new UART PCI device. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-07-06T09:43:25.934269Z K 7 svn:log V 21 Add missing unlocks. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-07-06T15:09:52.355458Z K 7 svn:log V 211 Handle a race between device_pager and devsw in a more graceful manner: return an error code rather than panic the kernel. Sponsored by: Sandvine Incorporated Reviewed by: kib Tested by: pho MFC after: 2 weeks END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-07-06T15:18:32.726392Z K 7 svn:log V 196 Conditionally compile in the IPv4/IPv6 address family support. Test it with feature_present(3), so that we do not end up with passing an unsupported version to NgSendMsg(3). Approved by: glebius END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-07-06T20:06:44.798521Z K 7 svn:log V 299 All the racct_*() calls need to happen with the proc locked. Fixing this won't happen before 9.0. This commit adds "#ifdef RACCT" around all the "PROC_LOCK(p); racct_whatever(p, ...); PROC_UNLOCK(p)" instances, in order to avoid useless locking/unlocking in kernels built without "options RACCT". END K 10 svn:author V 4 neel K 8 svn:date V 27 2011-07-06T21:40:48.038741Z K 7 svn:log V 96 Get rid of redundant initialization of 'dmask'. It was being re-initialized shortly afterwards. END K 10 svn:author V 5 jamie K 8 svn:date V 27 2011-07-06T21:49:56.073105Z K 7 svn:log V 257 Don't report errors for the exit status of processes that are killed as part of jail removal (IP_STOP_TIMEOUT). Note a jail as "removed" even if it wasn't jail_remove() that did the deed, e.g. if it already went away because all its processes were killed. END K 10 svn:author V 4 neel K 8 svn:date V 27 2011-07-06T22:38:09.411692Z K 7 svn:log V 426 'bhyveload' is a userspace FreeBSD loader that can load the kernel + metadata inside a BHyVe-based virtual machine. It is a thin wrapper on top of userboot.so which is a variant of the FreeBSD loader packaged as a shared library. 'bhyveload' provides callbacks that are utilized by userboot.so to do things like console i/o, disk i/o, set virtual machine registers etc. Thanks for Doug Rabson (dfr@) for making this happen. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-07T00:14:20.193151Z K 7 svn:log V 274 MFC: r223436 Fix the new NFSv4 client so that it uses the same uid as was used for doing a mount when performing system operations on AUTH_SYS mounts. This resolved an issue when mounting a Linux server. Found during testing at the recent NFSv4 interoperability Bakeathon. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-07T00:30:34.936339Z K 7 svn:log V 235 MFC: r223441 Plug an mbuf leak in the new NFS client that occurred when a server replied NFS3ERR_JUKEBOX/NFS4ERR_DELAY to an rpc. This affected both NFSv3 and NFSv4. Found during testing at the recent NFSv4 interoperability Bakeathon. END K 10 svn:author V 3 jfv K 8 svn:date V 27 2011-07-07T00:46:50.857664Z K 7 svn:log V 105 A fix to make the LINT-NOINET build happy, if this works out the ixgbe driver should be changed as well. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-07-07T01:22:50.059025Z K 7 svn:log V 73 Add an extra tab between fs_file and fs_vfstype Reviewed by: nwhitehorn END K 10 svn:author V 8 andreast K 8 svn:date V 27 2011-07-07T05:07:25.725899Z K 7 svn:log V 5 MFC. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-07-07T08:33:58.415735Z K 7 svn:log V 76 MFC r223699: Add ID for Marvell 88SE9125 SATA controller. PR: kern/157843 END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-07T09:29:11.729856Z K 7 svn:log V 444 MFC r222806: Make a behaviour of the libalias based in-kernel NAT a bit closer to how natd(8) does work. natd(8) drops packets only when libalias returns PKT_ALIAS_IGNORED and "deny_incoming" option is set, but ipfw_nat always did drop packets that were not aliased, even if they should not be aliased and just are going through. PR: kern/122109, kern/129093, kern/157379 Submitted by: Alexander V. Chernikov (previous version) END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-07T09:32:43.733199Z K 7 svn:log V 482 MFC r222808: Sync ng_nat with recent (r222806) ipfw_nat changes: Make a behaviour of the libalias based in-kernel NAT a bit closer to how natd(8) does work. natd(8) drops packets only when libalias returns PKT_ALIAS_IGNORED and "deny_incoming" option is set, but ipfw_nat always did drop packets that were not aliased, even if they should not be aliased and just are going through. Also add SCTP support: mark response packets to skip firewall processing. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-07T09:42:32.734853Z K 7 svn:log V 444 MFC r222806: Make a behaviour of the libalias based in-kernel NAT a bit closer to how natd(8) does work. natd(8) drops packets only when libalias returns PKT_ALIAS_IGNORED and "deny_incoming" option is set, but ipfw_nat always did drop packets that were not aliased, even if they should not be aliased and just are going through. PR: kern/122109, kern/129093, kern/157379 Submitted by: Alexander V. Chernikov (previous version) END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-07T09:51:31.800442Z K 7 svn:log V 427 MFC r222808 (except SCTP support): Sync ng_nat with recent (r222806) ipfw_nat changes: Make a behaviour of the libalias based in-kernel NAT a bit closer to how natd(8) does work. natd(8) drops packets only when libalias returns PKT_ALIAS_IGNORED and "deny_incoming" option is set, but ipfw_nat always did drop packets that were not aliased, even if they should not be aliased and just are going through. END K 10 svn:author V 5 andre K 8 svn:date V 27 2011-07-07T10:37:14.037438Z K 7 svn:log V 206 Remove the TCP_SORECEIVE_STREAM compile time option. The use of soreceive_stream() for TCP still has to be enabled with the loader tuneable net.inet.tcp.soreceive_stream. Suggested by: trociny and others END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-07T11:59:51.562243Z K 7 svn:log V 133 Add again the checking for log_arp_permanent_modify that was by accident removed in the r186119. PR: kern/154831 MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-07T13:37:46.650955Z K 7 svn:log V 144 Always skip the kernel idle process if requested, it is not specific to the 'CPU' mode. PR: bin/158677 Reported by: arundel MFC after: 3 days END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-07-07T15:41:40.161667Z K 7 svn:log V 42 Fix memset sizeofs Reviewed by: bschmidt END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-07-07T17:00:42.508097Z K 7 svn:log V 360 Make a comment more accurate. This comment refers to CAP_NT_SMBS, which does not exist; it should refer to SMB_CAP_NT_SMBS. Fixing this comment makes it easier for people interested in Capsicum to grep around for capability rights, whose identifiers are of the form 'CAP_[A-Z_]'. Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-07-07T17:44:42.413115Z K 7 svn:log V 49 Style fix - macros are supposed to be uppercase. END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-07-07T18:07:03.558520Z K 7 svn:log V 745 Ensure that kqueue is not inherited across fork(). Modify the existing unit test (from libkqueue) which already exercises process events via fork() and kill(). Now, the child process simply checks that the 'kqfd' descriptor is invalid. Some minor modifications were required to make err() work correctly. It seems that this test was imported using the output of a configure script, but config.h was not included in key places, nor was its syntax correct (need '#define HAVE_FOO 1' rather than '#define HAVE_FOO'). Finally, change main() to run the "proc" suite by default, but widened the '#if TODO' in proc.c to include the non-functioning test event_trigger(). Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2011-07-07T20:02:09.226840Z K 7 svn:log V 192 Grab the rlock before checking if our interface is enabled, it could be possible to hit a dead pointer when changing interfaces. PR: kern/156978 Submitted by: Andrew Boyer MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-07T20:59:42.233177Z K 7 svn:log V 192 Fix the /etc/rc.d/nfsd script so that it no longer uses the /etc/rc.d/nfsserver script to load the old nfs server module. Tested by: sgk at troutmask.apl.washington.edu Reviewed by: rc (hrs) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-07T22:30:12.575404Z K 7 svn:log V 194 MFC: r221333 Remove usr/include/nfs/krpc.h and usr/include/nfs/nfsdiskless.h from ObsoleteFiles.inc, since these files have been reincarnated in the new NFS implementation. Discussed with dim@. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-07-07T23:17:56.636207Z K 7 svn:log V 41 Note the PF version. Discussed with: bz END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-07T23:26:28.764260Z K 7 svn:log V 291 MFC r222832: Add a special mount option "failok" to indicate that the administrator wants the system to proceed to boot without bailing out into single user mode, even when the file system can not be successfully mounted. This option is implemented in mount(8) and not passed into kernel. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-07-07T23:32:44.346436Z K 7 svn:log V 35 MFC: r223849: note the PF version. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-08T00:49:50.971363Z K 7 svn:log V 264 Delete the /etc/rc.d/nfsserver script, since it is no longer used by /etc/rc.d/nfsd and it is no longer necessary to load the old nfs server by default, when nfs_server_enable="YES". Tested by: sgk at troutmask.apl.washington.edu Reviewed by: rc (Andrzej Tobola) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-08T01:32:04.186996Z K 7 svn:log V 89 - Partly fix fixed string matching by dropping weird code that is not necessary at all END K 10 svn:author V 6 avatar K 8 svn:date V 27 2011-07-08T01:35:33.723504Z K 7 svn:log V 331 Fixing building bustage on 32 bits platforms when WARNS >= 2. Note that this fix only applies to zalloc.c, the other part of libstand such like qdivrem.c still gives compilation warnings on sparc64 tinderbox builds; therefore, WARNS level isn't changed for now. Submitted by: Garrett Cooper Reviewed by: bde END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-07-08T03:16:45.084908Z K 7 svn:log V 101 Add Indexes to options to fix things that access archive/. While here, add a work area for studies. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-07-08T03:21:28.646776Z K 7 svn:log V 25 Remove an obsolete line. END K 10 svn:author V 2 jh K 8 svn:date V 27 2011-07-08T06:28:35.672905Z K 7 svn:log V 61 MFC r222755: Pass correct size to write(2). PR: bin/155915 END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-07-08T07:38:45.481495Z K 7 svn:log V 154 MFC r223506: Add support for string values with white spaces for ifconfig(8) parameters accepting them (such as description, group). PR: conf/156675 END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-07-08T09:17:25.520653Z K 7 svn:log V 140 MFC r223620: Allow mountpoints as arguments for the 'zfs get' command. Illumos-gate revision: 13295 Obtained from: Illumos (Feature #510) END K 10 svn:author V 3 zec K 8 svn:date V 27 2011-07-08T09:18:50.413423Z K 7 svn:log V 69 MFC r222834: Set curvnet context in a callout-trigerred code path. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-07-08T09:20:32.348831Z K 7 svn:log V 240 MFC r223622: Disable vdev cache (readahead) by default. The vdev cache is very underutilized (hit ratio 30%-70%) and may consume excessive memory on systems with many vdevs. Illumos-gate revision: 13346 Obtained from: Illumos (Bug #175) END K 10 svn:author V 3 zec K 8 svn:date V 27 2011-07-08T09:38:33.455441Z K 7 svn:log V 266 Permit ARP to proceed for IPv4 host routes for which the gateway is the same as the host address. This already works fine for INET6 and ND6. While here, remove two function pointers from struct lltable which are only initialized but never used. MFC after: 3 days END K 10 svn:author V 5 andre K 8 svn:date V 27 2011-07-08T10:50:13.781089Z K 7 svn:log V 449 In the experimental soreceive_stream(): o Move the non-blocking socket test below the SBS_CANTRCVMORE so that EOF is correctly returned on a remote connection close. o In the non-blocking socket test compare SS_NBIO against the so->so_state field instead of the incorrect sb->sb_state field. o Simplify the ENOTCONN test by removing cases that can't occur. Submitted by: trociny (with some further tweaks by committer) Tested by: trociny END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-08T10:58:56.887471Z K 7 svn:log V 95 Add new USB 3G driver. Submitted by: PseudoCylon MFC after: 14 days END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-07-08T12:16:30.978084Z K 7 svn:log V 410 Clarify the meaning of a test. Rather than using err() if either of two failure conditions fires (which can produce spurious error messages), just use errx() if the one condition that really matters fires. In practice, this single test is enough to detect the failure mode we're looking for (kqueue being inherited across fork). Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc END K 10 svn:author V 8 jonathan K 8 svn:date V 27 2011-07-08T12:19:25.335298Z K 7 svn:log V 546 Fix the "passability" test in fdcopy(). Rather than checking to see if a descriptor is a kqueue, check to see if its fileops flags include DFLAG_PASSABLE. At the moment, these two tests are equivalent, but this will change with the addition of capabilities that wrap kqueues but are themselves of type DTYPE_CAPABILITY. We already have the DFLAG_PASSABLE abstraction, so let's use it. This change has been tested with [the newly improved] tools/regression/kqueue. Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-07-08T12:50:35.499495Z K 7 svn:log V 200 Merge from head/ 220787: It is already seven years since mbuf allocator uses same M_WAITOK/M_NOWAIT flags as malloc(9). Update manual page. Submitted by: Vadim Goncharov END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-07-08T12:54:10.197411Z K 7 svn:log V 144 Merge from head/ 220796: Pullup up to TCP header length before matching against 'tcpopts'. PR: kern/156180 Reviewed by: luigi END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-07-08T13:04:47.721845Z K 7 svn:log V 83 Merge from head/ 220802, 220804: Whitespace fixes. Checked with: md5, diff -w END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-08T13:45:53.319653Z K 7 svn:log V 107 Note that -a, -C, -H, -j, and -z are also toggles. PR: bin/158682 Reported by: arundel MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-07-08T14:26:42.350089Z K 7 svn:log V 186 Merge from head/ 220835,220914,223079,223185,223416,223499: Rewrite NAT configuration parser, so that memory allocation size is calculated dynamically. PR: kern/143653 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-07-08T14:30:06.294536Z K 7 svn:log V 499 Merge from head/ 220800,220837,220914: Log: LibAliasInit() should allocate memory with M_WAITOK flag. Modify it and its callers. Log: - Rewrite functions that copyin/out NAT configuration, so that they calculate required memory size dynamically. - Fix races on chain re-lock. - Introduce new field to ip_fw_chain - generation count. Now utilized only in the NAT configuration, but can be utilized wider in ipfw. - Get rid of NAT_BUF_LEN in ip_fw.h PR: kern/143653 END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-07-08T16:30:54.997261Z K 7 svn:log V 610 Implement basic support for memory attributes. At this time we only distinguish between UC and WB memory so that we can map the page to either a region 6 address (for UC) or a region 7 address (for WB). This change is only now possible, because previously we would map regions 6 and 7 with 256MB translations and on top of that had the kernel mapped in region 7 using a wired translation. The introduction of the PBVM moved the kernel into its own region and freed up region 7 and allowed us to revert to standard page-sized translations. This commit inroduces pmap_page_to_va() that respects the attribute. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-08T17:45:38.073059Z K 7 svn:log V 146 Add device ID for the Davicom 56PDV PCI Modem. PR: kern/75132 Submitted by: Mike Tancsa @ Sentex (older patch against puc(4)) MFC after: 1 week END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-07-08T20:41:07.146936Z K 7 svn:log V 47 style(9) and cleanup fixes. MFC after: 1 week END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-07-08T20:41:12.837898Z K 7 svn:log V 220 Add an option to have a fail point term only execute when run by a specified pid. This is helpful for automated testing involving a global knob that would otherwise be executed by many other threads. MFC after: 1 week END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-07-09T07:43:56.106958Z K 7 svn:log V 87 - Add xdr_sizeof(3) to libc - Document xdr_sizeof(3); from NetBSD Discussed with: kib END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-07-09T08:42:23.337674Z K 7 svn:log V 38 Add missing "swapuse" resource limit. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-09T11:22:23.549108Z K 7 svn:log V 117 MFC r223727 and r223736: - Add quirk for non-compliant USB MIDI hardware. - Reduce MIDI TX buffer size to 512 bytes. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-09T12:02:40.487927Z K 7 svn:log V 1946 MFC r221363,221967,222263,222264,222630,222631,222819,223158,223355: r221363: Add "-a alignment" option to gpart(8). When it specified gpart(8) tries to align partition start offset and size to be multiple of alignment value. r221967: Some partitioning schemes want to have partitions that are aligned with geometry. And they do recalculation of user specified parameters. MBR, PC98, VTOC8, EBR schemes are doing that. For these schemes an auto alignment feature (ie. gpart add -a alignment) would not work. But it can work for GPT and BSD schemes. BSD scheme usualy is created inside MBR, so we can use knowledge about offset of MBR partition to calculate aligned values for BSD partitions. Use "offset" attribute of the parent provider for better alignment. r222263: Fix calculation of alignment for odd values. Also do not change value when it is already aligned. r222264: Simplify ALIGNDOWN macro. r222630: Use stripesize and stripeoffset in the automatic calculation of partition offsets. If user requests specific alignment and provider's stripesize is not zero, then use a least common multiple from the stripesize and user specified value. Also fix "gpart resize" implementation: do not try to align the partition size, because the start offset may be not aligned. Instead align the end offset and then calculate size. Also use stripesize and stripeoffset for "gpart resize" command. r222631: Always use LCM when stripesize > 0. r222819: Do not use LCM from stripesize and user specified alignment value. When user wants have specific alignment - do what user wants. Use stripesize as alignment value in case, when some of gpart's arguments are ommitted for automatic calculation. Suggested by: mav r223158: Add "alignment" param to the request before calling gpart_autofill(). r223355: The "size" param needs no adjusting to stripeoffset. Reported by: Kris Moore END K 10 svn:author V 2 se K 8 svn:date V 27 2011-07-09T12:05:53.383506Z K 7 svn:log V 1160 Make /bin/expr support 64bit numeric range and range checks by default, again. This brings back the behaviour of expr in FreeBSD-4, which had been reverted due to an assumed incompatbility with POSIX.1 for FreeBSD-5. This issue has been discussed in the freebsd-standards list, and the consensus was, that POSIX.1 is in fact not violated by this extension, since it affects only cases of POSIX undefined behaviour (overflow of signed long). Other operating systems did upgrade their versions of expr to support 64bit range, after it had been initially brought to FreeBSD. They have used it for a decade without problems, meanwhile. The -e option is retained, but it will only select less strict checking of numeric parameters (leading white-space, leading "+" are allowed and skipped, an empty string is considered to represent 0 in numeric context.) The call of check_utility_compat() as a means of establishing backwards compatibility with FreeBSD-4 is considered obsolete, but preserved in this commit. It is expected to be removed in a later revision of this file. Reviewed by: bde, das, jilles MFC after: 2 month (those parts that do not violate POLA) END K 10 svn:author V 2 se K 8 svn:date V 27 2011-07-09T12:14:57.130967Z K 7 svn:log V 289 Some refactoring for easier maintenance of the code. This is a follow-up to re-establishment of 64bit arithmetic, but is committed separately, to not obscure that conversion. This commit does not change the observed behaviour of expr in any way. Style will be fixed in a follow-up commit. END K 10 svn:author V 2 se K 8 svn:date V 27 2011-07-09T12:20:15.464136Z K 7 svn:log V 89 Fix style, since this file has just been touched in a major way. No actual code changes. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-09T14:29:23.649921Z K 7 svn:log V 78 Implement bitcount16. Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-09T14:30:13.118776Z K 7 svn:log V 150 Implement pci_find_class(9), the function to find a pci device by its class. Sponsored by: The FreeBSD Foundation Reviewed by: jhb MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-09T14:41:28.639773Z K 7 svn:log V 247 Implement a helper functions to locally set thread-private flag, and restore it to the previous state. Note that only setting a flag locally is supported. Sponsored by: The FreeBSD Foundation Reviewed by: alc (previous version) MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-09T14:42:45.619891Z K 7 svn:log V 157 Use helper functions instead of manually managing TDP_INBDFLUSH. Sponsored by: The FreeBSD Foundation Reviewed by: alc (previous version) MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-09T15:16:07.980897Z K 7 svn:log V 144 Use 'curthread_pflags' instead of 'thread_pflags' to signify that only curthread can be operated upon. Requested by: attilio MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-09T15:21:10.445437Z K 7 svn:log V 238 Add a facility to disable processing page faults. When activated, uiomove generates EFAULT if any accessed address is not mapped, as opposed to handling the fault. Sponsored by: The FreeBSD Foundation Reviewed by: alc (previous version) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-09T15:24:12.460724Z K 7 svn:log V 78 Document copyin_nofault, copyout_nofault, uiomove_nofault. Submitted by: alc END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-07-09T18:05:27.973646Z K 7 svn:log V 75 Remove manual pages for functions that no longer exist. MFC after: 1 week END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-07-09T18:09:57.833212Z K 7 svn:log V 78 Oops. These changes should have been included in r223891. MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-09T18:47:51.990317Z K 7 svn:log V 629 Fix the definition for PCPU_NAME_LEN, which is intended to fit ("CPU %d", cpuid) where cpuid <= MAXCPU. 1. sizeof(__XSTRING(MAXCPU) + 1) is a typo: typeof(__XSTRING(...) + 1) is 'char *', so sizeof() will return the size of the pointer, not the size of the string contents. The proper expression should be 'sizeof(__XSTRING(MAXCPU)) + 1'. 2. One should not add one, but substract it: sizeof() accounts for the trailing '\0' and we have two sizeof's, so the size of one '\0' should be substracted -- this will give the maximal string buffer length for CPU with its number, no less, no more. Submitted by: rea END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-07-09T19:05:28.999125Z K 7 svn:log V 109 vm_map_clean() was long ago renamed to vm_map_sync(). Also, it no longer acquires Giant. MFC after: 1 week END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-07-09T19:09:20.117429Z K 7 svn:log V 38 Remove the old vm_map_clean man page. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-09T20:16:52.816825Z K 7 svn:log V 66 Remove reviewed line from copyright header. Suggested by: joel @ END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-07-09T23:01:54.042092Z K 7 svn:log V 234 Per request of the docs team, install docs as packages, instead of via the normal distfile mechanism. Thanks to Marc Fonvieille for the patch and for putting up with me taking entirely too long to commit this! Submitted by: blackend END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-07-09T23:03:52.918281Z K 7 svn:log V 19 Minor style fixes. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-07-09T23:05:50.366707Z K 7 svn:log V 242 Add a console driver for the pSeries hypervisor virtual UART. This is a total hack (it should become MP safe, actually be part of uart(4), etc.) but it does work and is *infinitely* faster than the OF console driver when used inside of QEMU. END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2011-07-10T00:41:31.746326Z K 7 svn:log V 325 Allow disk partitions associated with UFS read-only mounted filesystems to be opened for writing. This functionality used to be special-cased for just the root filesystem, but with this change is now available for all UFS filesystems. This change is needed for journaled soft updates recovery. Discussed with: Jeff Roberson END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2011-07-10T00:53:04.878920Z K 7 svn:log V 25 Update tags build script END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2011-07-10T05:34:49.703958Z K 7 svn:log V 148 When first creating snapshots, we may free some blocks within it. These blocks should not have TRIM applied to them. Submitted by: Kostik Belousov END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-07-10T06:57:00.413455Z K 7 svn:log V 45 Add a HISTORY section Requested by: arundel END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-07-10T07:14:32.974333Z K 7 svn:log V 17 style(9) cleanup END K 10 svn:author V 6 avatar K 8 svn:date V 27 2011-07-10T07:25:34.900753Z K 7 svn:log V 854 - Removing some unneeded definitions of NULL(cruft related to 1970's C). In C90, NULL is guaranteed to be declared in and also in . Though the correct way to define NULL in FreeBSD is to include , other parts of libstand still require to build; therefore, we keep in stand.h and add a note about this; - Removing no longer used 'Prototype' definition. Quote from bde@: 'Cruft related to getting incomplete struct declarations within prototypes forward-declared before the structs. It doesn't mean "prototype" but only part of a prototype-related hack. No longer used.' - Replacing iaddr_t with uintptr_t; - Removing use of long double to determine alignment. Use a fixed 16 byte alignment instead; Reviewed by: bde Obtained from: DragonFlyBSD (partially) MFC after: 1 month END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-07-10T14:03:13.776080Z K 7 svn:log V 65 Revert the previous change and add xdr_sizeof Requested by: bde END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-07-10T14:20:11.286605Z K 7 svn:log V 353 posix_spawn: If an error is detected in the child process, reap the zombie. Formerly, in this case an error was returned but the pid was also returned to the application, requiring the application to use unspecified behaviour (the returned pid in error situations) to avoid zombies. Now, reap the zombie and do not return the pid. MFC after: 2 weeks END K 10 svn:author V 7 antoine K 8 svn:date V 27 2011-07-10T15:01:14.208682Z K 7 svn:log V 25 Add more obsolete files. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-07-10T15:02:25.536646Z K 7 svn:log V 466 sh(1): Extend documentation about subshells. Because sh executes commands in subshell environments without forking in more and more cases (particularly from 8.0 on), it makes sense to describe subshell environments more precisely using ideas from POSIX, together with some FreeBSD-specific items. In particular, the hash and times builtins may not behave as if their state is copied for a subshell environment while leaving the parent shell environment unchanged. END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-10T16:05:51.023486Z K 7 svn:log V 241 - Add a small test program and Makefile to test standard-conformance of the regex code. It uses a simple file format to store a string, a pattern and the expected matching offsets. The expected matches are compared to the actual ones. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-10T18:57:35.896356Z K 7 svn:log V 68 Update locking annotations for the struct vnode. MFC after: 3 days END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2011-07-10T20:15:21.484487Z K 7 svn:log V 27 Cross reference nanobsd(8) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-10T20:45:13.239135Z K 7 svn:log V 26 Style. MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-10T20:49:13.453334Z K 7 svn:log V 307 Extract the code to translate VM error into errno, into an exported function vm_mmap_to_errno(). It is useful for the drivers that implement mmap(2)-like functionality, to be able to return error codes consistent with mmap(2). Sponsored by: The FreeBSD Foundation No objections from: alc MFC after: 1 week END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-07-10T22:09:34.608486Z K 7 svn:log V 147 MFC r223683: Document two known hardware errata which requires manual link configuration. Submitted by: Aries Lee (arieslee <> jmicron com) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-07-10T22:09:53.807549Z K 7 svn:log V 147 MFC r223683: Document two known hardware errata which requires manual link configuration. Submitted by: Aries Lee (arieslee <> jmicron com) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-07-10T23:47:03.233341Z K 7 svn:log V 74 Make sure we load kernel modules from the same path as the running kernel END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2011-07-11T05:16:12.847492Z K 7 svn:log V 161 MFC r223902: When first creating snapshots, we may free some blocks within it. These blocks should not have TRIM applied to them. Submitted by: Kostik Belousov END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-11T05:17:46.572089Z K 7 svn:log V 29 Include sys/sbuf.h directly. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-11T05:19:28.651434Z K 7 svn:log V 29 Include sys/sbuf.h directly. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-11T05:22:31.296869Z K 7 svn:log V 47 Include sys/sbuf.h directly. Reviewed by: pjd END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-11T05:31:52.985452Z K 7 svn:log V 35 Use strlcpy(). MFC after: 1 month END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-11T05:40:46.729536Z K 7 svn:log V 60 Use a pair of parentheses to ensure right evaluation order. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-11T05:46:15.980137Z K 7 svn:log V 81 Match size_t and ssize_t by using %zu and %zd instead of %d. MFC after: 1 month END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-11T05:50:24.317664Z K 7 svn:log V 50 Use %zu when printing size_t. MFC after: 1 month END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-11T05:57:49.807453Z K 7 svn:log V 119 peeraddr is only used in sizeof() evaluations, so instead of declaring it a variable, use typedef. MFC after: 1 month END K 10 svn:author V 3 ray K 8 svn:date V 27 2011-07-11T08:23:59.803026Z K 7 svn:log V 121 Support of Ralink Ethernet MAC, used in RT3050F/RT3052F and I belive in other Ralink SoCs. Approved by: adrian (mentor) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-07-11T08:24:36.527430Z K 7 svn:log V 374 Fix the interpreter for: Jul/Sat+3 Every third saturday of July - Jul/Sat+3 which was able to be done via: Jul/SatThird Every third saturday of July - Jul/SatThird Add interpreters for: SatFourth Every third saturday of each month - SatFourth Sat+4 Every third saturday of each month - Sat+4 Sat Every saturday of each month - Sat MFC after: 2 weeks END K 10 svn:author V 3 ray K 8 svn:date V 27 2011-07-11T08:42:09.713379Z K 7 svn:log V 42 Fix typo, lost 0 in SYSCTL_ADD_INT usage. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-11T10:02:27.481091Z K 7 svn:log V 155 Remove include of sys/sbuf.h from geom/geom.h. sbuf support is not always required for geom/geom.h users, and no need to depend from it. PR: kern/158398 END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-07-11T10:41:08.950289Z K 7 svn:log V 243 ncal(1) highlights the current date (or a date provided via parameter) even if stdout is not a tty. If stdout is not a tty the data is normally processed by other tools and no control sequences are expected. PR: bin/158580 MFC after: 1 week END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-07-11T10:42:36.460068Z K 7 svn:log V 38 Fix typo in order of markup and text. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-11T12:51:35.730565Z K 7 svn:log V 554 Use full buffer size in read(2) call, there is no need to preserve the last byte of the buffer. Since we call refresh_device_tbl() for any devctl event types - no need to check the first byte of buffer. Remove these checks. Also remove logging for the case of unknown devd message. It incorrectly triggers when all devctl events are not fit into one buffer and part of unread data will be read in the next pass. When length of data readed from devctl is equal to sizeof(buf), then try to read from socket again, to read full data. MFC after: 2 weeks END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-07-11T13:10:34.939936Z K 7 svn:log V 101 Update vendor/xz from v5.0 branch (post-5.0.3) Git commit: edf339227a966f24aebe1845fcca9429b8f6e318 END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-07-11T14:15:27.361457Z K 7 svn:log V 171 Update xz to git snapshot of v5.0 branch as of 20110711 (post-5.0.3) For architectures with __NO_STRICT_ALIGNMENT define TUKLIB_FAST_UNALIGNED_ACCESS MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-11T16:48:52.289404Z K 7 svn:log V 173 Allow per-CPU statistics to be toggled at runtime via the 'P' key. While here, make -P a toggle similar to other options such as -I. Reviewed by: arundel MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-11T16:51:29.839055Z K 7 svn:log V 274 Add a leading space to the status messages output after toggling the 'C' and 'H' flags at runtime. This matches messages output for other toggles which leave the first column in the message blank to hold the cursor. PR: bin/158775 Submitted by: arundel MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-11T20:43:59.241880Z K 7 svn:log V 596 Since r219452 the alignment of __dmadat has changed, revealing that fsread() bogusly casts its contents around causing alignment faults on sparc64 and most likely also on at least powerpc. Fix this by copying the contents bytewise instead as partly already done here. Solving this the right way costs some space, i.e. 148 bytes with GCC and 16 bytes with clang on x86 there are still some bytes left there though, and an acceptable hack which tricks the compiler into only using a 2-byte alignment instead of the native one when accessing the contents turned out to even take up more space that. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-07-11T22:01:39.901929Z K 7 svn:log V 76 Fix run-time breakage when encoutering invalid input-data. PR: bin/157718 END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-07-12T00:31:11.735292Z K 7 svn:log V 152 If one's message is longer than the buffer size, then we reset 'cnt' at the wrong point and the actual column # get out of sync across the buffer size. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-07-12T01:16:43.749793Z K 7 svn:log V 344 MFC r223616: Incorporate vendor commit ecdc5c0a7f7591a7cd4a: In userland, sign extend the offset for JA instructions. We currently use that to implement "ip6 protochain", and "pc" might be wider than "pc->k", in which case we need to arrange that "pc->k" be sign-extended, by casting it to bpf_int32. PR: kern/157188 Submitted by: plosher END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-07-12T03:46:37.426197Z K 7 svn:log V 40 Cronjob to cleanup /tmp dir on clients. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-07-12T03:47:07.909455Z K 7 svn:log V 38 Script to cleanup /tmp dir on client. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-12T08:20:15.592333Z K 7 svn:log V 122 According to the OpenSolaris source the PCI latency and the cache line size should be set for Sun ERI. Tested by: yongari END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-12T09:03:38.272662Z K 7 svn:log V 89 Add SIGINFO handler. Reviewed by: kib Obtained from: NetBSD (partly) MFC after: 2 weeks END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-12T10:07:07.950919Z K 7 svn:log V 94 Use NULL instead of 0 for third argument of sigaction(2). Pointed by: kib MFC after: 2 weeks END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-07-12T11:47:08.769154Z K 7 svn:log V 88 Truncate link addresses like it is done for any other address type. MFC after: 4 weeks END K 10 svn:author V 3 zec K 8 svn:date V 27 2011-07-12T12:29:32.834656Z K 7 svn:log V 268 MFC r223862: Permit ARP to proceed for IPv4 host routes for which the gateway is the same as the host address. This already works fine for INET6 and ND6. While here, remove two function pointers from struct lltable which are only initialized but never used. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-12T13:06:44.606868Z K 7 svn:log V 614 Correct r223648; as gem_init_locked() was calling gem_setladrf(), which sets GEM_MAC_RX_CONFIG based on sc_mac_rxcfg which in turn is initialized to zero, before reading the supposedly default configuration we were effectively not basing sc_mac_rxcfg and thus GEM_MAC_RX_CONFIG on the default configuration. Solve this by calling gem_setladrf() after reading in the default configuration of GEM_MAC_RX_CONFIG. This also avoids the need to distinguish whether gem_setladrf() should enable the RX MAC again and should be slightly more correct as we're now doing all of the RX MAC configuration in the intended step. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-07-12T13:16:46.743719Z K 7 svn:log V 438 MFC r223623: Add a new "REFCOMPRESSRATIO" property. For snapshots, this is the same as COMPRESSRATIO, but for filesystems/volumes, the COMPRESSRATIO is based on the data "USED" (ie, includes blocks in children, but not blocks shared with the origin). This is needed to figure out how much space a filesystem would use if it were not compressed (ignoring snapshots). Illumos-gate revision: 13387 Obtained from: Illumos (Feature #1092) END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-12T13:22:17.165192Z K 7 svn:log V 567 Partially merge r223648, r223648 and r223949 from gem(4): - Consistently use the newly introduced sc_mac_rxcfg throughout the driver instead of reading the old content of CAS_MAC_RX_CONF. - Increment if_iqdrops instead of if_ierrors in case of RX buffer allocation failure. - According to the Cassini datasheet the RX MAC should also be disabled in cas_setladrf() before changing its configuration. - Add error messages to gem_disable_{r,t}x() and take advantage of these throughout the driver instead of duplicating their functionality all over the place. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-12T13:28:39.563613Z K 7 svn:log V 154 Properly align the end of a candidate back region based on the window's granularity when growing a PCI-PCI window up. Tested by: dougb MFC after: 3 days END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-07-12T13:46:13.195544Z K 7 svn:log V 75 Provide a simple manual page for libprocstat(3). Reviewed by: jilles, gjb END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-12T14:04:36.694862Z K 7 svn:log V 211 Try and fix the exports.5 man page so that it clarifies how NFSv4 exports are handled. Improved by informal review comments from mckusick, kudak at mit.edu and bde. This is a content change. MFC after: 2 weeks END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2011-07-12T14:18:54.574510Z K 7 svn:log V 79 Sort Xr's by number then by name Nitpicked by: niclas zeising at gmail.com :) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-07-12T14:28:13.782897Z K 7 svn:log V 154 MFC 182966: Display the sum of the runtime of all the threads in a process when it's multithreaded instead of picking the time of the first thread found. END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2011-07-12T14:43:49.332115Z K 7 svn:log V 99 Fix media reporting for dual port CX4 myri10ge NICs MFC after: 7 days Sponsored by: Myricom, Inc. END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2011-07-12T15:07:17.867700Z K 7 svn:log V 126 Update mxge(4) firmware to the latest version available from Myricom (1.4.53a). MFC after: 7 days Sponored by: Myricom, Inc. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-12T17:55:34.486185Z K 7 svn:log V 374 - Add a missing shift in schizo_get_timecount(). This happened to be non-fatal as STX_CTRL_PERF_CNT_CNT0_SHIFT actually is zero, if we were using the second counter in the upper 32 bits this would be required though as the MI timecounter code doesn't support 64-bit counters/counter registers. - Remove a redundant NULL assignment from the timecounter initialization. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-12T17:56:42.403256Z K 7 svn:log V 447 - Current testing shows that (ab)using the JBC performance counter in bus cycle mode as timecounter just works fine. My best guess is that a firmware update has fixed this, check at run-time whether it advances and use a positive quality if it does. The latter will cause this timecounter to be used instead of the tick counter based one, which just sucks for SMP. - Remove a redundant NULL assignment from the timecounter initialization. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-12T18:02:37.075876Z K 7 svn:log V 220 - Remove redundant timecounter masking from counter_get_timecount(). - Zero the timecounter when allocation so we don't need to initialize unused members and remove a now redundant NULL assignment. Submitted by: jkim END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-12T18:10:56.779299Z K 7 svn:log V 89 Remove NULL assignments which are redundant for static timecounters. Submitted by: jkim END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-07-12T19:29:29.180876Z K 7 svn:log V 163 The socket API only specifies SCTP for SOCK_SEQPACKET and SOCK_STREAM, but not SOCK_DGRAM. So don't register it for SOCK_DGRAM. While there, fix some indentation. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-07-12T19:48:21.433460Z K 7 svn:log V 59 Mention myself in the AUTHORS section. Requested by: stas END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-07-12T20:14:03.541527Z K 7 svn:log V 103 Don't check for SOCK_DGRAM anymore. Also remove multicast related code which is not necessary anymore. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-12T20:37:18.171232Z K 7 svn:log V 237 Implement an RFTSIGZMB flag to rfork(2) to specify a signal that is delivered to parent when the child exists. Submitted by: Petr Salinger (Debian/kFreeBSD) MFC after: 1 week X-MFC-note: bump __FreeBSD_version END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-12T20:38:42.833102Z K 7 svn:log V 111 Document RFTSIGZMB. Fix spelling of SIGCHLD. Note that signals are delivered, not returned. MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-12T21:01:09.814645Z K 7 svn:log V 421 MFC: r223657 Fix the new NFSv4 client so that it doesn't fill the cached mode attribute in as 0 when doing writes. The change adds the Mode attribute plus the others except Owner and Owner_group to the list requested by the NFSv4 Write Operation. This fixed a problem where an executable file built by "cc" would get mode 0111 instead of 0755 for some NFSv4 servers. Found at the recent NFSv4 interoperability Bakeathon. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-07-12T23:39:56.537803Z K 7 svn:log V 166 MFC: r223940: If one's message is longer than the buffer size, then we reset 'cnt' at the wrong point and the actual column # get out of sync across the buffer size. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-07-12T23:48:57.875901Z K 7 svn:log V 360 MFC: + r223940 (as r223969): If one's message is longer than the buffer size, then we reset 'cnt' at the wrong point and the actual column # get out of sync across the buffer size. + r175346: Handle wrapping correctly when \r appears in the input, and don't remove the \r from the output. For lines longer than 79 characters, don't drop every 80th character. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-07-13T00:48:36.390328Z K 7 svn:log V 288 r222389 introduced a case where the NFSv4 client could loop in nfscl_getcl() when a forced dismount is in progress, because nfsv4_lock() will return 0 without sleeping when MNTK_UNMOUNTF is set. This patch fixes it so it won't loop calling nfsv4_lock() for this case. MFC after: 2 weeks END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-13T04:27:47.280249Z K 7 svn:log V 212 MFC r223661: Improve error reporting. Use corresponding error message when file to be preprocessed is missing. Also suggest to use absolute pathname if -p option is specified. PR: bin/156653 END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-13T04:30:16.039224Z K 7 svn:log V 212 MFC r223661: Improve error reporting. Use corresponding error message when file to be preprocessed is missing. Also suggest to use absolute pathname if -p option is specified. PR: bin/156653 END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-07-13T05:32:55.117915Z K 7 svn:log V 44 Fix indentation. Approved by: pjd (mentor) END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-07-13T05:42:04.279029Z K 7 svn:log V 575 MFC r223654, r223655, r223780, 223974: r223654: Make activemap_write_start/complete check the keepdirty list, when stating if we need to update activemap on disk. This makes keepdirty serve its purpose -- to reduce number of metadata updates. Discussed with: pjd r223655, 223974: Check the returned value of activemap_write_complete() and update matadata on disk if needed. This should fix a potential case when extents are cleared in activemap but metadata is not updated on disk. Suggested by: pjd r223780: Remove useless initialization. Approved by: pjd (mentor) END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-07-13T05:56:51.421657Z K 7 svn:log V 156 When exiting with error because of an invalid command line argument use errx(3), not err(3), and the exit code from sysexits(3). Approved by: pjd (mentor) END K 10 svn:author V 2 jh K 8 svn:date V 27 2011-07-13T06:20:00.872660Z K 7 svn:log V 253 MFC r222216: In init_dynamic_kenv(), ignore environment strings exceeding the KENV_MNAMELEN + 1 + KENV_MVALLEN + 1 length limit to avoid buffer overflow in getenv(). Currenly loader(8) doesn't limit the length of environment strings. PR: kern/132104 END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-13T12:50:23.046326Z K 7 svn:log V 62 MFC r223911: Update locking annotations for the struct vnode. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-13T12:53:52.852906Z K 7 svn:log V 20 MFC r223913: Style. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-07-13T13:25:12.793950Z K 7 svn:log V 71 Run newaliases at the end of the install process. Submitted by: kevlo END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-13T14:10:28.730761Z K 7 svn:log V 26 Remove extra empty lines. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2011-07-13T17:09:15.540522Z K 7 svn:log V 862 MFC r222541, r222464, r222466 Modify the umount(8) command so that it doesn't do a sync(2) syscall before unmount(2) for the "-f" case. This avoids a forced dismount from getting stuck for an NFS mountpoint in sync() when the server is not responsive. With this commit, forced dismounts should normally work for the NFS clients, but can take up to about 1minute to complete. Add a check for MNTK_UNMOUNTF at the beginning of nfs_sync() in the old NFS client so that a forced dismount doesn't get stuck in the VFS_SYNC() call that happens before VFS_UNMOUNT() in dounmount(). Analagous to r222329 for the new NFS client. An additional change is needed before forced dismounts will work. Add a sentence to the umount.8 man page to clarify the behaviour for forced dismount when used on an NFS mount point. Requested by Jeremy Chadwick. This is a content change END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-13T17:38:42.591373Z K 7 svn:log V 19 - Fix REG_STARTEND END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-13T18:35:47.489835Z K 7 svn:log V 443 PCIB_ALLOC_MSIX() may already fail on the first pass, f.e. when the PCI-PCI bridge is blacklisted. In that case just return from pci_alloc_msix_method(), otherwise we continue without a single MSI-X resource, causing subsequent attempts to use the seemingly available resource to fail or when booting verbose a NULL-pointer dereference of rle->start when trying to print the IRQ in pci_alloc_msix_method(). Reviewed by: jhb MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-13T18:48:51.432448Z K 7 svn:log V 444 - For SAS but neither FC nor SPI controllers default to using MSI (still allowing their use to be disabled via device hints though). This matches what the corresponding Linux driver provided by LSI does. Tested with SAS1064. - There's no need to keep track of the RIDs used. - Don't allocate MSI/MSI-X as RF_SHAREABLE. - Remove a comment which no longer applies since r209599. - Assign NULL rather than 0 to pointers. MFC after: 1 month END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-07-13T18:52:11.527210Z K 7 svn:log V 259 - Expand the scope of the lock in the interrupt routine to close races with checking IFF_DRV_RUNNING and simplify the code. This also involves holding the driver lock in the rx_ch callout. - Just use ifp instead of sc->sc_ifp. Submitted by: jhb (mostly) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-13T21:06:46.670981Z K 7 svn:log V 25 - Remove unused variable END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-07-13T21:07:41.233948Z K 7 svn:log V 827 While fixing the looping of a thread while devfs vnode is reclaimed, r179247 introduced a possibility of devfs_allocv() returning spurious ENOENT. If the vnode is selected by vnlru daemon for reclamation, then devfs_allocv() can get ENOENT from vget() due to devfs_close() dropping vnode lock around the call to cdevsw d_close method. Use LK_RETRY in the vget() call, and do some part of the devfs_reclaim() work in devfs_allocv(), clearing vp->v_data and de->de_vnode. Retry the allocation of the vnode, now with de->de_vnode == NULL. The check vp->v_data == NULL at the start of devfs_close() cannot be affected by the change, since vnode lock must be held while VI_DOOMED is set, and only dropped after the check. Reported and tested by: Kohji Okuno Reviewed by: attilio MFC after: 3 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-07-13T21:07:50.247814Z K 7 svn:log V 385 Fix for dump after shutdown with USB keyboard plugged in. It appears that the system timer is stopped during shutdown and that the pause() statement in ukbd causes infinite hang in this regard. The fix is to use mi_switch() instead of pause() to do the required task switch to ensure that the required USB processes get executed. Reported by: Mike_Karels@mcafee.com MFC after: 1 week END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-07-14T00:15:26.114832Z K 7 svn:log V 46 - Add some test cases for basic POSIX regexes END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-07-14T02:41:45.313754Z K 7 svn:log V 93 Improvements to the shutdown(8) manual. PR: 158807 Submitted by: arundel MFC after: 1 week END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-07-14T03:08:10.266799Z K 7 svn:log V 74 Remove trailing whitespace in the shutdown(8) manual. MFC after: 1 week END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-07-14T03:09:49.268202Z K 7 svn:log V 47 Remove the old xlp-merge branch and start over END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-07-14T03:16:43.833605Z K 7 svn:log V 51 Branch to test addition of XLP SoC support to MIPS END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-07-14T04:21:27.162299Z K 7 svn:log V 134 MFC r223840: Add again the checking for log_arp_permanent_modify that was by accident removed in the r186119. PR: kern/154831 END