]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoAdd an UPDATING entry for the __FreeBSD_version bump related
rmacklem [Fri, 1 Aug 2014 21:28:58 +0000 (21:28 +0000)]
Add an UPDATING entry for the __FreeBSD_version bump related
to r269398.

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

9 years agoBump __FreeBSD_version for r269398, since it changes the
rmacklem [Fri, 1 Aug 2014 21:24:19 +0000 (21:24 +0000)]
Bump __FreeBSD_version for r269398, since it changes the
internal interfaces between the NFS related modules.
This is a direct commit to stable/10.

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

9 years agoMFC r266902: Add missing libexec/bsdconfig subdirectories
emaste [Fri, 1 Aug 2014 21:14:02 +0000 (21:14 +0000)]
MFC r266902: Add missing libexec/bsdconfig subdirectories

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

9 years agoMFC: r268115
rmacklem [Fri, 1 Aug 2014 21:10:41 +0000 (21:10 +0000)]
MFC: r268115
Merge the NFSv4.1 server code in projects/nfsv4.1-server over
into head. The code is not believed to have any effect
on the semantics of non-NFSv4.1 server behaviour.
It is a rather large merge, but I am hoping that there will
not be any regressions for the NFS server.

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

9 years agoMFC 256657,257423,264837,267559:
jhb [Fri, 1 Aug 2014 21:00:18 +0000 (21:00 +0000)]
MFC 256657,257423,264837,267559:
Sync vmrun.sh with HEAD:
- Add -e option to vmrun.sh passed to bhyveload(8) to set loader
  environment variables.
- Stop passing unused -I option to bhyve(8).
- Reformat the usage to fit in 80 colums and other cleanups.
- Add -C option to specify the console device.
- Add -H option to pass a host path to bhyveload(8).
- Support for multiple disk and tap devices.

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

9 years agoMFC r268780
truckman [Fri, 1 Aug 2014 15:04:46 +0000 (15:04 +0000)]
MFC r268780

Nuke the never-used RF_TIMESHARE feature, reducing the complexity of the
code.  The consensus on arch@ is that this feature might have been useful
in the distant past, but is now just unnecessary bloat.

The int_rman_activate_resource() and int_rman_deactivate_resource()
functions become trivial, so manually inline them.

The special deferred handling of RF_ACTIVE is no longer needed in
reserve_resource_bound(), so eliminate the associated code at the
end of the function.

These changes reduce the object file size by more than 500 bytes on i386.

Update the rman.9 man page to reflect the removal of the RF_TIMESHARE
feature.

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

9 years agoMFC r269205:
kib [Fri, 1 Aug 2014 04:05:13 +0000 (04:05 +0000)]
MFC r269205:
Simplify the expression.

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

9 years agoMFC r269106:
np [Thu, 31 Jul 2014 23:09:22 +0000 (23:09 +0000)]
MFC r269106:

Add a 'raw' parameter to the 'modinfo' subcommand.  This is handy when
trying to figure out why a QSFP+/SFP+ connector or cable wasn't
identified correctly by cxgbe(4).  Its output looks like this:

# cxgbetool t5nex0 modinfo 0 raw
00:  03 04 21 00  00 00 00 00  ..!. ....
08:  04 00 00 00  67 00 00 00  .... g...
10:  00 00 05 00  41 6d 70 68  .... Amph
18:  65 6e 6f 6c  20 20 20 20  enol
20:  20 20 20 20  00 41 50 48       .APH
28:  35 37 31 35  34 30 30 30  5715 4000
30:  33 20 20 20  20 20 20 20  3
38:  4b 20 20 20  01 00 00 fa  K    ....
40:  00 00 00 00  41 50 46 31  .... APF1
48:  30 30 34 30  30 33 30 30  0040 0300
50:  30 33 20 20  31 30 30 31  03   1001
58:  33 30 20 20  00 00 00 97  30   ....

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

9 years agoMFC r268971 and r269032.
np [Thu, 31 Jul 2014 23:04:41 +0000 (23:04 +0000)]
MFC r268971 and r269032.

r268971:
Simplify r267600, there's no need to distinguish between allocated and
inlined mbufs.

r269032:
cxgbe(4):  Keep track of the clusters that have to be freed by the
custom free routine (rxb_free) in the driver.  Fail MOD_UNLOAD with
EBUSY if any such cluster has been handed up to the kernel but hasn't
been freed yet.  This prevents a panic later when the cluster finally
needs to be freed but rxb_free is gone from the kernel.

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

9 years agoMFC r264434:
markj [Thu, 31 Jul 2014 17:10:03 +0000 (17:10 +0000)]
MFC r264434:
DTrace's pid provider works by inserting breakpoint instructions at probe
sites and installing a hook at the kernel's trap handler. The fasttrap code
will emulate the overwritten instruction in some common cases, but otherwise
copies it out into some scratch space in the traced process' address space
and ensures that it's executed after returning from the trap.

In Solaris and illumos, this (per-thread) scratch space comes from some
reserved space in TLS, accessible via the fs segment register. This
approach is somewhat unappealing on FreeBSD since it would require some
modifications to rtld and jemalloc (for static TLS) to ensure that TLS is
executable, and would thus introduce dependencies on their implementation
details. I think it would also be impossible to safely trace static binaries
compiled without these modifications.

This change implements the functionality in a different way, by having
fasttrap map pages into the target process' address space on demand. Each
page is divided into 64-byte chunks for use by individual threads, and
fasttrap's process descriptor struct has been extended to keep track of
any scratch space allocated for the corresponding process.

With this change it's possible to trace all libc functions in a program,
e.g. with

  pid$target:libc.so.*::entry {@[probefunc] = count();}

Previously this would generally cause the victim process to crash, as
tracing memcpy on amd64 requires the functionality described above.

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

9 years agoMFC 268931:
wblock [Thu, 31 Jul 2014 14:53:07 +0000 (14:53 +0000)]
MFC 268931:

Correct spelling errors in ctld.8.  While here, correct similar errors
in ctl.conf.5 and fix a couple of contractions.

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

9 years agoMFC r268300:
rpaulo [Thu, 31 Jul 2014 07:27:59 +0000 (07:27 +0000)]
MFC r268300:

 bsd.dep.mk: add support for generating DTrace header files from .d
 files.

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

9 years agoMFC r268808:
mav [Wed, 30 Jul 2014 07:21:30 +0000 (07:21 +0000)]
MFC r268808:
Increase maximal number of SCSI ports in CTL from 32 to 128.

After I gave each iSCSI target its own port, the old limit appeared to be
not so big.  This change almost proportionally increases per-LUN memory
use, but it is still three times better then it was before r268807.

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

9 years agoMFC r268807:
mav [Wed, 30 Jul 2014 07:20:36 +0000 (07:20 +0000)]
MFC r268807:
Reduce per-LUN memory usage from 18MB to 1.8MB.

CTL never had use for CA support code since SPI has gone, and there is no
even frontends supporting that.  But it still was reserving 256 bytes of
memory per LUN per every possible initiator on every possible port.

Wrap unused code with ifdef's in case somebody ever need it.

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

9 years agoMFC r268767:
mav [Wed, 30 Jul 2014 07:18:32 +0000 (07:18 +0000)]
MFC r268767:
Add support for VMWare dialect of EXTENDED COPY command, aka VAAI Clone.

This allows to clone VMs and move them between LUNs inside one storage
host without generating extra network traffic to the initiator and back,
and without being limited by network bandwidth.

LUNs participating in copy operation should have UNIQUE NAA or EUI IDs set.
For LUNs without these IDs VMWare will use traditional copy operations.

Beware: the above LUN IDs explicitly set to values non-unique from the VM
cluster point of view may cause data corruption if wrong LUN is addressed!

Sponsored by: iXsystems, Inc.

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

9 years agoMFC r268581:
mav [Wed, 30 Jul 2014 07:16:08 +0000 (07:16 +0000)]
MFC r268581:
Merge several equal serialization indexes.

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

9 years agoMFC r269149:
mav [Wed, 30 Jul 2014 07:08:59 +0000 (07:08 +0000)]
MFC r269149:
Fix several cases of NULL dereference when INQUIRY sent to absent LUN.

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

9 years agoMFC r269160:
kib [Wed, 30 Jul 2014 04:03:59 +0000 (04:03 +0000)]
MFC r269160:
Remove man page for non-existent VOPs.

MFC r269240 (by pluknet):
Add VOP_GETVOBJECT.9 to obsolete files, un-xref.

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

9 years agoMFC r269159:
kib [Wed, 30 Jul 2014 04:00:23 +0000 (04:00 +0000)]
MFC r269159:
Correct the locking statement.

MFC r269161:
Explicitely mention that inactivated or reclaimed vnode is locked
exclusively.

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

9 years agoMFC r268765:
kib [Wed, 30 Jul 2014 03:58:29 +0000 (03:58 +0000)]
MFC r268765:
Remove unused header.

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

9 years agoMFC r268764:
kib [Wed, 30 Jul 2014 03:56:17 +0000 (03:56 +0000)]
MFC r268764:
Check for the cross-device cross-link attempt in the VFS, instead of
VOP_LINK() implemenations.

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

9 years agoMFC r265276:
markj [Tue, 29 Jul 2014 22:29:31 +0000 (22:29 +0000)]
MFC r265276:
Fix a typo.

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

9 years agoMFC r264435:
markj [Tue, 29 Jul 2014 22:26:41 +0000 (22:26 +0000)]
MFC r264435:
Ensure that all eight syscall arguments are available to dtrace_probe(),
rather than just the first five.

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

9 years agoMFC r268929:
hselasky [Tue, 29 Jul 2014 22:05:33 +0000 (22:05 +0000)]
MFC r268929:
Add new device ID.

PR: 191959

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

9 years agoMFC r269127:
hselasky [Tue, 29 Jul 2014 21:59:24 +0000 (21:59 +0000)]
MFC r269127:
Fix for division by zero.

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

9 years agoMFC r264486:
markj [Tue, 29 Jul 2014 21:21:16 +0000 (21:21 +0000)]
MFC r264486:
Use the correct format specifiers for wide characters and strings of wide
characters.

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

9 years agoMFC r268446:
markj [Tue, 29 Jul 2014 21:15:26 +0000 (21:15 +0000)]
MFC r268446:
Fix a typo.

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

9 years agoMFC: r268726
rmacklem [Tue, 29 Jul 2014 21:05:51 +0000 (21:05 +0000)]
MFC: r268726
Move the "retry:" label so that the calls to m_pullup() are
not done after the call to m_defrag(). This fixes a problem
where m_pullup() would prepend an mbuf to the list created
by m_defrag() making the chain greater than 32 again.

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

9 years agoMFH (r266114, r266138): upgrade to latest ldns and unbound
des [Tue, 29 Jul 2014 20:57:38 +0000 (20:57 +0000)]
MFH (r266114, r266138): upgrade to latest ldns and unbound
MFH (r266139-r266143, r266145, r266149, r266150): fix props
MFH (r266179, r266180, r266193, r266238, r266777): misc cleanup
MFH (r266863): create and use /var/unbound/conf.d
MFH (r268839): import unblock-lan-zones patch from upstream
MFH (r268840): fix reverse lookups on private networks
MFH (r268883): avoid spamming source tree during build

PR: 190739 (for r268883)

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

9 years agoMFC r264363:
markj [Tue, 29 Jul 2014 20:37:22 +0000 (20:37 +0000)]
MFC r264363:
Update the SDT(9) example to reflect the removal of the sname parameter
in r258622.

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

9 years agoMFC r263329:
markj [Tue, 29 Jul 2014 20:33:18 +0000 (20:33 +0000)]
MFC r263329:
Only invoke fasttrap hooks for traps from user mode, and ensure that they're
called with interrupts enabled. Calling fasttrap_pid_probe() with interrupts
disabled can lead to deadlock if fasttrap writes to the process' address
space.

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

9 years agoMFC r262669:
markj [Tue, 29 Jul 2014 18:31:27 +0000 (18:31 +0000)]
MFC r262669:
When our linker merges .SUNW_dof sections from multiple files, it simply
concatenates the DOF tables into one section. Previously, the USDT init
code in drti.o would only look at the first table in the DOF section; with
this change, it iterates over all the tables, passing each DOF table to
the kernel.

PR: 186821

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

9 years agoMFC: r269051
marius [Tue, 29 Jul 2014 13:11:37 +0000 (13:11 +0000)]
MFC: r269051

Copying pages via temporary mappings in the !DMAP case of pmap_copy_pages()
involves updating the corresponding page tables followed by accesses to the
pages in question. This sequence is subject to the situation exactly described
in the "AMD64 Architecture Programmer's Manual Volume 2: System Programming"
rev. 3.23, "7.3.1 Special Coherency Considerations" [1, p. 171 f.]. Therefore,
issuing the INVLPG right after modifying the PTE bits is crucial (see also
r269050, MFCed to stable/10 in r269235).
For the amd64 PMAP code, the order of instructions was already correct. The
above fact still is worth documenting, though.

1: http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/24593_APM_v21.pdf

Reviewed by: alc
Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC: r269050
marius [Tue, 29 Jul 2014 13:08:37 +0000 (13:08 +0000)]
MFC: r269050

- Copying and zeroing pages via temporary mappings involves updating the
  corresponding page tables followed by accesses to the pages in question.
  This sequence is subject to the situation exactly described in the "AMD64
  Architecture Programmer's Manual Volume 2: System Programming" rev. 3.23,
  "7.3.1 Special Coherency Considerations" [1, p. 171 f.]. Therefore, issuing
  the INVLPG right after modifying the PTE bits is crucial.
  For pmap_copy_page(), this has been broken in r124956 and later on carried
  over to pmap_copy_pages() derived from the former, while all other places
  in the i386 PMAP code use the correct order of instructions in this regard.
  Fixing the latter breakage solves the problem of data corruption seen with
  unmapped I/O enabled when running at least bare metal on AMD R-268D APUs.
  However, this might also fix similar corruption reported for virtualized
  environments.
- In pmap_copy_pages(), correctly set the cache bits on the source page being
  copied. This change is thought to be a NOP for the real world, though. [2]

1: http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/24593_APM_v21.pdf

Submitted by: kib [2]
Reviewed by: alc, kib
Sponsored by: Bally Wulff Games & Entertainment GmbH

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

9 years agoMFC r269122:
mav [Tue, 29 Jul 2014 07:40:14 +0000 (07:40 +0000)]
MFC r269122:
Fix infinite loop, when doing WRITE SAME on file-backed LUN.

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

9 years agoMFC r268727 (by delphij):
pluknet [Tue, 29 Jul 2014 07:36:38 +0000 (07:36 +0000)]
MFC r268727 (by delphij):

Add a bandaid to fix GCC build (on sparc64 et al).

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

9 years agoMFC r268979:
delphij [Tue, 29 Jul 2014 06:00:16 +0000 (06:00 +0000)]
MFC r268979:

Don't save entropy inside jails.

As of r126744, we no longer feed the entropy device in jails upon
start, and collecting them is no longer useful.

PR: conf/126744
Submitted by: Eugene Grosbein <eugen grosbein net> (with minor changes)
Approved by: so (des)

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

9 years agoMFC r268720: MFV r268714:
delphij [Tue, 29 Jul 2014 05:49:16 +0000 (05:49 +0000)]
MFC r268720: MFV r268714:

Improve extreme rewind import.

When doing an "extreme rewind" import ("zpool import -XF"), we attempt
to verify all data in the pool, essentially scrubbing the entire pool.
The problem is that spa_load_verify_cb() issues an unbounded number of
concurrent scrub i/os.  This can lead to all of memory being used for
these zio's, wedging the system. Like normal scrub, we need to put a
cap on the number of outstanding i/os, and have the traverse thread
block when we reach this cap.

For this purpose the cap can be very large (10,000) to optimize the
elevator algorithm.  Three kernel tunables have been added:

vfs.zfs.spa_load_verify_maxinflight
vfs.zfs.spa_load_verify_metadata
vfs.zfs.spa_load_verify_data

The latter two tunables controls whether metadata and/or user data
when doing extreme rewind.

Make 'zpool import -T' imply scrub.

Make zpool import -T <txg> accept hexadecimal values for the txg when
prefixed with 0x.

Skip txg's for which there is no uberblock when doing extreme rewind.

Skip reading all user data twice by skipping prefetches when doing
extreme rewinds as we do not access via the ARC.

Illumos issues:
  4970 need controls on i/o issued by zpool import -XF
  4971 zpool import -T should accept hex values
  4972 zpool import -T implies extreme rewind, and thus a scrub
  4973 spa_load_retry retries the same txg
  4974 spa_load_verify() reads all data twice

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

9 years agoMFC r268713: MFV r268702:
delphij [Tue, 29 Jul 2014 05:41:54 +0000 (05:41 +0000)]
MFC r268713: MFV r268702:

Add missing *_destroy() calls in various places with ZFS.

Illumos issue:
  4975 missing mutex_destroy() calls in zfs

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

9 years agoMFC r269088:
trasz [Mon, 28 Jul 2014 22:25:27 +0000 (22:25 +0000)]
MFC r269088:

Fix ctl(4) kldload failure that manifested like this:

link_elf_obj: symbol icl_pdu_new_bhs undefined

PR: 192031
Submitted by: Nils Beyer (earlier version)
Sponsored by: FreeBSD Foundation

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

9 years agoMFC of R267935: Sync the E1000 shared code to Intel internal, and
jfv [Mon, 28 Jul 2014 21:11:18 +0000 (21:11 +0000)]
MFC of R267935: Sync the E1000 shared code to Intel internal, and
more importantly add new I218 adapter support to em.

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

9 years agoMFC r268236,268264,268524,268646,268802,269021:
marcel [Mon, 28 Jul 2014 02:07:16 +0000 (02:07 +0000)]
MFC r268236,268264,268524,268646,268802,269021:
This brings VHD support to mkimg(1); both dynamic and fixed file formats.
Dynamic VHD and VMDK file images are now sparsely written, meaning that
"free" sectors do not occupy space.

Relnotes: yes

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

9 years agoMFC r268766:
kib [Mon, 28 Jul 2014 01:25:49 +0000 (01:25 +0000)]
MFC r268766:
Do not ignore error from tmpfs_alloc_vp().

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

9 years agoMFC r268617:
kib [Mon, 28 Jul 2014 01:23:59 +0000 (01:23 +0000)]
MFC r268617:
Rework the tmpfs unmount.

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

9 years agoMFC r268615:
kib [Mon, 28 Jul 2014 01:21:02 +0000 (01:21 +0000)]
MFC r268615:
Add OBJ_TMPFS_NODE flag.

MFC r268616:
Set the OBJ_TMPFS_NODE flag for vm_object of VREG tmpfs node.

MFC r269053:
Correct assertion. tmpfs vm object is always at the bottom of
the shadow chain.

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

9 years agoMFC r268614:
kib [Mon, 28 Jul 2014 01:16:07 +0000 (01:16 +0000)]
MFC r268614:
Use tmpfs_vn_get_ino_gen() to handle the races with reclaim in tmpfs
dotdot lookup.

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

9 years agoMFC r268613:
kib [Mon, 28 Jul 2014 01:14:25 +0000 (01:14 +0000)]
MFC r268613:
Style.  Add comment about lock mode.

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

9 years agoMFC r268612:
kib [Mon, 28 Jul 2014 01:11:29 +0000 (01:11 +0000)]
MFC r268612:
Add helper helper vfs_write_suspend_umnt().

Fix the bug in the FFS unmount, when suspension failed, the ufs
extattrs were not reinitialized.

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

9 years agoMFC r268611:
kib [Mon, 28 Jul 2014 01:08:43 +0000 (01:08 +0000)]
MFC r268611:
Replace goto's with the return.

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

9 years agoMFC r268610:
kib [Mon, 28 Jul 2014 01:06:36 +0000 (01:06 +0000)]
MFC r268610:
Add convenience macro to assert tmpfs node lock.

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

9 years agoMFC r268609:
kib [Mon, 28 Jul 2014 01:04:33 +0000 (01:04 +0000)]
MFC r268609:
Add some assertions for the code handling vm_object for tmpfs vnode.

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

9 years agoMFC r268608:
kib [Mon, 28 Jul 2014 01:01:20 +0000 (01:01 +0000)]
MFC r268608:
The tmpfs_link() must not dereference the filesystem-specific data for
a vnode until it is verified that the vnode indeed belongs to tmpfs mount.

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

9 years agoMFC r268607:
kib [Mon, 28 Jul 2014 00:57:28 +0000 (00:57 +0000)]
MFC r268607:
In kern_linkat(), avoid passing doomed vnode to the VOP.

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

9 years agoMFC r268606:
kib [Mon, 28 Jul 2014 00:53:26 +0000 (00:53 +0000)]
MFC r268606:
Generalize vn_get_ino() to allow filesystems to use custom vnode
producer. Convert inline copies of vn_get_ino() in msdosfs and cd9660
into the uses of vn_get_ino_gen().

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

9 years agoMFC r268605:
kib [Mon, 28 Jul 2014 00:43:42 +0000 (00:43 +0000)]
MFC r268605:
Remove code separator lines which do not conform to style(9).

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

9 years agoMFC r269081:
kib [Sun, 27 Jul 2014 18:08:47 +0000 (18:08 +0000)]
MFC r269081:
Fix typo.

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

9 years agoMFC r269058:
mav [Sun, 27 Jul 2014 08:02:24 +0000 (08:02 +0000)]
MFC r269058:
Fix build with QUEUE_MACRO_DEBUG.

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

9 years agoMFC r269016:
pfg [Sat, 26 Jul 2014 02:41:18 +0000 (02:41 +0000)]
MFC r269016:
Fix mismatch.

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

9 years agoMFC r268401, r268495:
ian [Fri, 25 Jul 2014 23:36:39 +0000 (23:36 +0000)]
MFC r268401, r268495:

  Pending interrupt status is cleared by writing to the ISR, not the data reg.

  Use named constant rather than '0' to access the reset controller register.

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

9 years agoMFC r266565, r266651:
ian [Fri, 25 Jul 2014 23:29:55 +0000 (23:29 +0000)]
MFC r266565, r266651:

  Map device memory using PTE_DEVICE attributes, and also ensure that the
  shared flag is set on normal-memory mappings made via pmap_kenter() for SMP.

  The "shared flag" part of this change isn't obvious from the diff, here's
  the deal... by using the array of preformatted page table entry templates
  instead of constructing the PTE from scratch, we automatically get the
  right attribute bits set for both caching and shared.

  Fix whitespace glitches.

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

9 years agoMFC r263373, r268402
ian [Fri, 25 Jul 2014 23:21:36 +0000 (23:21 +0000)]
MFC r263373, r268402

  Add a way to apply CFLAGS only when building the given architecture.  This
  is useful primarily on a system used for cross-building, when you have a
  set of flags to apply to the TARGET_ARCH being cross-built but don't want
  those settings applied to building the cross-tools or other components that
  run on the build host machine.

  Support CXXFLAGS.${MACHINE_ARCH} as well as CFLAGS.  This allows different
  C++ options for toolchain versus target when cross-building.

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

9 years agoMFC r261530
ian [Fri, 25 Jul 2014 23:12:22 +0000 (23:12 +0000)]
MFC r261530

  Set the malloc alignment to 64 bytes on platforms that use the U-Boot API
  device drivers.  Recent versions of u-boot run with the MMU enabled, and
  require DMA-based I/O to be aligned to cache line boundaries.

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

9 years agoMFC r268985, r269001:
pfg [Fri, 25 Jul 2014 03:24:00 +0000 (03:24 +0000)]
MFC r268985, r269001:
Avoid possible cast degradation.

Assign iov_len first, avoiding the cast to uio_resid
(int in stdio) from degrading the value.

Small cosmetical fix while here.

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

9 years agoMFC r268640 and r268989.
np [Fri, 25 Jul 2014 00:30:55 +0000 (00:30 +0000)]
MFC r268640 and r268989.

r268640:
Allow multi-byte reads in the private CHELSIO_T4_GET_I2C ioctl.  The
firmware allows up to 48B to be read this way but the driver limits
itself to 8B at a time to remain compatible with old cxgbetool
binaries.

r268989:
Add missing newline to an error message.

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

9 years agoMFC r268957:
dim [Thu, 24 Jul 2014 20:16:45 +0000 (20:16 +0000)]
MFC r268957:

Run mtree for BSD.tests.dist during make xdev-install, if the tests are
enabled (which they are in the default configuration).  Otherwise, it
will fail because ${XDDESTDIR}/usr/include/atf-c does not exist.

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

9 years agoMFC r268466:
kib [Thu, 24 Jul 2014 16:33:29 +0000 (16:33 +0000)]
MFC r268466:
Calculate the amount of resident pages by looking in the objects chain
backing the region. Add a knob to disable the residency calculation at
all.

MFC r268490:
Unconditionally initialize addr to handle the case of changed map
timestamp while the map is unlocked.

MFC r268711:
Change the calculation of the kinfo_vmentry field kve_private_resident
to reflect its name.

MFC r268712:
Followup to r268466.
- Move the code to calculate resident count into separate function.
  It reduces the indent level and makes the operation of
  vmmap_skip_res_cnt tunable more clear.
- Optimize the calculation of the resident page count for map entry.
  Skip directly to the next lowest available index and page among the
  whole shadow chain.
- Restore the use of pmap_incore(9), only to verify that current
  mapping is indeed superpage.
- Note the issue with the invalid pages.

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

9 years agoMFC r267213 (by alc):
kib [Thu, 24 Jul 2014 16:29:44 +0000 (16:29 +0000)]
MFC r267213 (by alc):
Add a page size field to struct vm_page.

Approved by: alc

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

9 years agoMFC r268457 (by pluknet):
mav [Thu, 24 Jul 2014 15:49:28 +0000 (15:49 +0000)]
MFC r268457 (by pluknet):
Fix typos.

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

9 years agoMFC r268289:
mav [Thu, 24 Jul 2014 15:48:18 +0000 (15:48 +0000)]
MFC r268289:
Fix minor copy-paste bug in r268284.

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

9 years agoMFC r267612 (by trasz):
mav [Thu, 24 Jul 2014 15:42:32 +0000 (15:42 +0000)]
MFC r267612 (by trasz):
Get rid of unneccessary argument.

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

9 years agoMFC r267609 (by trasz):
mav [Thu, 24 Jul 2014 15:41:16 +0000 (15:41 +0000)]
MFC r267609 (by trasz):
Improve code a little; no functional changes.

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

9 years agoMFC r267608 (by trasz):
mav [Thu, 24 Jul 2014 15:38:49 +0000 (15:38 +0000)]
MFC r267608 (by trasz):
Use proper term in debug messages.

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

9 years agoMFC r266169 (by trasz):
mav [Thu, 24 Jul 2014 15:37:31 +0000 (15:37 +0000)]
MFC r266169 (by trasz):
Remove unused variable.

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

9 years agoMFC r267613 (by trasz):
mav [Thu, 24 Jul 2014 15:31:45 +0000 (15:31 +0000)]
MFC r267613 (by trasz):
Implement redirection handling in initiator.

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

9 years agoMFC r268947: Hide syscons-specific workaround under DEV_SC
emaste [Thu, 24 Jul 2014 15:18:19 +0000 (15:18 +0000)]
MFC r268947: Hide syscons-specific workaround under DEV_SC

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

9 years agoMFC r268420:
mav [Thu, 24 Jul 2014 14:55:45 +0000 (14:55 +0000)]
MFC r268420:
Remove IO_SYNC flag when writing extended file attributes on ZFS.

While it is possible to create and write file, modify its permissions, etc.
without ever doing sync, it looks odd that it is required for setting
extended file attributes on ZFS.  UFS does not do sync there too.

Samba uses those extended attributes to store some its data, and doing it
synchronously by many times reduces file creation performance for systems
without SLOG device.

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

9 years agoMFC r258471: Don't abort SMAP processing after an entry of length 0
emaste [Thu, 24 Jul 2014 14:24:27 +0000 (14:24 +0000)]
MFC r258471: Don't abort SMAP processing after an entry of length 0

  Length 0 is not special and should just be skipped.  This is the same
  behaviour as i386.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r268660:
kib [Thu, 24 Jul 2014 10:45:52 +0000 (10:45 +0000)]
MFC r268660:
Make amd64 pmap_copy_pages() functional for pages not mapped by DMAP.

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

9 years agoMFC r268384:
kib [Thu, 24 Jul 2014 10:43:15 +0000 (10:43 +0000)]
MFC r268384:
When the lock was stolen from us, retry the whole lock sequence in kernel,
instead of returning EINTR.

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

9 years agoMFC r268825:
kevlo [Thu, 24 Jul 2014 06:03:45 +0000 (06:03 +0000)]
MFC r268825:

Remove deprecated definition "m_act".

Suggested by: adrian, glebius

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

9 years agoMFC r268787:
kevlo [Thu, 24 Jul 2014 06:02:03 +0000 (06:02 +0000)]
MFC r268787:

Deprecate m_act.  Use m_nextpkt always.

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

9 years agoMFC r268643:
kevlo [Thu, 24 Jul 2014 05:59:32 +0000 (05:59 +0000)]
MFC r268643:

Document that listen(2) can fail with EDESTADDRREQ.

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

9 years agoMFC r268601:
kevlo [Thu, 24 Jul 2014 05:57:33 +0000 (05:57 +0000)]
MFC r268601:

Make bind(2) and connect(2) return EAFNOSUPPORT for AF_UNIX on wrong
address family.

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191586 for the
original discussion.

Reviewed by: terry

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

9 years agoMFC vtfontcvt improvements:
emaste [Thu, 24 Jul 2014 01:35:41 +0000 (01:35 +0000)]
MFC vtfontcvt improvements:

r267011: Make height and width optional arguments

  Now defaults to a 16x8 font size.  The height and width can be specified
  using -h and -w respectively.

r267012: Make the bold font optional

r267035: Use a hash to speed up glyph deduplication

  Walking a linked list of all glyphs to look for a duplicate is very slow
  for large fonts (e.g., for CJK character sets).  In my test the runtime
  for a sample 40000 character font went from just over 80 seconds on
  average to just over 2 seconds.

r267119: -w sets the width, not height

r267123: Support "GNU Unifont" format font data

  The GNU Unifont .hex format is a text file.  Each line represents one
  glyph and consists of a four-digit hex code point, a colon, and pairs of
  hex digits representing the bitmap.  By default an 8x16 font is assumed,
  with 16x16 double-width glyphs, resulting in either 32 or 64 hex digits
  for the bitmap.

  Our version of the file format supports comments at the top of the file
  to set the height and width:

  Each row of bitmap data is rounded up to byte width - for example, a
  10-pixel wide font uses 4 characters per row.

  See http://czyborra.com/unifont/ for more background on the original
  format.

r267126: Accept space after BITMAP in .bdf parser

  The Unifont BDF generator incorrectly adds a space after BITMAP, and
  and that error has been widely propagated.

r267173: use -h height and -w width args

r267298: Hide stats by default and improve error handling

  The font stats are interesting, but rather verbose.

r267301: Speed up bold glyph map deduplication

  Perform an O(n) deduplication pass over the bold maps at the end, rather
  than walking the normal map list to look for a duplicate glyph each time
  a bold mapping entry is added.

r267324: handle failure writing output font

r267337: move to usr.bin/vtfontcvt

  vtfontcvt is useful for end users to convert arbitrary bitmap fonts
  for use by vt(4).  It can also be used as a build tool, allowing us
  to keep the source font data in the src tree rather than uuencoded
  binaries.

  Reviewed by:  ray, wblock (D183)

r267366: Avoid leaking file pointer on error

  CID:          12225061222505

r268022: Rename the WITHOUT_VT_SUPPORT knob to WITHOUT_VT

  The _SUPPORT knobs have a consistent meaning which differs from the
  behaviour controlled by this knob.  As the knob is opt-out and has not
  appeared in a release the impact should be low.

r268172: correct width calculation (.hex files and commandline)

r268948: Use the standard way of printing the usage string

r268949: Remove redundant return statement after errx

Also update vtfontcvt(8), based on inclusion in FreeBSD 10.1

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC 267883:
jhb [Thu, 24 Jul 2014 00:02:39 +0000 (00:02 +0000)]
MFC 267883:
Expand r261243 even further and ignore any I/O port resources assigned to
PCI root bridges except for the one known-valid case on x86 where bridges
claim the I/O port registers used for PCI config space access.

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

9 years agoMFC r267812 (hrs): Fix ifname normalization. ifconfig_IF_alias{es,N} did not
dteske [Wed, 23 Jul 2014 22:47:00 +0000 (22:47 +0000)]
MFC r267812 (hrs): Fix ifname normalization. ifconfig_IF_alias{es,N} did not
work if ifname has any of [.-/+].

While here, also perform the following to reduce diff size between major
branches for etc/network.subr:

MFC r266475 (rea): Fix warning messages after r252015

$alias used to hold alias number, but now it carries full variable name,
so messages were tuned to account for that.

Other fixes:
 - eliminate unneeded double spaces;
 - tell user where inet/inet6 keywords are expected to be.

Reviewed by: hrs
Spotted by: jhay
PR: conf/191961

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

9 years agoMFC r268527: Remove unused readline header
emaste [Wed, 23 Jul 2014 19:38:29 +0000 (19:38 +0000)]
MFC r268527: Remove unused readline header

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

9 years agoMFC r263678: lldb: Invoke PT_KILL from ProcessPosix::DoDestroy
emaste [Wed, 23 Jul 2014 19:37:24 +0000 (19:37 +0000)]
MFC r263678: lldb: Invoke PT_KILL from ProcessPosix::DoDestroy

  We previously sent SIGKILL to the debuggee in DoDestroy, but did not
  actually detach or kill via ptrace.  It seems that this somehow didn't
  matter on Linux, but did on FreeBSD.

  This would happen when quitting LLDB while stopped at a breakpoint, for
  example.  The debuggee remained stopped in ptrace (with the signal
  either pending or lost).  After a timeout of a second or two LLDB exits,
  which caused the debuggee to resume and dump core from an unhandled
  SIGTRAP.

  BringProcessIntoLimbo is a poorly named wrapper for ptrace(PT_KILL)
  which is the desired behaviour from DoDestroy.

  http://llvm.org/pr18894

Sponsored by: DARPA, AFRL

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

9 years agoMFC r262528: Update LLDB snapshot to upstream r202189
emaste [Wed, 23 Jul 2014 19:35:02 +0000 (19:35 +0000)]
MFC r262528: Update LLDB snapshot to upstream r202189

  Highlights include (upstream revs in parens):

  - Improvements to the remote GDB protocol client
    (r196610, r197579, r197857, r200072, and others)

  - Bug fixes for big-endian targets
    (r196808)

  - Initial support for libdispatch (GCD) queues in the debuggee
    (r197190)

  - Add "step-avoid-libraries" setting
    (r199943)

  - IO subsystem improvements (including initial work on a curses gui)
    (r200263)

  - Support hardware watchpoints on FreeBSD
    (r201706)

  - Improved unwinding through hand-written assembly functions
    (r201839)

  - Handle DW_TAG_unspecified_parameters for variadic functions
    (r202061)

  - Fix Ctrl+C interrupting a running inferior process
    (r202086, r202154)

  - Various bug fixes for memory leaks, LLDB segfaults, the C++ demangler,
    ELF core files, DWARF debug info, and others.

Sponsored by: DARPA, AFRL

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

9 years agoMFC r265157: kldxref: Clean up error reporting
emaste [Wed, 23 Jul 2014 14:30:58 +0000 (14:30 +0000)]
MFC r265157: kldxref: Clean up error reporting

  Omit "too many sections" warnings if the ELF file is not dynamically
  linked (and is therefore skipped anyway), and otherwise output it only
  once.  An errant core file would previously cause kldxref to output a
  number of warnings.

  Also introduce a MAXSEGS #define and replace literal 2 with it, to make
  comparisons clear.

Reviewed by: kib
Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r261799: Add bounds check for pteindex / pdeindex to amd64 kvm_minidump
emaste [Wed, 23 Jul 2014 14:29:28 +0000 (14:29 +0000)]
MFC r261799: Add bounds check for pteindex / pdeindex to amd64 kvm_minidump

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

9 years agoMFC r266630 by dim:
emaste [Wed, 23 Jul 2014 14:27:04 +0000 (14:27 +0000)]
MFC r266630 by dim:

  Add the clang patch for r265477.  While here, add a description to the
  patch for r263619, and unify all the URLs to point to svnweb

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

9 years agoMFC r265477: Merge -fstandalone-debug from Clang r198655:
emaste [Wed, 23 Jul 2014 14:25:47 +0000 (14:25 +0000)]
MFC r265477: Merge -fstandalone-debug from Clang r198655:

  Implement a new -fstandalone-debug option. rdar://problem/15685848
  It controls everything that -flimit-debug-info used to, plus the
  vtable type optimization. The old -fno-limit-debug-info option is now an
  alias to -fstandalone-debug and vice versa.

  Standalone is the default on Darwin until dtrace is updated to work with
  non-standalone debug info (rdar://problem/15758808).

  Note: I kept the LimitedDebugInfo name in CodeGenOptions::DebugInfoKind
  because NoStandaloneDebugInfo sounded even more confusing.

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

9 years agoMFC r268928:
pfg [Wed, 23 Jul 2014 02:55:03 +0000 (02:55 +0000)]
MFC r268928:
Const-ify a character string.

Obtained from: Apple Inc. (Libc 997.90.3)

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

9 years agoMFC r268473: MFV r268455:
delphij [Wed, 23 Jul 2014 00:49:35 +0000 (00:49 +0000)]
MFC r268473: MFV r268455:

Use reserved space for ZFS administrative commands.

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

9 years agoMFC r260156: MFV r260152:
delphij [Wed, 23 Jul 2014 00:46:56 +0000 (00:46 +0000)]
MFC r260156: MFV r260152:

4208 Typo in zfs_main.c: "posxiuser"

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

9 years agoMFC r268470: MFV r268454:
delphij [Wed, 23 Jul 2014 00:41:11 +0000 (00:41 +0000)]
MFC r268470: MFV r268454:

Refresh zpool list for each interval in order to produce fresh
output.

Illumos issue: 4966 zpool list iterator does not update output

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

9 years agoMFC r268469: MFV r268453:
delphij [Wed, 23 Jul 2014 00:38:23 +0000 (00:38 +0000)]
MFC r268469: MFV r268453:

Diff reduction against Illumos.

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

9 years agoMFC r268464: MFV r268452:
delphij [Wed, 23 Jul 2014 00:35:06 +0000 (00:35 +0000)]
MFC r268464: MFV r268452:

Explicitly mark file removal transactions as "presumed to result
in a net free of space" so they will not fail with ENOSPC.

Illumos issue: 4950 files sometimes can't be removed from a full
filesystem

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

9 years agoMFC debug info for variadic functions
emaste [Tue, 22 Jul 2014 23:16:28 +0000 (23:16 +0000)]
MFC debug info for variadic functions

r264826: Merge LLVM r202188:

    Debug info: Support variadic functions.
    Variadic functions have an unspecified parameter tag after the last
    argument. In IR this is represented as an unspecified parameter in the
    subroutine type.

    Paired commit with CFE r202185.

    rdar://problem/13690847

    This re-applies r202184 + a bugfix in DwarfDebug's argument handling.

  This merge includes a change to use the LLVM 3.4 API in
  lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp:

  DwarfUnit -> CompileUnit

r264827: Merge Clang r202185:

    Debug info: Generate debug info for variadic functions.
    Paired commit with LLVM.

    rdar://problem/13690847

  This merege includes changes to use the Clang 3.4 API (revisions
  199686 and 200082) in lib/CodeGen/CGDebugInfo.cpp:

  getParamType  -> getArgType
  getNumParams  -> getNumArgs
  getReturnType -> getResultType

r264828: Add patches corresponding to r264826 and r264827

Sponsored by: DARPA, AFRL

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