Displaying 1 50 of 269,763 commits (0.063s)

FreeBSD — head/sys/cam/scsi scsi_xpt.c

Use REPORT LUNS command for SPC-2 devices with LUN 0 disconnected.

SPC-2 tells REPORT LUNS shall be supported by devices supporting LUNs other
then LUN 0.  If we see LUN 0 disconnected, guess there may be others, and
so REPORT LUNS shall be supported.

MFC after:        1 month
Delta File
+1 -1 head/sys/cam/scsi/scsi_xpt.c
+1 -1 1 file

FreeBSD — head/sys/netinet6 udp6_usrreq.c

Check for UDP/IPv6 packets that the length in the UDP header is at least
the minimum. Make the check similar to the one for UDPLite/IPv6.

MFC after: 3 days
Delta File
+3 -12 head/sys/netinet6/udp6_usrreq.c
+3 -12 1 file

FreeBSD — stable/10/contrib/ofed/libibverbs/examples device_list.c asyncwatch.c, stable/10/contrib/ofed/libmlx4/src mlx4-abi.h

MFC r272027:

Hardware driver update from Mellanox Technologies, including:
 - improved performance
 - better stability
 - new features
 - bugfixes

Supported HCAs:
 - ConnectX-2
 - ConnectX-3
 - ConnectX-3 Pro

NOTE:
  - TSO feature needs r271946, which is not yet merged.

Sponsored by:        Mellanox Technologies
Approved by:        re, glebius

FreeBSD — head/sys/cam/scsi scsi_xpt.c

Make disconnected LUN 0 don't remain in half-configured state if there are
no LUNs on SPC-3 target after we tried REPORT LUNS.
Delta File
+4 -15 head/sys/cam/scsi/scsi_xpt.c
+4 -15 1 file

FreeBSD — head/sys/fs/autofs autofs.c

Call uma_zfree() outside of lock, and improve comment.

Sponsored by:        The FreeBSD Foundation
Delta File
+2 -2 head/sys/fs/autofs/autofs.c
+2 -2 1 file

FreeBSD — head/sys/netinet6 in6_cksum.c udp6_usrreq.c

Fix the checksum computation for UDPLite/IPv6. This requires the
usage of a function computing the checksum only over a part of the function.
Therefore introduce in6_cksum_partial() and implement in6_cksum() based
on that.
While there, ensure that the UDPLite packet contains at least enough bytes
to contain the header.

Reviewed by: kevlo
MFC after: 3 days

FreeBSD — head/sys/fs/autofs autofs.c autofs.h

Make autofs timeout handling use timeout task instead of callout;
that's because the handler can sleep on sx lock.

Reviewed by:        kib
MFC after:        1 week
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/cam/scsi scsi_xpt.c

Restore CAM_QUIRK_NOLUNS check, lost in previous commit.

MFC after:        1 month
Delta File
+3 -0 head/sys/cam/scsi/scsi_xpt.c
+3 -0 1 file

FreeBSD — head/sys/cam/scsi scsi_xpt.c

Rework the logic of sequential SCSI LUN scanner.

Previous logic was not differentiating disconnected LUNs and absent targets.
That made it to stop scan if LUN 0 was not found for any reason.  That made
problematic, for example, using iSCSI targets declaring SPC-2 compliance and
having no LUN 0 configured.

The new logic continues sequential LUN scan if:
 -- we have more configured LUNs that need recheck;
 -- this LUN is connected and its SCSI version allows more LUNs;
 -- this LUN is disconnected, its SCSI version allows more LUNs and we
    guess they may be connected (we haven't scanned first 8 LUNs yet or
    kern.cam.cam_srch_hi sysctl is set to scan more).

Reported by:        trasz
MFC after:        1 month
Delta File
+36 -62 head/sys/cam/scsi/scsi_xpt.c
+36 -62 1 file

FreeBSD — projects/sendfile Makefile.inc1 UPDATING, projects/sendfile/bin/csh Makefile

Merge head r258543 through r272399.

FreeBSD — head/sys/dev/uart uart_dev_msm.c uart_dev_msm.h

Add uart driver for Qualcomm MSM 7000/8000 series chips.
It is working on IFC6410 board which has Qualcomm Snapdragon SoC.

Approved by:    stas (mentor)

FreeBSD — head/usr.bin/sort sort.c

Make sure to not skip any argument when converting from deprecated
+POS1, -POS2 to -kPOS1,POS2, so that sort +0n gets translated to sort -k1,1n
as it is expected

PR:                193994
Submitted by:        rodrigo
MFC after:        3 days
Delta File
+1 -1 head/usr.bin/sort/sort.c
+1 -1 1 file

FreeBSD — head/sys/arm/allwinner timer.c

Allow timer0 to run at full 24MHz not at 24MHz/16 by setting prescale to 1.

Approved by:    stas (mentor)
Delta File
+1 -1 head/sys/arm/allwinner/timer.c
+1 -1 1 file

FreeBSD — head/sys/net if_vlan.c

Virtualize net.link.vlan.soft_pad.
Delta File
+5 -4 head/sys/net/if_vlan.c
+5 -4 1 file

FreeBSD — head/sys/amd64/vmm/intel vmx.c

Get rid of code that dealt with the hardware not being able to save/restore
the PAT MSR on guest exit/entry. This workaround was done for a beta release
of VMware Fusion 5 but is no longer needed in later versions.

All Intel CPUs since Nehalem have supported saving and restoring MSR_PAT
in the VM exit and entry controls.

Discussed with:        grehan
Delta File
+17 -55 head/sys/amd64/vmm/intel/vmx.c
+17 -55 1 file

FreeBSD — head/sys/netipsec ipsec_input.c

Do not strip outer header when operating in transport mode.
Instead requeue mbuf back to IPv4 protocol handler. If there is one extra IP-IP
encapsulation, it will be handled with tunneling interface. And thus proper
interface will be exposed into mbuf's rcvif. Also, tcpdump that listens on tunneling
interface will see packets in both directions.

Sponsored by:        Yandex LLC
Delta File
+10 -2 head/sys/netipsec/ipsec_input.c
+10 -2 1 file

FreeBSD — head/etc rc.subr

Resurrect set_rcvar() as a function to define a rc.conf variable.
It defines a variable and its default value in load_rc_config() just after
rc.conf is loaded.  "rcvar" command shows the current and the default values.

This is an attempt to solve a problem that rc.d scripts from third-party
software do not have entries in /etc/defaults/rc.conf.  The fact that
load_rc_config() reads rc.conf only once and /etc/rc invokes the function
before running rc.d scripts made developers confused for a long time because
load_rc_config() just before run_rc_command() in each rc.d script overrides
variables only when the script is directly invoked, not from /etc/rc.

Variables defined in set_rcvar are always set in load_rc_config() after
loading rc.conf.  An rc.d script can now be written in a self-contained
manner regarding the related variables as follows:

---
name=foo
rcvar=foo_enable

set_rcvar foo_enable        YES        "Enable $name"
set_rcvar foo_flags        "-s"        "Flags to $name"

...

load_rc_config $name

    [2 lines not shown]
Delta File
+38 -5 head/etc/rc.subr
+38 -5 1 file

FreeBSD — projects/release-vmimage/release release.sh release.conf.sample

Add WITH_COMPRESSED_VMIMAGES variable, which when set enables
xz(1) compression of the virtual machine images.

This is intentionally separate to allow more fine-grained
tuning over which images are compressed, especially in cases
where compressing 20GB sparse images can take hours.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/netinet ip_output.c, head/sys/netinet6 ip6_output.c

Add an additional routing table lookup when m->m_pkthdr.fibnum is changed
at a PFIL hook in ip{,6}_output().  IPFW setfib rule did not perform
a routing table lookup when the destination address was not changed.

CR:        D805

FreeBSD — head/sbin/ifconfig ifconfig.c

Add IFCAP_HWSTATS.
Delta File
+1 -1 head/sbin/ifconfig/ifconfig.c
+1 -1 1 file

FreeBSD — head/sys/cddl/boot/zfs lz4.c

Diff reduction with kernel code: instruct the compiler that the data of
these types may be unaligned to their "normal" alignment and exercise
caution when accessing them.

PR:                194071
MFC after:        3 days
Delta File
+19 -0 head/sys/cddl/boot/zfs/lz4.c
+19 -0 1 file

FreeBSD — stable/10/sys/amd64/vmm/io vatpic.c

MFC r272193

  Allow the PIC's IMR register to be read before ICW initialisation.

  As of git submit e179f6914152eca9, the Linux kernel does a simple
  probe of the PIC by writing a pattern to the IMR and then reading it
  back, prior to the init sequence of ICW words.

  The bhyve PIC emulation wasn't allowing the IMR to be read until
  the ICW sequence was complete. This limitation isn't required so
  relax the test.

  With this change, Linux kernels 3.15-rc2 and later won't hang
  on boot when calibrating the local APIC.

Approved by: re (gjb)
Delta File
+12 -13 stable/10/sys/amd64/vmm/io/vatpic.c
+12 -13 1 file

FreeBSD — head/lib/libc/stdtime strptime.c

strptime: fix bug introduced in r272273.

Reported by:        portmgr (antoine)
Fix by:                Andrey Chernov, David Carlier
PR:                137307 (follow up)
Delta File
+2 -1 head/lib/libc/stdtime/strptime.c
+2 -1 1 file

FreeBSD — head/sbin/ifconfig iflagg.c ifconfig.8, head/share/man/man4 lagg.4

Virtualize lagg(4) cloner.  This change fixes a panic when tearing down
if_lagg(4) interfaces which were cloned in a vnet jail.

Sysctl nodes which are dynamically generated for each cloned interface
(net.link.lagg.N.*) have been removed, and use_flowid and flowid_shift
ifconfig(8) parameters have been added instead.  Flags and per-interface
statistics counters are displayed in "ifconfig -v".

CR:        D842

FreeBSD — head/sys/net radix.c

Free radix mask entries on main radix destroy.
This is temporary commit to be merged to 10.
Other approach (like hash table) should be used
to store different masks.

PR:                194078
Submitted by:        Rumen Telbizov
MFC after:        3 days
Delta File
+13 -0 head/sys/net/radix.c
+13 -0 1 file

FreeBSD — head/usr.bin/mkimg image.c Makefile

Improve performance of mking(1) by keeping a list of "chunks" in memory,
that keeps track of a particular region of the image. In particular the
image_data() function needs to return to the caller whether a region
contains data or is all zeroes. This required reading the region from
the temporary file and comparing the bytes. When image_data() is used
multiple times for the same region, this will get painful fast.

With a chunk describing a region of the image, we now also have a way
to refer to the image provided on the command line. This means we don't
need to copy the image into a temporary file. We just keep track of the
file descriptor and offset within the source file on a per-chunk basis.

For streams (pipes, sockets, fifos, etc) we now use the temporary file
as a swap file. We read from the input file and create a chunk of type
"zeroes" for each sequence of zeroes that's a multiple of the sector
size. Otherwise, we allocte from the swap file, mmap(2) it, read into
the mmap(2)'d memory and create a chunk representing data.

For regular files, we use SEEK_HOLE and SEEK_DATA to handle sparse files
eficiently and create a chunk of type zeroes for holes and a chunk of
type data for data regions. For data regions, we still compare the bytes
we read to handle differences between a file system's block size and our
sector size.

After reading all files, image_write() is used by schemes to scribble in

    [14 lines not shown]

FreeBSD — head/share/mk bsd.port.mk bsd.port.subdir.mk

Revise r272363 by collapsing the tests into a for loop.

This has the side effect of ensuring that realpath is also run for the
nominal case of PORTSDIR=/usr/ports (assuming .CURDIR is a ports directory
that relies on /usr/ports but is not rooted in it).  This ensures that any
generated PORTSDIR used is always the actual location.

Submitted by:        jkim (different implementation)

FreeBSD — head/usr.bin/mkimg vhd.c

Suffix the cookie constants with ULL to silence warnings from compilers
that try to treat them as 32-bit values.
Delta File
+2 -2 head/usr.bin/mkimg/vhd.c
+2 -2 1 file

FreeBSD — projects/release-vmimage/release Makefile

After evaluating WITH_VMIMAGES is non-empty, ensure
the mk-vmimage.sh script exists before running it.

Sponsored by:        The FreeBSD Foundation

FreeBSD — projects/release-vmimage/release Makefile, projects/release-vmimage/release/amd64 mk-vmimage.sh

Avoid using env(1) to set values passed to mk-vmimage.sh,
and instead pass the values as arguments to the script,
making it easier to run this by hand, without 'make release'.

Add usage_vm_base() and usage_vm_image() usage helpers.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/usr.sbin/bsdinstall/distextract distextract.c, head/usr.sbin/bsdinstall/distfetch distfetch.c

Optimize program flow for execution speed. Also fix some more style(9) nits
while here:
+ Fix an issue when extracting small archives where dialog_mixedgauge was
  not rendering; leaving the user wondering if anything happened.
+ Add #ifdef's to assuage compilation against older libarchive
  NB: Minimize diff between branches; make merging easier.
+ Add missing calls to end_dialog(3)
+ Change string processing from strtok(3) to strcspn(3) (O(1) optimization)
+ Use EXIT_SUCCESS and EXIT_FAILURE instead of 0/1
+ Optimize getenv(3) use, using stored results instead of calling repeatedly
  NB: Fixes copy/paste error wherein we display getenv(BSDINSTALL_DISTDIR) in
      an error msgbox when chdir(2) to getenv(BSDINSTALL_CHROOT) fails
      (wrong variable displayed in msgbox).
+ Use strtol(3) instead of [deprecated] atoi(3)
+ Add additional error checking (e.g., check return of archive_read_new(3))
+ Assign DECONST strings to static variables
+ Fix typo in distextract.c error message (s/Could could/Could not/)
+ Add comments and make a minor whitespace adjustment

Reviewed by:        nwhitehorn, julian

FreeBSD — head/share/man/man4 icmp.4, head/sys/netinet ip_icmp.c

Add a sysctl, net.inet.icmp.tstamprepl, which can be used to disable replies
to ICMP Timestamp packets.

PR:                193689
Submitted by:        Anthony Cornehl <accornehl at gmail.com>
MFC after:        3 weeks
Sponsored by:        EMC / Isilon Storage Division

FreeBSD — head/share/man/man4 sfxge.4

Some cleanup for sfxge.4

Use standard mdoc macros instead of pure roff, fix some other mdoc usage,
make the style consistent, and fix some grammar issues.

Approved by:        hrs (mentor)
Delta File
+18 -11 head/share/man/man4/sfxge.4
+18 -11 1 file

FreeBSD — projects/release-vmimage/release Makefile, projects/release-vmimage/release/amd64 mk-vmimage.sh

Separate release/scripts/mk-vmimage.sh to machine-specific
scripts, making it possible to mimic the functionality for
non-x86 targets.

Move echo output if MAKEFLAGS is empty outside of usage().

Remove TARGET/TARGET_ARCH evaluation.

Sponsored by:        The FreeBSD Foundation

FreeBSD — user/marcel/mkimg vhd.c

Make sure the cookies are constants of appropriate width.
Delta File
+2 -2 user/marcel/mkimg/vhd.c
+2 -2 1 file

FreeBSD — user/marcel/mkimg image.c

Make sure to widen secsz from size_t to off_t when using it as a mask.
On 32-bit machines this would other wise mask off the upper 32-bits
of the 64-bit file offset.
Delta File
+2 -2 user/marcel/mkimg/image.c
+2 -2 1 file

FreeBSD — stable/9/bin/rm rm.c

MFC r268376 (imp):

  rm -rf can fail sometimes with an error from fts_read. Make it
  honor fflag to ignore fts_read errors, but stop deleting from
  that directory because no further progress can be made.

  When building a kernel with a high -j value on a high core count
  machine, during the cleanobj phase we can wind up doing multiple
  rm -rf at the same time for modules that have subdirectories. This
  exposed this race (sometimes) as fts_read can return an error if
  the directory is removed by another rm -rf. Since the intent of
  the -f flag was to ignore errors, even if this was a bug in
  fts_read, we should ignore the error like we've been instructed
  to do.

Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 stable/9/bin/rm/rm.c
+1 -1 1 file

FreeBSD — stable/10/bin/rm rm.c

MFC r268376 (imp):

  rm -rf can fail sometimes with an error from fts_read. Make it
  honor fflag to ignore fts_read errors, but stop deleting from
  that directory because no further progress can be made.

  When building a kernel with a high -j value on a high core count
  machine, during the cleanobj phase we can wind up doing multiple
  rm -rf at the same time for modules that have subdirectories. This
  exposed this race (sometimes) as fts_read can return an error if
  the directory is removed by another rm -rf. Since the intent of
  the -f flag was to ignore errors, even if this was a bug in
  fts_read, we should ignore the error like we've been instructed
  to do.

Approved by:        re (kib)
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 stable/10/bin/rm/rm.c
+1 -1 1 file

FreeBSD — head/sys/sys vnode.h

Embellish a comment regarding the reliability of DEBUG_VFS_LOCKS.

Submitted by:        kib
Delta File
+3 -1 head/sys/sys/vnode.h
+3 -1 1 file

FreeBSD — user/marcel/mkimg image.c

Fix sloppy code (that was commented as such): Map the file with
partition data using smaller pieces at at time. It's rather hard
to map a 10G partition in memory on a 32-bit machine...
Delta File
+18 -13 user/marcel/mkimg/image.c
+18 -13 1 file

FreeBSD — head/lib/libc/arm Makefile.inc, head/lib/libc/arm/aeabi Makefile.inc

Clean up detection of hard-float ABIs. As with big-endian in r272368 we
can check against arm*hf*.

FreeBSD — head/share/mk bsd.endian.mk src.opts.mk

Clean up detection of big-endian ARM. In all cases we follow the pattern
arm*eb*. Check we are building for arm and if MACHINE_ARCH follows this
pattern.

FreeBSD — head/sys/modules/zfs Makefile

Instead of requiring an edit to turn on ZFS debugging, define ZFS_DEBUG.

MFC after:        1 month
Delta File
+4 -2 head/sys/modules/zfs/Makefile
+4 -2 1 file

FreeBSD — head/sys/kern vfs_subr.c

In the syncer, drop the sync mutex while patting the watchdog.

Some watchdog drivers (like ipmi) need to sleep while patting the watchdog.
See sys/dev/ipmi/ipmi.c:ipmi_wd_event(), which calls malloc(M_WAITOK).

Submitted by:        asomers
MFC after:        1 month
Sponsored by:        Spectra Logic
MFSpectraBSD:        637548 on 2012/10/04
Delta File
+8 -1 head/sys/kern/vfs_subr.c
+8 -1 1 file

FreeBSD — user/marcel/mkimg Makefile

Bump the version to 20141001.
Delta File
+1 -1 user/marcel/mkimg/Makefile
+1 -1 1 file

FreeBSD — user/marcel/mkimg Makefile

Remove DEBUG_FLAGS again.
Delta File
+0 -2 user/marcel/mkimg/Makefile
+0 -2 1 file

FreeBSD — head/share/mk bsd.port.mk bsd.port.subdir.mk

Always resolve PORTSDIR to absolute paths using realpath(1).

Reported by:        madpilot
Reviewed by:        bapt
X-MFC-With:        272282

FreeBSD — head/lib/libc/powerpc/gen _setjmp.S setjmp.S, head/lib/libc/powerpc/sys sbrk.S exect.S

Ensure that every ENTRY(foo) has a matching END(foo).
It allows to build with newer binutils

Differential Revision:        https://reviews.freebsd.org/D877
Reviewed by:        jhibbits

FreeBSD — head/sys/net radix.c, head/sys/netinet in_rmx.c

Remove lock init from radix.c.
Radix has never managed its locking itself.
The only consumer using radix with embeded rwlock
is system routing table. Move per-AF lock inits there.

FreeBSD — head/sys/dev/acpica/Osd OsdSchedule.c

Add sysctl to track the resource consumption of ACPI interrupts.

Submitted by:        gibbs
MFC after:        1 month
Sponsored by:        Spectra Logic
MFSpectraBSD:        636827 on 2012/09/28