Displaying 1 50 of 491,344 commits (0.032s)

PC-BSD — sys/cddl/contrib/opensolaris/uts/common/fs/zfs dsl_scan.c, sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys dsl_scan.h

    Another patch from the origin for the sorted scan.  This is
    
https://github.com/zfsonlinux/zfs/pull/6256/commits/025d5cb56edf456b2d018ee6473fcad826ab0235.patch
    with the usual additions and omissions to build on FreeBSD.

PC-BSD — usr.sbin/nfsd nfsd.c

nfsdargs isn't used anymore
Delta File
+0 -1 usr.sbin/nfsd/nfsd.c
+0 -1 1 file

PC-BSD — sys/cddl/contrib/opensolaris/uts/common/fs/zfs dsl_scan.c

Merge branch 'freenas/11-stable' into freenas/11-stable-pNFS
∈ Kris Moore - 3c6a1ec1 - 2017-10-19 15:03:18
Fix build failure, the event notification isn't used in freenas/master

PC-BSD — sys/cddl/contrib/opensolaris/uts/common/fs/zfs dsl_scan.c

Fix build failure, the event notification isn't used in freenas/master

PC-BSD — cddl/contrib/opensolaris/cmd/zdb zdb.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c

    Sef zfs sorted scrub2 (#36)
    
    * (Mostly) merge in the zfs scrub improvements.
    
    (cherry picked from commit 52a96a5ceae1a0db7ecde65c044698b26c216ec8)
    
    * The last of the original set of sorted scrub commits:  this
    updates 'zpool status', and the data structures for it.  This
    might be an ABI issue, although I think it's safe as long
    as the new elements are at the end of the structure.
    
    (cherry picked from commit 1aec521c8dd8781f7fcde44686ff99d7d16d9253)
    
    * Second set of patches from Sequential Scrubs and Resilvers,
    
https://github.com/zfsonlinux/zfs/pull/6256/commits/aadfe2e95dab1c34e0af9aa1c62f299599ccb4c4
    
    (cherry picked from commit 29f9a5376063084d2d7bd52bc84a731d2add67d4)
    
    * Third commit from Sequential Scrubs and Resilvers
    
https://github.com/zfsonlinux/zfs/pull/6256/commits/7e635624c2bbd3f499f63f614e65f84c65a313ec
    
    (cherry picked from commit bb47d380630c3bb46514896fdc2d9208785a5aaf)
    

    [9 lines not shown]

PC-BSD — cddl/contrib/opensolaris/cmd/zdb zdb.c, cddl/contrib/opensolaris/cmd/zpool zpool_main.c

    Sef zfs sorted scrub2 (#36)
    
    * (Mostly) merge in the zfs scrub improvements.
    
    (cherry picked from commit 52a96a5ceae1a0db7ecde65c044698b26c216ec8)
    
    * The last of the original set of sorted scrub commits:  this
    updates 'zpool status', and the data structures for it.  This
    might be an ABI issue, although I think it's safe as long
    as the new elements are at the end of the structure.
    
    (cherry picked from commit 1aec521c8dd8781f7fcde44686ff99d7d16d9253)
    
    * Second set of patches from Sequential Scrubs and Resilvers,
    
https://github.com/zfsonlinux/zfs/pull/6256/commits/aadfe2e95dab1c34e0af9aa1c62f299599ccb4c4
    
    (cherry picked from commit 29f9a5376063084d2d7bd52bc84a731d2add67d4)
    
    * Third commit from Sequential Scrubs and Resilvers
    
https://github.com/zfsonlinux/zfs/pull/6256/commits/7e635624c2bbd3f499f63f614e65f84c65a313ec
    
    (cherry picked from commit bb47d380630c3bb46514896fdc2d9208785a5aaf)
    

    [9 lines not shown]

PC-BSD — sys/cddl/contrib/opensolaris/uts/common/fs/zfs arc.c dbuf.c

Fix few more space diffs.

PC-BSD — sys/netinet ip_carp.c

Relax per-ifnet cif_vrs list double locking in carp(4).

In all cases where cif_vrs list is modified, two locks are held: per-ifnet
CIF_LOCK and global carp_sx.  It means to read that list only one of them
is enough to be held, so we can skip CIF_LOCK when we already have carp_sx.

This fixes kernel panic, caused by attempts of copyout() to sleep while
holding non-sleepable CIF_LOCK mutex.

Discussed with:        glebius
Sponsored by:        iXsystems, Inc.
Ticket:                #24101

(cherry picked from commit 9dea4c2ca08cf5dbeb4e593346dd869b90d83a6a)
Delta File
+6 -11 sys/netinet/ip_carp.c
+6 -11 1 file

PC-BSD — lib/libc/sys write.2

Merge branch 'master' of https://github.com/freebsd/freebsd into freenas/master
∈ emaste - 6ae7756d - 2017-10-17 02:53:42
Remove lib/libstand again, accidentally readded in r324683
∈ emaste - 999a7f34 - 2017-10-17 02:51:45
write.2: correct maximum nbytes size for EINVAL error

In FreeBSD 11 and later debug.iosize_max_clamp defaults to 0, and the
maximum nbytes count for write(2) is SSIZE_MAX. Update the man page to
document this, and mention the sysctl that can be set to obtain the
previous behaviour.

PR:                196666
MFC after:        1 week
Sponsored by:        The FreeBSD Foundation
Delta File
+7 -2 lib/libc/sys/write.2
+7 -2 1 file

PC-BSD — etc/periodic/daily 480.leapfile-ntpd

Style. Replace 8 spaces with a tab.

MFC after:        2 weeks (with prior commit to this file)

PC-BSD — etc/defaults periodic.conf, etc/periodic/daily 480.leapfile-ntpd

Provide an option to run the anticongestion ntpd leapfile fetch in
the background.

Original patch submitted by feld@. I added the "optional" bit.

Submitted by:        feld (original patch)
MFC after:        2 weeks

PC-BSD — sys/gdb gdb_main.c

gdb kernel server: fixup Search:memory style

This is a NFC patch to move around the Search:memory implementation so
that it doesn't exceed the standard column width and doesn't take so
much vertical space in gdb_trap.

Submitted by:        Daniel O'Connor <darius at dons.net.au>
Reviewed by:        cem, jhb
Sponsored by:        Dell EMC Isilon
Differential Revision:        https://reviews.freebsd.org/D12684
Delta File
+28 -21 sys/gdb/gdb_main.c
+28 -21 1 file

PC-BSD — sys/fs/nfs nfs_commonport.c, sys/fs/nfsclient nfs_clrpcops.c

Use taskqueue(9) to do writes/commits to mirrored DSs concurrently.

When the NFSv4.1 pNFS client is using a Flexible File Layout specifying
mirrored Data Servers, it must do the writes and commits to all mirrors.
This patch modifies the client to use a taskqueue to perform these writes
and commits concurrently.
The number of threads can't be changed for taskqueue(9), so it is set
to 4 * mp_ncpus by default, but this can be overridden by setting the
sysctl vfs.nfs.pnfsiothreads.

Differential Revision:        https://reviews.freebsd.org/D12632

PC-BSD — sys/kern uipc_mbuf.c

mbuf(9): unbreak m_fragment()

- Fix it by replacing m_cat() with m_prev->m_next = m_new
(m_cat() will try to append data - as a result, there will be no
fragmentation).
- Move some constants out of the loop.

Was previously tested with D4077.

Differential Revision:        https://reviews.freebsd.org/D4090
Delta File
+27 -30 sys/kern/uipc_mbuf.c
+27 -30 1 file

PC-BSD — usr.sbin/nfsd nfsd.c

s/space/tab/
Delta File
+1 -1 usr.sbin/nfsd/nfsd.c
+1 -1 1 file

PC-BSD — usr.sbin/nfsd nfsd.c

Ability to specify a "virtual" hostname principal for NFSD

Ticket: #25630
Delta File
+21 -1 usr.sbin/nfsd/nfsd.c
+21 -1 1 file

PC-BSD — sys/net if_clone.c

ifnet(9): split ifc_alloc_unit() (should simplify code flow)

Allocate smallest unit number from pool via ifc_alloc_unit_next()
and exact unit number (if available) via ifc_alloc_unit_specific().

While here, address possible deadlock (mentioned in PR).

PR:                217401
MFC after:        5 days
Differential Revision:        https://reviews.freebsd.org/D12551
Delta File
+36 -24 sys/net/if_clone.c
+36 -24 1 file

PC-BSD — sys/kern kern_sig.c

Re-evaluate thread' signal mask after ptracestop().

The stop drops process lock, which allows the signal mask to be
changed and our selected signal might become blocked, i.e. should be
returned to the process queue instead of delivery.

Also, for the existing check of the process no longer having an
attached debugger, we should not loose the signal, but requeue it.

Reported and tested by:        bdrewery
Reviewed by:        jhb
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+24 -7 sys/kern/kern_sig.c
+24 -7 1 file

PC-BSD — sys/kern kern_sig.c

Improve assertion that an ignored or blocked signal is not delivered.

Split two conditions into separate asserts.  Print additional details,
like the signal number and action value.

Reviewed by:        jhb
Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+4 -2 sys/kern/kern_sig.c
+4 -2 1 file

PC-BSD — sys/kern kern_sig.c

Style.

Sponsored by:        The FreeBSD Foundation
MFC after:        1 week
Delta File
+8 -7 sys/kern/kern_sig.c
+8 -7 1 file

PC-BSD — tests/sys/kern ptrace_test.c

This child is expected to exit on SIGTRAP, don't leave a core behind.

MFC after:        1 week
Sponsored by:        Dell EMC Isilon
Delta File
+4 -0 tests/sys/kern/ptrace_test.c
+4 -0 1 file

PC-BSD — lib/libgeom libgeom.3 Makefile

Add a quick description of the geom_getxml(3), geom_xml2tree(3),
geom_gettree(3) and geom_deletetree(3) functions provided by libgeom and are
not documented in libgeom(3).

Reviewed by:        mav, bjk, allanjude
Approved by:        allanjude
Differential Revision:        https://reviews.freebsd.org/D12679
Delta File
+53 -1 lib/libgeom/libgeom.3
+4 -0 lib/libgeom/Makefile
+57 -1 2 files

PC-BSD — sys/kern subr_unit.c

Properly reset the fields in clean_unrhdr.

In r324542 I neglected to reset the first and last fields of struct
unrhdr. This causes a tmpfs to fail the unr(9) consistency checks with
DIAGNOSTIC on. Fix this by resetting the fields by calling init_unrhdr.
While here, change a loop to use TAILQ_FOREACH_SAFE since it is more
readable and equally fast.

Reported by:        David Wolfskill <david at catwhisker.org>
Approved by:        rstone (mentor)
Sponsored by:        Dell EMC Isilon
Delta File
+4 -5 sys/kern/subr_unit.c
+4 -5 1 file

PC-BSD — sys/amd64/amd64 pmap.c, sys/amd64/include pmap.h

Fix the pv_chunks pc_lru tailq handling in reclaim_pv_chunk().

For processing, reclaim_pv_chunk() removes the pv_chunk from the lru
list, which makes pc_lru linkage invalid.  Then the pmap lock is
released, which allows for other thread to free the last pv entry
allocated from the chunk and call free_pv_chunk(), which tries to
modify the invalid linkage.

Similarly, the chunk is inserted into the private tailq new_tail
temporary.  Again, free_pv_chunk() might be run and corrupt the
linkage for the new_tail after the pmap lock is dropped.

This is a consequence of r299788 elimination of pvh_global_lock, which
allowed for reclaim to run in parallel with other pmap calls which
free pv chunks.

As a fix, do not remove the chunk from pc_lru queue, use a marker to
remember the position in the queue iteration.  We can safely operate
on the chunks after the chunk's pmap is locked, we fetched the chunk
after the marker, and we checked that chunk pmap is same as we have
locked, because chunk removal from pc_lru requires both pv_chunk_mutex
and the pmap mutex owned.

Note that the fix lost an optimization which was present in the
previous algorithm.  Namely, new_tail requeueing rotated the pv chunks

    [9 lines not shown]
Delta File
+44 -19 sys/amd64/amd64/pmap.c
+11 -4 sys/amd64/include/pmap.h
+55 -23 2 files

PC-BSD — tests/sys/netpfil/pf set_tos.sh pass_block.sh

pf tests: Use pft_set_rules everywhere

We now have a utility function to set pf rules in the jail. Use it
whenever we need to set the pf rules in the test jail.

PC-BSD — tests/sys/netpfil/pf forward.sh pft_ping.py

pf tests: Basic IPv6 forwarding tests

Pass/block packets in the forwarding path with pf.

Introduce the pft_set_rules() helper function, because we need to
remember to flush states between individual tests. If not we can get
packets passing despite rules blocking them because they match states
created in a previous test.

Extend pft_ping.py to be able to send IPv6 echo requests.

PC-BSD — tests/sys/netpfil/pf set_tos.sh pft_ping.py

pf: test set-tos

Introduce tests for the set-tos feature of pf. Teach pft_ping.py to send
and verify ToS flags.

PC-BSD — sys/dev/sound/pci/hda hdac.h hdac.c

Add Creative vendor ID.

MFC after:        1 week

PC-BSD — lib/libc/arm/gen getcontextx.c Makefile.inc, sys/arm/arm machdep.c sys_machdep.c

Save VFP state in getcontext(3) on ARM.
This is a last followup of r315974, which fixes userland part
of VFP save/restore problems described in PR 217611.

PR:                217611
MFC after:        2 weeks

PC-BSD — share/man/man4 bridge.4

Update details of interface capabilities changed by bridge(4).

PR:                221122
MFC after:        1 week
Delta File
+6 -3 share/man/man4/bridge.4
+6 -3 1 file

PC-BSD — usr.sbin/wlandebug wlandebug.c

wlandebug(8): add a sanity check.
Delta File
+3 -0 usr.sbin/wlandebug/wlandebug.c
+3 -0 1 file

PC-BSD — usr.sbin/wlandebug wlandebug.c Makefile

wlandebug(8): obtain original interface name via ifconfig_get_orig_name()

PC-BSD — lib/libifconfig libifconfig.c libifconfig.h

libifconfig: allow to get original interface name via ifconfig_get_orig_name()

Uses the same method as in tools/tools/ifinfo/ifinfo.c
(via net.link.generic sysctl).

Tested with modified wlandebug(8).

Differential Revision:        https://reviews.freebsd.org/D12554

PC-BSD — sys/boot/libsa Makefile

Remove the libstand directory which is now empty.
∈ imp - 94a5d65a - 2017-10-16 03:59:58
Explicitly inlcude SYSDIR in the include path -- need machine path too?
Delta File
+1 -1 sys/boot/libsa/Makefile
+1 -1 1 file

PC-BSD — sys/boot defs.mk loader.mk, sys/boot/arm/uboot Makefile

LOADER_foo_SUPPORTED

PC-BSD — sys/boot defs.mk loader.mk, sys/boot/arm/uboot Makefile

Move all the ficl common code into ficl.mk

There's a number of copies of basically identical code to enable
building forth in /boot/loader. Move it all into ficl.mk.

PC-BSD — sys/boot defs.mk Makefile.inc

create defs.mk for common definitions

PC-BSD — sys/boot ficl.mk

tweak style
Delta File
+1 -2 sys/boot/ficl.mk
+1 -2 1 file

PC-BSD — sys/boot/arm/uboot Makefile, sys/boot/efi/boot1 Makefile

Move common/Makefile.inc to sys/boot/loader.mk.

Makefile.inc has a specific meaning in the tree, and
common/Makefile.inc doesn't quite fit into that. Rename it to
loader.mk and it will be a place to collect common things to all
/boot/loader programs there.

Sponsored by: Netflix

PC-BSD — sys/boot/common Makefile.inc, sys/boot/efi/libefi Makefile

Rename top level Makefile.ficl to ficl.mk.

PC-BSD — sys/boot Makefile

Move orphaned man pages into new man directory from common. This helps
keep cleaer that common is just for the MI files for /boot/loader
programs.

Sponsored by: Netflix
Delta File
+1 -1 sys/boot/Makefile
+1 -1 1 file

PC-BSD — sys/boot/efi/boot1 boot1.c zfs_module.c, sys/boot/efi/libefi Makefile

Unify boot1 with loader

Refactor boot1 to use the same I/O code as /boot/loader uses. Refactor
to use the common efi_main.c.

Submitted by: Eric McCorkle
Differential Revision: https://reviews.freebsd.org/D10447

PC-BSD — sys/cam/ata ata_da.c, sys/cam/scsi scsi_da.c

Zero out the ccb's alloated on the stack for the dump routines to more
closely match a ccb returned from xpt_get_ccb().

Sponsored by: Netflix
Delta File
+1 -0 sys/cam/ata/ata_da.c
+1 -0 sys/cam/scsi/scsi_da.c
+2 -0 2 files

PC-BSD — sys/cam/nvme nvme_da.c, sys/dev/nvme nvme.h

Closer examination shows that nvme and CAM both normally zero-fill
allocations (for req and ccb, which ultimately contain the
nvme_cmd). As such, we can micro-optimize these routines. Add a
comment to this effect, and bzero the ccb used to make the requests
for the nda dump rotuine so it more closely matches a ccb allocated
with xpt_get_ccb().

Sponsored by: Netflix
Delta File
+6 -8 sys/dev/nvme/nvme.h
+2 -0 sys/cam/nvme/nvme_da.c
+8 -8 2 files

PC-BSD — sys/fs/nfsserver nfs_nfsdstate.c nfs_nfsdserv.c

Fix the client IP address reported by nfsdumpstate for 64bit arch and NFSv4.1.

The client IP address was not being reported for some NFSv4 mounts by
nfsdumpstate. Upon investigation, two problems were found for mounts
using IPv4. One was that the code (originally written and tested on i386)
assumed that a "u_long" was a "uint32_t" and would exactly store an
IPv4 host address. Not correct for 64bit arches.
Also, for NFSv4.1 mounts, the field was not being filled in. This was
basically correct, because NFSv4.1 does not use a callback address.
However, it meant that nfsdumpstate could not report the client IP addr.
This patch should fix both of these issues.
For IPv6, the address will still not be reported. The original NFSv4 RFC
only specified IPv4 callback addresses. I think this has changed and, if so,
a future commit to fix reporting of IPv6 addresses will be needed.

Reported by:        manu
PR:                223036
MFC after:        2 weeks

PC-BSD — sys/netinet sctp_input.c

Fix the handling of parital and too short chunks.

Ensure that the current behaviour is consistent: stop processing
of the chunk, but finish the processing of the previous chunks.

This behaviour might be changed in a later commit to ABORT the
assoication due to a protocol violation, but changing this
is a separate issue.

MFC after:        3 days
Delta File
+56 -114 sys/netinet/sctp_input.c
+56 -114 1 file

PC-BSD — sys/compat/linsysfs linsysfs.c

Add information needed by Linux libdrm 2.4.74 (shipped with CentOS 7.4).

Create a config file for PCI devices that exposes their configuration
space.  Only fields needed by libdrm are filled in (vendor, device,
revision, subvendor and subdevice).

Link /sys/class/drm/card%d/device to the PCI device directory.
Delta File
+62 -22 sys/compat/linsysfs/linsysfs.c
+62 -22 1 file

PC-BSD — sys/compat/linsysfs linsysfs.c

Set DEVNAME to dri/card%d.  This works with both in-tree drm and drm-next
and is also the value used on Linux.

Tested by:        Greg V <greg at unrelenting.technology>
Delta File
+2 -2 sys/compat/linsysfs/linsysfs.c
+2 -2 1 file

PC-BSD — sys/kern vfs_lookup.c

When a Linux program tries to access a /path the kernel tries
/compat/linux/path before /path.  Stop following symbolic links when
looking up /compat/linux/path so dead symbolic links aren't ignored.
This allows syscalls like readlink(2) and lstat(2) to work on such links.
And open(2) will return an error now instead of trying /path.
Delta File
+2 -2 sys/kern/vfs_lookup.c
+2 -2 1 file