]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
10 years agoMFC r251820. This fixes some symbol visibility issues with libsupc++ that broke
theraven [Sun, 23 Jun 2013 14:36:12 +0000 (14:36 +0000)]
MFC r251820.  This fixes some symbol visibility issues with libsupc++ that broke
 compilation of GNUstep libobjc.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252116 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r251585
rmacklem [Sun, 23 Jun 2013 13:27:37 +0000 (13:27 +0000)]
MFC: r251585
Modify nfsstat.c so that it prints out an error when a non-root
user attempts to use the "-m" option and it fails.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251799:
hrs [Sun, 23 Jun 2013 02:51:22 +0000 (02:51 +0000)]
MFC r251799:

Return ENETDOWN when the parent interface is down.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252104 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251809, r251952, r252012:
pfg [Sat, 22 Jun 2013 21:31:59 +0000 (21:31 +0000)]
MFC r251809, r251952, r252012:

Re-sort ext2fs headers to make things easier to find.

In the ext2fs driver we have a mixture of headers:

- The ext2_ prefixed headers have strong influence from NetBSD
and are carry specific ext2/3/4 information.
- The unprefixed headers are inspired on UFS and carry implementation
specific information.

Do some small adjustments so that the information is easier to
find coming from either UFS or the NetBSD implementation.

Also
- Set MAXMNTLEN nearer to where it is used.
- Move EXT2_LINK_MAX to ext2_dir.h .
- Rename some prefixes in the Block Group Descriptor fields.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252099 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251443: release: Allow empty extra distributions.
jilles [Sat, 22 Jun 2013 17:28:57 +0000 (17:28 +0000)]
MFC r251443: release: Allow empty extra distributions.

For example, WITHOUT_SHAREDOCS= in src.conf creates an empty doc
distribution.

Submitted by: Kurt Lidl
Tested by: Kurt Lidl

git-svn-id: svn://svn.freebsd.org/base/stable/9@252098 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r250599:
markj [Sat, 22 Jun 2013 05:32:11 +0000 (05:32 +0000)]
MFC r250599:
Add a remark to the effect that a manually started relearn will always
result in the battery being completely drained, even in transparent learning
mode.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252093 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r246951:
markj [Sat, 22 Jun 2013 05:24:29 +0000 (05:24 +0000)]
MFC r246951:
Mark the coretemp(4) sysctls as MPSAFE, ensuring that Giant won't be held
unnecessarily by a user thread waiting to run on a specific CPU after
calling sched_bind().

git-svn-id: svn://svn.freebsd.org/base/stable/9@252091 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251166:
markj [Sat, 22 Jun 2013 04:50:25 +0000 (04:50 +0000)]
MFC r251166:
Add macros which allow one to define SDT probes with six or seven arguments;
they are needed when porting some of the Solaris providers (ip, iscsi, and
tcp in particular).

dtrace_probe() only takes five arguments from the probe site, so we need to
add the appropriate cast to allow for more than five arguments. The extra
arguments are later copied out of dtrace_probe()'s stack frame by
dtrace_getarg() (or the provider-specific getarg method) as needed.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252089 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251723:
markj [Sat, 22 Jun 2013 04:03:57 +0000 (04:03 +0000)]
MFC r251723:
The functions are called pci_{msi,msix}_count(), not pci_count_{msi,msix}().

git-svn-id: svn://svn.freebsd.org/base/stable/9@252087 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251212, r251480:
pfg [Sat, 22 Jun 2013 02:22:12 +0000 (02:22 +0000)]
MFC r251212, r251480:

GCC: bring back experimental support for amdfam10/barcelona CPUs.

This is a revised subset of the support initially brought in in r236962
and later reverted. The collateral efects seem to have disappeared but
it is still recommended to set the CPUTYPE with caution.

While here also install AMD intrinsics header ammintrin.h

Reviewed by: jkim (ages ago)

git-svn-id: svn://svn.freebsd.org/base/stable/9@252080 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: 249514
gnn [Fri, 21 Jun 2013 21:38:48 +0000 (21:38 +0000)]
MFC: 249514
Point args[0] not at the thread that is ending but at the one that
is starting.  This is in line with practice in OpenSolaris.

Note that this change is only in ULE and not in the 4BSD scheduler.
Once this change settles in (MFC timeout has expired) we'll try it out
on 4BSD as well.

PR: 177706
Submitted by: Tiwei Bie

git-svn-id: svn://svn.freebsd.org/base/stable/9@252070 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r251445
rmacklem [Fri, 21 Jun 2013 20:21:14 +0000 (20:21 +0000)]
MFC: r251445
Document the new "-v" option for the gssd daemon.
This is a content change.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252069 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r251444, r251476
rmacklem [Fri, 21 Jun 2013 20:16:41 +0000 (20:16 +0000)]
MFC: r251444, r251476
Add a "-v" (verbose) option to the gssd daemon, to help
with diagnosis of kerberized NFS mount problems. When set,
messages are sent to syslog() (or fprintf(stderr,...) if
"-d" is also specified) to indicate activity/results of
kgssapi upcalls.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252068 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 251637:
jhb [Fri, 21 Jun 2013 19:28:58 +0000 (19:28 +0000)]
MFC 251637:
Borrow the algorithm from kvm_getprocs() to fix procstat_getprocs() to
handle the case where the process tables grows in between the calls to
fetch the size and fetch the table.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252065 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r252010, r252011:
scottl [Fri, 21 Jun 2013 17:36:33 +0000 (17:36 +0000)]
MFC r252010, r252011:

Mark geom_mirror as capable of unmapped i/o

Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@252063 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 250333: Don't pad disk partition sizes with leading zeros.
jhb [Fri, 21 Jun 2013 15:17:44 +0000 (15:17 +0000)]
MFC 250333: Don't pad disk partition sizes with leading zeros.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252057 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251959:
kib [Fri, 21 Jun 2013 06:28:55 +0000 (06:28 +0000)]
MFC r251959:
Remove stray empty line.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252054 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoshare/mk: merge: r241298,243393,249057,251506 from head for bmake support.
sjg [Thu, 20 Jun 2013 22:50:08 +0000 (22:50 +0000)]
share/mk: merge: r241298,243393,249057,251506 from head for bmake support.

Makefile: buildworld etc will be done with make from src tree,
make sure that bmake's -J 15,16 are not passed to it.

Reviewed by: obrien

git-svn-id: svn://svn.freebsd.org/base/stable/9@252048 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251440: use calloc().
delphij [Thu, 20 Jun 2013 21:29:03 +0000 (21:29 +0000)]
MFC r251440: use calloc().

git-svn-id: svn://svn.freebsd.org/base/stable/9@252044 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251439: Remove unneeded reference to link.h (sys/link_elf.h).
delphij [Thu, 20 Jun 2013 21:19:47 +0000 (21:19 +0000)]
MFC r251439: Remove unneeded reference to link.h (sys/link_elf.h).

git-svn-id: svn://svn.freebsd.org/base/stable/9@252043 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 251617:
jhb [Thu, 20 Jun 2013 19:56:26 +0000 (19:56 +0000)]
MFC 251617:
Store a reference to the vnode associated with a file descriptor in the
linux_file structure and use it instead of directly accessing td_fpop
when destroying the linux_file structure.  The td_fpop pointer is not
valid when a cdevpriv destructor is run, and the type-specific close
method has already been called, so f_vnode may not be valid (and the
vnode might have been recycled without our own reference).

git-svn-id: svn://svn.freebsd.org/base/stable/9@252041 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoFix two swapped definitions. Note it is directly committed to this branch
jkim [Thu, 20 Jun 2013 17:45:29 +0000 (17:45 +0000)]
Fix two swapped definitions.  Note it is directly committed to this branch
because it fixes r250496, i.e., MFC of r247369 to stable/9.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252038 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r249406
gahr [Thu, 20 Jun 2013 16:51:25 +0000 (16:51 +0000)]
MFC: r249406

- Do not bail out if stat(2) fails with ENOENT in the spool directory. This
  happens if another atrm process removes a job while we're scanning through
  the directory.
- While at it, optimize a bit the directory scanning, so that we quit
  looping as soon as all jobs specified in argv have been dealt with.

Approved by: cognet

git-svn-id: svn://svn.freebsd.org/base/stable/9@252035 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248573:
smh [Thu, 20 Jun 2013 11:24:38 +0000 (11:24 +0000)]
MFC r248573:
Don't register repair writes in the trim map.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252027 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoFix a copy/paste error introduced by r248313 (s/ftp/http/ in menu text).
dteske [Thu, 20 Jun 2013 08:19:29 +0000 (08:19 +0000)]
Fix a copy/paste error introduced by r248313 (s/ftp/http/ in menu text).

MFC after: 3 days

git-svn-id: svn://svn.freebsd.org/base/stable/9@252025 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoFix mergeinfo.
hrs [Thu, 20 Jun 2013 07:56:05 +0000 (07:56 +0000)]
Fix mergeinfo.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252024 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r250523:
hrs [Thu, 20 Jun 2013 07:30:13 +0000 (07:30 +0000)]
MFC r250523:

Add IFF_MONITOR support to gre(4).

Tested by: Chip Marshall

git-svn-id: svn://svn.freebsd.org/base/stable/9@252023 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r250251:
hrs [Thu, 20 Jun 2013 07:23:04 +0000 (07:23 +0000)]
MFC r250251:

Use FF02:0:0:0:0:2:FF00::/104 prefix for IPv6 Node Information Group
Address.  Although KAME implementation used FF02:0:0:0:0:2::/96 based on
older versions of draft-ietf-ipngwg-icmp-name-lookup, it has been changed
in RFC 4620.

The kernel always joins the /104-prefixed address, and additionally does
/96-prefixed one only when net.inet6.icmp6.nodeinfo_oldmcprefix=1.
The default value of the sysctl is 1.

ping6(8) -N flag now uses /104-prefixed one.  When this flag is specified
twice, it uses /96-prefixed one instead.

Reviewed by: ume
Based on work by: Thomas Scheffler
PR: conf/174957

git-svn-id: svn://svn.freebsd.org/base/stable/9@252021 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251658, 251823:
pfg [Wed, 19 Jun 2013 20:56:44 +0000 (20:56 +0000)]
MFC r251658, 251823:

Turn DIAGNOSTICs to INVARIANTS in ext2fs. following other filesystems.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252008 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251485:
jh [Wed, 19 Jun 2013 18:00:00 +0000 (18:00 +0000)]
MFC r251485:

Revert r238399.

The "failok" option doesn't have any effect at all unless specified in
fstab(5) and combined with the -a flag. The "failok" option is already
documented in fstab(5).

PR: 177630

git-svn-id: svn://svn.freebsd.org/base/stable/9@251998 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r238172 (partial)
marius [Wed, 19 Jun 2013 15:12:10 +0000 (15:12 +0000)]
MFC: r238172 (partial)

Don't use Maxmem when the amount of memory is meant. Use realmem instead.
Maxmem is not only a MD variable, it represents the highest physical memory
address in use. On systems where memory is sparsely layed-out the highest
memory address and the amount of memory are not interchangeable. Scaling the
AGP aperture based on the actual amount of memory (= realmem) rather than
the available memory (= physmem) makes sure there's consistent behaviour
across architectures.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251994 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251989:
scottl [Wed, 19 Jun 2013 05:12:31 +0000 (05:12 +0000)]
MFC r251989:

Fix an unfortunate typo with the compat shims

Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251990 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoPoor man's binary compatibility of the struct bio: move the added structure
scottl [Wed, 19 Jun 2013 05:02:25 +0000 (05:02 +0000)]
Poor man's binary compatibility of the struct bio: move the added structure
members to the end of the structure.

Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251987 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoTweak the CAM_DATA flags that were added with r251874 to allow source
scottl [Wed, 19 Jun 2013 04:57:47 +0000 (04:57 +0000)]
Tweak the CAM_DATA flags that were added with r251874 to allow source
compatibility and almost 100% binary compatibility.  The old
CAM_SG_LIST_PHYS flag is essentially lost in binary compatibility for
legacy SIM drivers.  The use of this flag is excedingly rare.

Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251986 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC Xen fixes:
gibbs [Tue, 18 Jun 2013 23:14:21 +0000 (23:14 +0000)]
MFC Xen fixes:

svn rev 250081 Author:gibbs Date:2013-04-29T23:08:13.552620Z
==============
xenstore/xenstore.c:
    Prevent access to invalid memory region when listing an empty
    directory in the XenStore.

Reported by: Bei Guan

svn rev 250913 Author:gibbs Date:2013-05-22T17:13:03.545339Z
==============
Correct panic on detach of Xen PV network interfaces.

dev/xen/netfront:
    In netif_free(), properly stop the interface and drain any pending
    timers prior to disconnecting from the backend device.

    Remove all media and detach our interface object from the system
    prior to deleting it.

PR: kern/176471
Submitted by: Roger Pau Monne <roger.pau@citrix.com>
Reviewed by: gibbs

svn rev 250917 Author:gibbs Date:2013-05-22T19:22:44.923351Z
==============
Fix loss of the emulated keyboard on Xen PV HVM domains.

xen/xenbus/xenbusb.c:
    In xenbusb_probe_children(), do not modify the XenBus state of
    devices for which we have no PV driver support. An emulated device
    we do support may share this backend.  Hide the node from XenBus
    instead.

    This prevents closing the vkbd device, which Qemu's emulated keyboard
    device is using as the source for keyboard events.

    Tested with qemu-xen-traditional, qemu-xen and qemu stubdomains, all
    working as expected.

Submitted by: Roger Pau Monne <roger.pau@citrix.com>
Reviewed by: gibbs
MFC after: 1 week

svn rev 251175 Author:gibbs Date:2013-05-31T04:43:19.944993Z
==============
Apply the ad* => ada* IDE device name transition to the Xen block
front driver.

Submitted by: Bei Guan <gbtju85@gmail.com>
Reviewed by: gibbs
MFC after: 1 week

svn rev 251176 Author:gibbs Date:2013-05-31T04:45:59.563195Z
==============
Make netif_free() safe to call on a partially initialized softc.

Sponsored by: Spectra Logic Corporation
MFC after: 1 week

svn rev 251729 Author:gibbs Date:2013-06-14T03:31:11.033200Z
==============
sys/dev/xen/netfront/netfront.c:
    In netif_free(), call ifmedia_removeall() after ether_ifdetach()
    so that bpf listeners are detached, any link state processing
    is completed, and there is no chance for external reference to media
    information.

Suggested by: yongari

git-svn-id: svn://svn.freebsd.org/base/stable/9@251973 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoNow that r251221 has been MFC'ed to stable/9 in r251939, merge the remainder
marius [Tue, 18 Jun 2013 22:21:59 +0000 (22:21 +0000)]
Now that r251221 has been MFC'ed to stable/9 in r251939, merge the remainder
of r251146 previously partially MFC'ed in r251573:

In bce_get_pg_buf(), take advantage of bus_dmamap_load_mbuf_sg(9).

git-svn-id: svn://svn.freebsd.org/base/stable/9@251971 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r238190
marius [Tue, 18 Jun 2013 21:24:07 +0000 (21:24 +0000)]
MFC: r238190

Implement ia64_physmem_alloc() and use it consistently to get memory
before VM has been initialized.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251963 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r238184
marius [Tue, 18 Jun 2013 21:14:05 +0000 (21:14 +0000)]
MFC: r238184

Hide the creation of phys_avail behind an API to make it easier to do it
correctly. We now iterate the EFI memory descriptors once and collect all
the information in a single pass.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251285:
kib [Tue, 18 Jun 2013 19:03:27 +0000 (19:03 +0000)]
MFC r251285:
Do not map the shared page COW.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251957 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoRemove diff from head after manual r251942 merge.
mav [Tue, 18 Jun 2013 15:31:43 +0000 (15:31 +0000)]
Remove diff from head after manual r251942 merge.

Reviewed by: scottl

git-svn-id: svn://svn.freebsd.org/base/stable/9@251951 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r245263
marius [Tue, 18 Jun 2013 15:17:29 +0000 (15:17 +0000)]
MFC: r245263

Clang complains about the comparision of fak < 0 always being
false. It is right. Delete it because on the next line we catch all
'negative' cases with the test > 2, since 'negative' numbers are just
really big unsigned numbers and we do an identical action.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251949 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r251403 (partial)
marius [Tue, 18 Jun 2013 15:14:20 +0000 (15:14 +0000)]
MFC: r251403 (partial)

Flag sym(4) as supporting unmapped I/O; all necessary conversion actually
already has been done as part of r246713 (MFC'ed to stable/9 in r251874).

git-svn-id: svn://svn.freebsd.org/base/stable/9@251947 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r247264
marius [Tue, 18 Jun 2013 15:06:02 +0000 (15:06 +0000)]
MFC: r247264

Turn off fast posting for the ISP2100- I'd forgotten that it actually
might have been enabled for them- now that we use all 32 bits of handle.
Fast Posting doesn't pass the full 32 bits.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251946 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r242823
marius [Tue, 18 Jun 2013 15:02:53 +0000 (15:02 +0000)]
MFC: r242823

Give panic format string to pacify clang warning.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251944 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r251373
marius [Tue, 18 Jun 2013 15:00:20 +0000 (15:00 +0000)]
MFC: r251373

Flag isp(4) as supporting unmapped I/O; all necessary conversion actually
already has been done as part of r246713 (MFC'ed to stable/9 in r251874).

git-svn-id: svn://svn.freebsd.org/base/stable/9@251943 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248712:
scottl [Tue, 18 Jun 2013 14:46:42 +0000 (14:46 +0000)]
MFC r248712:

Do not pass unmapped buffers to drivers that cannot handle them

Submitted by: kan, mav
Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251942 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r251116
marius [Tue, 18 Jun 2013 14:40:21 +0000 (14:40 +0000)]
MFC: r251116

Allow unmapped I/O via aacd(4). It shouldn't be too hard to add the
same support for aacp(4), I'm lacking the necessary hardware for
testing, though.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251941 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r247165
marius [Tue, 18 Jun 2013 14:35:09 +0000 (14:35 +0000)]
MFC: r247165

Fix command timeout caused by data underrun during fetching ATAPI sense
data, introduced by r246713 (MFC'ed to stable/9 in r251874). There are two
places where ata_request is filled in ATA_CAM: ata_cam_begin_transaction()
and ata_cam_request_sense(). In the first case DMA should be done for
addresses from the CCB. In second case, DMA should be done to the different
address, the address of the sense buffer inside the CCB structure itself.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251940 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: r248804
marius [Tue, 18 Jun 2013 14:20:14 +0000 (14:20 +0000)]
MFC: r248804

deferal -> deferral

MFC: r248891

Pass correct parameter to CTR5() in bus_dmamap_load_uio.

MFC: r248892

Do not add 1 to nsegs before passing to CTR5(), since nsegs
has already been incremented before these calls.

MFC: r248893

Add CTR5() to bus_dmamap_load_ccb, similar to other bus_dmamap_load_*
functions.

MFC: r248896

Add bus_dmamap_load_bio for non-CAM disk drivers that wish to enable
unmapped I/O.

MFC: r249025

Add support for XPT_CONT_TARGET_IO CCBs in _bus_dmamap_load_ccb().

Declare CCB types in their respective switch blocks.

MFC: r249538

Some compilers issue a warning when wider integer is casted to narrow
pointer.  Supposedly shut down the warning by casting through
uintptr_t.

MFC: r251221

Move an assertion to the right spot; only bus_dmamap_load_mbuf(9)
requires a pkthdr being present but that's not the case for either
_bus_dmamap_load_mbuf_sg() or bus_dmamap_load_mbuf_sg(9).

git-svn-id: svn://svn.freebsd.org/base/stable/9@251939 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248583 (by kib):
mav [Tue, 18 Jun 2013 13:38:10 +0000 (13:38 +0000)]
MFC r248583 (by kib):
Fix twa(4) after the r246713.  The driver copies data around to
satisfy some alignment restrictions.  Do not set TW_OSLI_REQ_FLAGS_CCB
flag for mapped data, pass the csio->data_ptr in the req->data.

Do not put the ccb pointer into req->data ever, ccb is stored in
req->orig_req already.

Submitted by: Shuichi KITAGUCHI <ki@hh.iij4u.or.jp>
PR: kern/177020

git-svn-id: svn://svn.freebsd.org/base/stable/9@251938 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r242827 (by rdivacky):
mav [Tue, 18 Jun 2013 13:36:15 +0000 (13:36 +0000)]
MFC r242827 (by rdivacky):
Give tw_osl_dbg_printf format string to pacify clang warning.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251937 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r228526 (by kevlo):
mav [Tue, 18 Jun 2013 13:34:37 +0000 (13:34 +0000)]
MFC r228526 (by kevlo):
s/timout/timeout

git-svn-id: svn://svn.freebsd.org/base/stable/9@251936 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251616:
mav [Tue, 18 Jun 2013 09:47:56 +0000 (09:47 +0000)]
MFC r251616:
Don't update provider properties and don't set DISKFLAG_OPEN if d_open()
disk method call returned error.  GEOM considers devices in such case as
still closed, and won't call symmetric d_close() for them.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251931 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r249974:
mav [Tue, 18 Jun 2013 09:44:55 +0000 (09:44 +0000)]
MFC r249974:
Return "descr" field alike to "Intel RAID1 volume" for GEOM RAID to make
it look better in bsdinstall.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r249193 (by trasz):
mav [Tue, 18 Jun 2013 09:42:43 +0000 (09:42 +0000)]
MFC r249193 (by trasz):
Make it possible to submit FLUSH bios through geom_dev strategy.  This
is required for CTL to work with device-backed LUNs.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251927 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248722:
mav [Tue, 18 Jun 2013 09:39:52 +0000 (09:39 +0000)]
MFC r248722:
geom_slice.c and its consumers like GEOM_LABEL are not touching the data
unless hotspots are used.  Pass G_PF_ACCEPT_UNMAPPED flag through except
such rare cases (obsolete GEOM_SUNLABEL and GEOM_BSD).

git-svn-id: svn://svn.freebsd.org/base/stable/9@251925 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248721:
mav [Tue, 18 Jun 2013 09:37:44 +0000 (09:37 +0000)]
MFC r248721:
GEOM NOP does not touch the data, so pass G_PF_ACCEPT_UNMAPPED flag through.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251924 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248720:
mav [Tue, 18 Jun 2013 09:34:36 +0000 (09:34 +0000)]
MFC r248720:
Remove extra bio_data and bio_length copying to child request after calling
g_clone_bio(), that already copied them.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248696:
mav [Tue, 18 Jun 2013 09:31:06 +0000 (09:31 +0000)]
MFC r248696:
Make GEOM MULTIPATH to report unmapped bio support if underling path report
it.  GEOM MULTIPATH itself never touches the data and so transparent.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248596 (by kib):
mav [Tue, 18 Jun 2013 09:29:30 +0000 (09:29 +0000)]
MFC r248596 (by kib):
Correct the page count when excess length is trimmed from the bio.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248295 (by pjd):
mav [Tue, 18 Jun 2013 09:26:01 +0000 (09:26 +0000)]
MFC r248295 (by pjd):
We don't need buffer to handle BIO_DELETE, so don't check buffer size for it.
This fixes handling BIO_DELETE larger than MAXPHYS.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251918 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMissed mergeinfo for r251916.
mav [Tue, 18 Jun 2013 09:23:03 +0000 (09:23 +0000)]
Missed mergeinfo for r251916.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251917 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248068 (by sbruno):
mav [Tue, 18 Jun 2013 09:21:21 +0000 (09:21 +0000)]
MFC r248068 (by sbruno):
Add legacy support to geom raid to create a /dev/arX device for support
of upgrading older machines using ataraid(4) to newer releases.

This optional parameter is controlled via kern.geom.raid.legacy_aliases
and will create a /dev/ar0 device that will point at /dev/raid/r0 for
example.

Tested on Dell SC 1425 DDF-1 format software raid controllers installing from
stable/7 and upgrading to stable/9 without having to adjust /etc/fstab

git-svn-id: svn://svn.freebsd.org/base/stable/9@251916 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoFix a bug that allowed a tracing process (e.g. gdb) to write
des [Tue, 18 Jun 2013 07:04:19 +0000 (07:04 +0000)]
Fix a bug that allowed a tracing process (e.g. gdb) to write
to a memory-mapped file in the traced process's address space
even if neither the traced process nor the tracing process had
write access to that file.

Security: CVE-2013-2171
Security: FreeBSD-SA-13:06.mmap
Approved by: so

git-svn-id: svn://svn.freebsd.org/base/stable/9@251902 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r248825, 248775
scottl [Tue, 18 Jun 2013 05:37:06 +0000 (05:37 +0000)]
MFC r248825, 248775

Add unmapped i/o support for the mps and isci drivers.

Submitted by: mav, jimharris
Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251899 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge the second part of the unmapped I/O changes. This enables the
scottl [Tue, 18 Jun 2013 05:21:40 +0000 (05:21 +0000)]
Merge the second part of the unmapped I/O changes.  This enables the
infrastructure in the block layer and UFS filesystem as well as a few
drivers.  The list of MFC revisions is long, so I won't quote changelogs.

r248508,248510,248511,248512,248514,248515,248516,248517,248518,
248519,248520,248521,248550,248568,248789,248790,249032,250936

Submitted by: kib
Approved by: kib
Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251897 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoFix typos in the last revision. Thanks to Andrey Chernov for his kind
scottl [Tue, 18 Jun 2013 04:11:16 +0000 (04:11 +0000)]
Fix typos in the last revision.  Thanks to Andrey Chernov for his kind
patience.

Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251893 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251349:
delphij [Tue, 18 Jun 2013 04:05:37 +0000 (04:05 +0000)]
MFC r251349:

Fix a typo: XPORT_SPI should be tested against transport, nor protocol.

Submitted by: Sascha Wildner <swildner dragonflybsd org>
Reviewed by: mjacob

git-svn-id: svn://svn.freebsd.org/base/stable/9@251891 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251187:
delphij [Tue, 18 Jun 2013 04:03:12 +0000 (04:03 +0000)]
MFC r251187:

Explicitly use a pair of parentheses to ensure correct evaluation
ordering for bitwise operation.

Submitted by: swildner (DragonFly)

git-svn-id: svn://svn.freebsd.org/base/stable/9@251889 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoCatch up to the changes from r251874. This isn't an MFC because the
scottl [Tue, 18 Jun 2013 03:34:08 +0000 (03:34 +0000)]
Catch up to the changes from r251874.  This isn't an MFC because the
amd(4) driver no longer exists in FreeBSD 10.

Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251888 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoBig MFC of the physbio changes necessary for unmapped I/O. These changes
scottl [Tue, 18 Jun 2013 00:36:53 +0000 (00:36 +0000)]
Big MFC of the physbio changes necessary for unmapped I/O.  These changes
have been in production at Netflix for several months with significant
success.

MFC r246713:

Reform the busdma API so that new types may be added without modifying
every architecture's busdma_machdep.c.  It is done by unifying the
bus_dmamap_load_buffer() routines so that they may be called from MI
code.  The MD busdma is then given a chance to do any final processing
in the complete() callback.

MFC r249538:
Some compilers issue a warning when wider integer is casted to narrow
pointer.  Supposedly shut down the warning by casting through
uintptr_t.

MFC r251479:
Simplify the checking of flags for cam_periph_mapmem().  This gets rid of
a lot of code redundancy and grossness at very minor expense.

MFC r251837:
MFC r251842:
Add infrastructure for doing compatibility shims, as has been sorely
needed for the last 10 years.  Far too much of the internal API is
exposed, and every small adjustment causes applications to stop working.
To kick this off, bump the API version to 0x17 as should have been done
with r246713, but add shims to compensate.  Thanks to the shims, there
should be no visible change in application behavior.

Submitted by: kib, jeffr
Approved by: kib
Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251874 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r244575:
scottl [Mon, 17 Jun 2013 23:21:18 +0000 (23:21 +0000)]
MFC r244575:
The manpage states that bus_dmamap_create(9) returns ENOMEM if it can't
allocate a map or mapping resources.  That seems to imply that any memory
allocations it does must use M_NOWAIT and check for NULL.

MFC 246158:
Use pmap_kextract() instead of inlining the page table walk.
Remove the comment referencing non-existing code.

Submitted by: kib, cognet
Approved by: marius
Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251873 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r244414:
scottl [Mon, 17 Jun 2013 21:41:14 +0000 (21:41 +0000)]
MFC r244414:
Properly implement pmap_[get|set]_memattr

MFC r244466:
Create an architecture-agnostic buffer pool manager that uses uma(9) to
manage a set of power-of-2 sized buffers for bus_dmamem_alloc().

MFC r244471:
Busdma enhancements, especially for managing small uncacheable buffers.

MFC r244743:
Use C comments instead of C++ comments.

MFC r244474:
We want to build subr_busdma_bufalloc.c on arm.

Submitted by: cognet
Approved by: marius
Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251871 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r240177:
scottl [Mon, 17 Jun 2013 20:40:16 +0000 (20:40 +0000)]
MFC r240177:

Dynamically allocate the S/G lists passed to callback routines rather than
allocating them on the stack of various bus_dmamap_load*() functions.  The
S/G lists are stored in the DMA tags.  This matches the implementation on
all other platforms.

Submitted by: jhb
Approved by: marius, adrian
Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251868 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r236991:
scottl [Mon, 17 Jun 2013 20:26:19 +0000 (20:26 +0000)]
MFC r236991:

Final whitespace trim.

Submitted by: imp
Approved by: marius
Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r249252:
ae [Mon, 17 Jun 2013 20:17:56 +0000 (20:17 +0000)]
MFC r249252:
  Remove reference to the nonexistent sysctl node net.inet6.mld.stats.
  Also add cross reference to the icmp6(4).

  PR: 177696

git-svn-id: svn://svn.freebsd.org/base/stable/9@251864 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251689
brooks [Mon, 17 Jun 2013 19:54:47 +0000 (19:54 +0000)]
MFC r251689

Be more agressive about bootstrapping ctfmerge and ctfconvert so
builds from existing releases have a chance of working properly when
WITH_CLANG_IS_CC is enabled.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251861 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r242465:
scottl [Mon, 17 Jun 2013 19:45:27 +0000 (19:45 +0000)]
MFC r242465:
Free the dma map -after- it's checked, not before. Or you'll be
potentially referencing already-freed memory.

MFC r242466:
Drop this from 500 to 128, to save a little space on memory constrained
platforms.

Submitted by: adrian
Obtained from: Netflix

git-svn-id: svn://svn.freebsd.org/base/stable/9@251860 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC: 248848
gnn [Mon, 17 Jun 2013 15:42:21 +0000 (15:42 +0000)]
MFC: 248848

Commit a patch that fixes a problem in the #pragma statement when searching
for and loading dependent modules.  This addresses a bug seen with
io.d where it was being doubly included.

PR: 171678
Submitted by:  Mark Johnston

git-svn-id: svn://svn.freebsd.org/base/stable/9@251857 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251659:
mav [Mon, 17 Jun 2013 14:59:23 +0000 (14:59 +0000)]
MFC r251659:
Use CAM_DIR_NONE for requests without data.
Wrong values there confuse some drivers.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251852 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251661:
mav [Mon, 17 Jun 2013 14:55:02 +0000 (14:55 +0000)]
MFC r251661:
Replicate r242422 from ata(4) to mvs(4):
Only four specific ATA PIO commands transfer several sectors per DRQ block
(interrupt).  All other ATA PIO commands transfer one sector or 512 bytes
at one time.  Hardcode these exceptions in mvs(4).
This fixes timeout of READ LOG EXT command used by `smartctl -x /dev/adaX`.
Also it fixes timeout of DOWNLOAD_MICROCODE on `camcontrol fwdownload`.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251850 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251654, r251664:
mav [Mon, 17 Jun 2013 14:52:39 +0000 (14:52 +0000)]
MFC r251654, r251664:
Make CAM return and GEOM DISK pass through new GEOM::lunid attribute.

SPC-4 specification states that serial number may be property of device,
but not a specific logical unit.  People reported about FC storages using
serial number in that way, making it unusable for purposes of LUN multipath
detection.  SPC-4 states that designators associated with logical unit from
the VPD page 83h "Device Identification" should be used for that purpose.
Report first of them in the new attribute in such preference order: NAA,
EUI-64, T10 and SCSI name string.

While there, make GEOM DISK properly report GEOM::ident in XML output also
using d_getattr() method, if available.  This fixes serial numbers reporting
for SCSI disks in `geom disk list` output and confxml.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251849 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r250298, r250301:
mav [Mon, 17 Jun 2013 14:41:39 +0000 (14:41 +0000)]
MFC r250298, r250301:
Fix byte order of ATA WWN when converting it to SCSI LUN ID.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251847 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r249205:
mav [Mon, 17 Jun 2013 14:21:31 +0000 (14:21 +0000)]
MFC r249205:
Replicate r245306 from SCSI to ATA.  The problem didn't appear so far,
covered by multilevel freeze mechanism, but it is better to be safe.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251846 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251563:
gjb [Mon, 17 Jun 2013 10:14:08 +0000 (10:14 +0000)]
MFC r251563:
 Add freebsd-update.conf(5) to OptionalObsoleteFiles.inc

PR: 179437
Approved by: kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/9@251841 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251284:
kib [Mon, 17 Jun 2013 07:12:34 +0000 (07:12 +0000)]
MFC r251284:
Unify the code of check_deferred_signal() for all architectures.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251834 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r250013 (by davidxu):
kib [Mon, 17 Jun 2013 07:11:17 +0000 (07:11 +0000)]
MFC r250013 (by davidxu):
Remove extra code for SA_RESETHAND, it is not needed because kernel has
already done this.

Approved by: davidxu

git-svn-id: svn://svn.freebsd.org/base/stable/9@251833 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251322:
kib [Mon, 17 Jun 2013 06:21:42 +0000 (06:21 +0000)]
MFC r251322:
Instead of yielding, pause for 1 tick when donating the current thread
time to the owner of the vnode lock while iterating over the free vnode
list.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251832 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251600:
yongari [Mon, 17 Jun 2013 04:40:27 +0000 (04:40 +0000)]
MFC r251600:
  Avoid unnecessary controller reinitialization by checking driver
  running state.  fxp(4) requires controller reinitialization for the
  following cases.
   o RX lockup condition on i82557
   o promiscuous mode change
   o multicast filter change
   o WOL configuration
   o TSO/VLAN hardware tagging/checksum offloading configuration
   o MAC reprogramming after speed/duplex/flow-control resolution
   o Any events that result in MAC reprogramming(link UP/DOWN,
     remote link partner's restart of auto-negotiation etc)
   o Microcode loading/unloading
  Apart from above cases which come from hardware limitation, upper
  stack also blindly reinitializes controller whenever an IP address
  is assigned. After r194573, fxp(4) no longer needs to reinitialize
  the controller to program multicast filter after upping the
  interface. So keeping track of driver running state should remove
  all unnecessary controller reinitializations.

  This change will also address endless controller reinitialization
  triggered by dhclient(8).

git-svn-id: svn://svn.freebsd.org/base/stable/9@251829 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r250746 and r250805:
hrs [Sun, 16 Jun 2013 18:59:07 +0000 (18:59 +0000)]
MFC r250746 and r250805:

- Update the release notes to DocBook 4.5 XML to build with the
  updated documentation tree
- Fix build after doc/projects/xml-tools integration.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251816 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoRemove obsolete translations.
hrs [Sun, 16 Jun 2013 18:32:02 +0000 (18:32 +0000)]
Remove obsolete translations.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251814 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r245177,r245346,r246283,r251650:
hrs [Sun, 16 Jun 2013 18:27:53 +0000 (18:27 +0000)]
MFC r245177,r245346,r246283,r251650:

- Set WITHOUT_SVN=yes for textproc/docproj.
- Add CHECKSUM.* support in Makefile.
- Use ln -fs to create a symlink.
- Remove pkgadd for docports.
- Use WITHOUT_JADETEX=yes instead of WITH_JADETEX=no.
- Add {WORLD,KERNEL}_FLAGS to [BTWK]MAKE.
- Use makefs(8) and gpart(8) for sparc64 ISO image.
- Add publisher option to makefs(8).
- Add missing copyright notice.
- ISO 9660 specification allows only "d-characters" and "a-characters"
  in the Volume Descriptor (section 7.4).  In short, uppercase
  alphanumeric + some symbols only.  While the makefs utility automatically
  converts the characters, $LABEL should be consistent in the scripts.

These fix a specification violation in 9.X iso9660 images, and cdrtools
dependency and endianness issue for sparc64 release media.  The label is
now in uppercase letters only in all platforms.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251812 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251580:
hrs [Sun, 16 Jun 2013 07:18:07 +0000 (07:18 +0000)]
MFC r251580:

- Add file system type number (vfc_typenum) in the list.  This is useful
  for debugging when changing vfs.typenumhash configuration.
- Refactor fmt_flags().

git-svn-id: svn://svn.freebsd.org/base/stable/9@251802 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251677:
pfg [Sun, 16 Jun 2013 00:59:24 +0000 (00:59 +0000)]
MFC r251677:

Relax some unnecessary unsigned type changes in ext2fs.

While the changes in r245820 are in line with the ext2 spec,
the code derived from UFS can use negative values so it is
better to relax some types to keep them as they were, and
somewhat more similar to UFS. While here clean some casts.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251798 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r251490:
trociny [Sat, 15 Jun 2013 08:06:22 +0000 (08:06 +0000)]
MFC r251490:

Properly set curvnet context in lagg_port_setlladdr() task handler.

Reported by: Nikos Vassiliadis <nvass gmx.com>
Submitted by: zec
Tested by: Nikos Vassiliadis <nvass gmx.com>

git-svn-id: svn://svn.freebsd.org/base/stable/9@251779 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 250220:
jhb [Fri, 14 Jun 2013 21:56:10 +0000 (21:56 +0000)]
MFC 250220:
Fix FIONREAD on regular files.  The computed result was being ignored and
it was being passed down to VOP_IOCTL() where it promptly resulted in
ENOTTY due to a missing else for the past 8 years.  While here, use a
shared vnode lock while fetching the current file's size.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251762 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 250053:
jhb [Fri, 14 Jun 2013 20:32:33 +0000 (20:32 +0000)]
MFC 250053:
Only cleanup CMI-related state on detach if the system supports CMI.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251759 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC r244090, r250945
ghelmer [Fri, 14 Jun 2013 18:56:37 +0000 (18:56 +0000)]
MFC r244090, r250945

Changes to resolve races in bpfread() and catchpacket() that, at worst,
cause kernel panics.

Add a flag to the bpf descriptor to indicate whether the hold buffer
is in use. In bpfread(), set the "hold buffer in use" flag before
dropping the descriptor lock during the call to bpf_uiomove().
Everywhere else the hold buffer is used or changed, wait while
the hold buffer is in use by bpfread(). Add a KASSERT in bpfread()
after re-acquiring the descriptor lock to assist uncovering any
additional hold buffer races.

While waiting for the bpf hold buffer to become idle, check
the return value from mtx_sleep() and exit bpfread() on
errors such as EINTR.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251756 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMFC 249767:
jhb [Fri, 14 Jun 2013 18:30:43 +0000 (18:30 +0000)]
MFC 249767:
- Some BIOSes use an Extended IRQ resource descriptor in _PRS for a link
  that uses non-ISA IRQs but use a plain IRQ resource in _CRS.  However,
  a non-ISA IRQ can't fit into a plain IRQ resource.  If we encounter a
  link like this, build the resource buffer from _PRS instead of _CRS.
- Set the correct size of the end tag in a resource buffer.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

10 years agoMerge a missing part of 235613 to add the new dirs to mtree.
jhb [Fri, 14 Jun 2013 15:58:24 +0000 (15:58 +0000)]
Merge a missing part of 235613 to add the new dirs to mtree.

git-svn-id: svn://svn.freebsd.org/base/stable/9@251747 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f