summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r296656:mav2016-03-281-0/+6
| | | | Don't bother to invoke gmirror or zpool if the module is not loaded.
* MFC r296655, r296673, r296776: Unify and improve metadata wiping.mav2016-03-281-23/+17
|
* MFC r296654: Use `geom disk list` instead `camcontrol identify`.mav2016-03-281-2/+2
| | | | The new way works for almost any disk, while the old only for ATA.
* MFC r297051: Fix incorrect (fortunately bigger) malloc size.mav2016-03-281-1/+1
|
* MFC r297049: Add IDs for Intel Wellsburg USB controllers.mav2016-03-282-0/+6
|
* MFC r295463 (by hselasky): Correct PCI device description.mav2016-03-281-1/+1
|
* MFC r275137 (by adrian): Add PCI ID for Intel Lynx Point LP controller.mav2016-03-281-0/+2
| | | | PR: kern/195398
* MFC r296449: Update meaning of -n argument.mav2016-03-281-5/+6
|
* MFC r296095:pfg2016-03-271-1/+1
| | | | | | | | rpc: fix failure to clear string by passing the wrong size to memset. Noted by NetBSD's PR/21014 Obtained from: NetBSD (CVS Rev. 1.24, 1.25)
* MFC r297206:kib2016-03-271-1/+1
| | | | Fix locking mistake in softdep_waitidle().
* Revert r297303.dchagin2016-03-271-15/+1
|
* MFC r296501:dchagin2016-03-271-0/+12
| | | | | | Link the newly created process to the corresponding parent as if CLONE_PARENT is set, then the parent of the new process will be the same as that of the calling process.
* MFC r296502, r296543, r296546, r297060:dchagin2016-03-271-14/+17
| | | | | | | | | 1. Limit secs to INT32_MAX / 2 to avoid errors from kern_setitimer(). Assert that kern_setitimer() returns 0. Remove bogus cast of secs. Fix style(9) issues. 2. Increment the return value if the remaining tv_usec value more than 500000 as a Linux does.
* MFC r296503, r296504:dchagin2016-03-271-1/+15
| | | | Linux accept() system call return EOPNOTSUPP errno instead of EINVAL for UDP sockets.
* MFC r297063:dchagin2016-03-271-10/+28
| | | | | | | | | | | | Whitespaces, style(9) fixes. No functional changes. MFC r297070: Return EOVERFLOW in case when actual statfs values are large enough and not fit into 32 bit fileds of a Linux struct statfs. MFC r297072: Check bsd_to_linux_statfs() return value.
* MFC r297062:dchagin2016-03-2710-14/+58
| | | | Regen for r297061 (fstatfs64 Linux syscall).
* MFC r297061;dchagin2016-03-275-4/+23
| | | | | | | Implement fstatfs64 system call. PR: 181012 Submitted by: John Wehle
* MFC r296652:kib2016-03-251-10/+12
| | | | | Do not perform unneccessary shared recursion on the allproc_lock in pfs_visible().
* MFC r297037:pfg2016-03-251-1/+2
| | | | | | | | | | | aio_qphysio(): Avoid uninitialized pointer read on error. For the !unmap case it may happen that pbuf gets called unreferenced when vm_fault_quick_hold_pages() fails. Initialize it so it doesn't cause trouble. CID: 1352776 Reviewed by: jhb
* MFC r296394:pfg2016-03-251-9/+5
| | | | | | | | | | | | | | xdr: Fix xdr_rpc* defines. The defines for xdr_rpc* in xdr.h are wrong. It could be very well that Solaris did strip the '_t' from xdr_u_int32_t, but Solaris has a xdr_u_int32 function, we don't have this. So all of this defines will lead to an unresolved symbol. This explains why we do not use these functions in FreeBSD while they are used in Illumos/Solaris. Obtained from: linux libtirpc (git 7864122e61ffe4db1aa8ace89117358a1e3a391b)
* MFC r292254:hselasky2016-03-243-6/+11
| | | | | | | | | | | | | | | | | | Properly drain callouts in the IPFW subsystem to avoid use after free panics when unloading the dummynet and IPFW modules: - The callout drain function can sleep and should not be called having a non-sleepable lock locked. Remove locks around "ipfw_dyn_uninit(0)". - Add a new "dn_gone" variable to prevent asynchronous restart of dummynet callouts when unloading the dummynet kernel module. - Call "dn_reschedule()" locked so that "dn_gone" can be set and checked atomically with regard to starting a new callout. PR: 208171 Requested by: Franco Fichtner (opnsense.org) Differential Revision: https://reviews.freebsd.org/D3855
* MFC r297137:kib2016-03-241-1/+1
| | | | Fix typo.
* MFC r279091.np2016-03-231-1/+3
| | | | Add cxl(4) and if_cxl(4) as links to cxgbe(4).
* MFC r296557:ae2016-03-232-0/+88
| | | | | Add support for IPPROTO_IPV6 socket layer for getsockopt/setsockopt calls. Also add mapping for several options from RFC 3493 and 3542.
* MFC r296766:ngie2016-03-224-0/+40
| | | | | | | | | | | | Better handle filesystems mounted with -o noexec ftruncate/11, open/20, and truncate/11 copy sleep(1) to a temporary file on the target filesystem, execute the binary, then expect a result. This doesn't work with scenarios where the target binary cannot be executed, e.g. the filesystem was mounted with -o noexec. Ensure the filesystem hasn't been mounted with -o noexec for the testcases before executing them.
* MFC r296819:bdrewery2016-03-211-7/+5
| | | | Reword SX_NOADAPTIVE description to be clear that adaptive is default.
* MFC r277629 (by will):mav2016-03-211-2/+2
| | | | | | When creating or updating a node, use vfs_timestamp() for "now" instead of gethrestime(), to allow the administrator to decide the appropriate timestamp precision instead of always using nanosecond precision.
* MFC r296467:kib2016-03-211-41/+92
| | | | | Convert all panics from the link_elf_obj kernel linker for object files format into printfs and errors to caller.
* MFC r296816:pfg2016-03-213-14/+14
| | | | | | | | | | libdtrace: use calloc(3) instead of malloc(3) when it makes sense. calloc(3) is faster and occasionally safer than malloc(3) + bzero(3). In one case, pointed out by Mark[1], this also cleans up a calculation. Reviewed by: markj [1]
* MFC r296617: Revert r292074 (by smh): Limit stripesize reported frommav2016-03-214-36/+1
| | | | | | | | | | | nvd(4) to 4K I believe that this patch handled the problem from the wrong side. Instead of making ZFS properly handle large stripe sizes, it made unrelated driver to lie in reported parameters to workaround that. Alternative solution for this problem from ZFS side was committed at r296615.
* MFC r296020:smh2016-03-211-10/+8
| | | | | | Fix NULL pointer dereferences Sponsored by: Multiplay
* MFC r296615: Make ZFS ignore stripe sizes above SPA_MAXASHIFT (8KB).mav2016-03-211-1/+1
| | | | | | | If device has stripe size bigger then maximal sector size supported by ZFS, there is nothing can be done to avoid read-modify-write cycles. Taking that stripe size into account will only reduce space efficiency and pointlessly bother user with warnings that can not be fixed.
* MFC r296613: Make ZFS more picky to GEOM stripe sizes and offsets.mav2016-03-211-1/+2
| | | | | | Use of misaligned or non-power-of-2 stripes is not really useful for ZFS, since increased ashift won't help to avoid read-modify-write cycles, and only reduce pool space efficiency and compression rates.
* MFC r296541: MFV r296540: 4448 zfs diff misprints unicode charactersmav2016-03-211-6/+8
| | | | | | | | | Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Matthew Ahrens <mahrens@delphix.com> Author: Joshua M. Clulow <jmc@joyent.com> illumos/illumos-gate@b211eb9181f99c20acbf4c528f94cb44b4ca8c31
* MFC r296539: MFV r296538:mav2016-03-211-1/+1
| | | | | | | | | | 6544 incorrect comment in libzfs.h about offline status Reviewed by: Matthew Ahrens <mahrens@delphix.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Gerhard Roethlin <git@the-color-black.net> illumos/illumos-gate@cb605c4d8ab24b5a900b8b4ca85db65c22d05fad
* MFC r296537: MFV r296536: 6551 cmd/zpool: cleanup gcc warningsmav2016-03-213-34/+13
| | | | | | | | Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Robert Mustacchi <rm@joyent.com> illumos/illumos-gate@b327cd3f3b4dab4f29e7140159b1e01ed2ceef2a
* MFC r296535: MFV r296534: 6550 cmd/zfs: cleanup gcc warningsmav2016-03-211-17/+37
| | | | | | | | | Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Igor Kozhukhov <ikozhukhov@gmail.com> illumos/illumos-gate@c16bcc4577f389573eff411c7b7e040294078c3b
* MFC r296533: MFV r296532: 6637 replacing "dontclose" with "should_close"mav2016-03-211-3/+3
| | | | | | | | | Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: David Schwartz <dschwartz783@gmail.com> illumos/illumos-gate@d189620258b3c9b0e2f7e2104840be2eee7c68e5
* MFC r296530: MFV r296529:mav2016-03-212-5/+8
| | | | | | | | | | | | | | 6672 arc_reclaim_thread() should use gethrtime() instead of ddi_get_lbolt() 6673 want a macro to convert seconds to nanoseconds and vice-versa Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Eli Rosenthal <eli.rosenthal@delphix.com> illumos/illumos-gate@a8f6344fa0921599e1f4511e41b5f9a25c38c0f9
* MFC r296528: MFV r296527: 6659 nvlist_free(NULL) is a no-opmav2016-03-2112-40/+20
| | | | | | | | | Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Marcel Telka <marcel@telka.sk> Approved by: Robert Mustacchi <rm@joyent.com> Author: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> illumos/illumos-gate@aab83bb83be7342f6cfccaed8d5fe0b2f404855d
* MFC r296523: MFV r296522:mav2016-03-212-1/+7
| | | | | | | | | | | | 6541 Pool feature-flag check defeated if "verify" is included in the dedup property value Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Richard Laager <rlaager@wiktel.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: ilovezfs <ilovezfs@icloud.com> illumos/illumos-gate@971640e6aa954c91b0706543741aa4570299f4d7
* MFC r296521: MFV r296520:mav2016-03-211-3/+28
| | | | | | | | | | | | 6562 Refquota on receive doesn't account for overage Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Gordon Ross <gwr@nexenta.com> Author: Dan McDonald <danmcd@omniti.com> illumos/illumos-gate@5f7a8e6d750cb070a3347f045201c6206caee6aa
* MFC r296519: MFV r296518: 5027 zfs large block support (add copyright)mav2016-03-2151-0/+51
| | | | | | Author: Matthew Ahrens <matt@mahrens.org> illumos/illumos-gate@c3d26abc9ee97b4f60233556aadeb57e0bd30bb9
* MFC r296516: MFV r296515:mav2016-03-212-1/+14
| | | | | | | | | | | | 6536 zfs send: want a way to disable setting of DRR_FLAG_FREERECORDS Reviewed by: Anil Vijarnia <avijarnia@racktopsystems.com> Reviewed by: Kim Shrier <kshrier@racktopsystems.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Andrew Stormont <astormont@racktopsystems.com> illumos/illumos-gate@880094b6062aebeec8eda6a8651757611c83b13e
* MFC r296514: MFV r296513:mav2016-03-211-4/+50
| | | | | | | | | | | | | 6450 scrub/resilver unnecessarily traverses snapshots created after the scrub started Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Reviewed by: Richard Elling <Richard.Elling@RichardElling.com> Approved by: Richard Lowe <richlowe@richlowe.net> Author: Matthew Ahrens <mahrens@delphix.com> illumos/illumos-gate@38d61036746e2273cc18f6698392e1e29f87d1bf
* MFC r296512: MFV r296511: 6537 Panic on zpool scrub with DEBUG kernelmav2016-03-211-2/+4
| | | | | | | | | | | Reviewed by: Steve Gonczi <gonczi@comcast.net> Reviewed by: Dan McDonald <danmcd@omniti.com> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Approved by: Matthew Ahrens <mahrens@delphix.com> Author: Gary Mills <gary_mills@fastmail.fm> illumos/illumos-gate@8c04a1fa3f7d569d48fe9b5342d0bd4c533179b9
* MFC r296510, r296563, r296567: MFV r296505:mav2016-03-2116-166/+896
| | | | | | | | | | | | 6531 Provide mechanism to artificially limit disk performance Reviewed by: Paul Dagnelie <pcd@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Prakash Surya <prakash.surya@delphix.com> illumos/illumos-gate@97e81309571898df9fdd94aab1216dfcf23e060b
* MFC r296021 (by smh): Removed unused label and fix mutex_exit ordermav2016-03-211-2/+1
| | | | | | Remove unused done label from zfs_setacl fixing PVS-Studio V729. Fix mutex_exit order to mirror the mutex_enter order.
* MFC r295125: MFV r294821:mav2016-03-211-22/+36
| | | | | | | | | | | | | | | | | | | | | | | | 6529 Properly handle updates of variably-sized SA entries. Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Ned Bass <bass6@llnl.gov> Reviewed by: Tim Chase <tim@chase2k.com> Approved by: Gordon Ross <gwr@nexenta.com> Author: Andriy Gapon <avg@icyb.net.ua> illumos/illumos-gate@e7e978b1f75353cb29673af9b35453c20c2827bf During the update process in sa_modify_attrs(), the sizes of existing variably-sized SA entries are obtained from sa_lengths[]. The case where a variably-sized SA was being replaced neglected to increment the index into sa_lengths[], so subsequent variable-length SAs would be rewritten with the wrong length. This patch adds the missing increment operation so all variably-sized SA entries are stored with their correct lengths. Another problem was that index into attr_desc[] was increased even when an attribute was removed. If that attribute was not the last attribute, then the last attribute was lost.
* MFC r295047: MFV 295046:mav2016-03-211-2/+4
| | | | | | | | | | | | | 6358 A faulted pool with only unavailable vdevs triggers assertion failure in libzfs Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Serban Maduta <serban.maduta@gmail.com> Approved by: Dan McDonald <danmcd@omniti.com> Author: Dan Vatca <dan.vatca@gmail.com> illumos/illumos-gate@b289d045e084af53efcc025255af8242e41f28fa
OpenPOWER on IntegriCloud