Displaying 1 50 of 32,969 commits (0.008s)

DragonFlyBSD — . Makefile_upgrade.inc

Remove old timezone file via 'make upgrade'.
Delta File
+1 -0 Makefile_upgrade.inc
+1 -0 1 file

DragonFlyBSD — sys/kern kern_ktr.c

ktr: Reduce number of early boot KTR entries to 256

This prevents kernel or module loading failure due to excessive BSS
usage if KTR_ENTRIES is large.

While I'm here, staticize some global variables.
Delta File
+30 -7 sys/kern/kern_ktr.c
+30 -7 1 file

DragonFlyBSD — sys/kern usched_bsd4.c

usched/bsd4: Avoid ktr confliction on chooseproc
Delta File
+2 -2 sys/kern/usched_bsd4.c
+2 -2 1 file

DragonFlyBSD — libexec/rtld-elf rtld.c

rtld: Fix a memory leak on thread termination

* Plugs a memory leak in the free_tls() function which was leaking
  some memory on every thread termination.
Delta File
+1 -0 libexec/rtld-elf/rtld.c
+1 -0 1 file

DragonFlyBSD — usr.bin/ktrdump ktrdump.c

ktrdump: Fix caller chain support

And set default kernel file to /boot/kernel/kernel, if sysctl
kern.bootfile fails.
Delta File
+9 -3 usr.bin/ktrdump/ktrdump.c
+9 -3 1 file

DragonFlyBSD — sys/cpu/x86_64/misc ktr.c

ktr/x86_64: Fix caller chain support
Delta File
+12 -2 sys/cpu/x86_64/misc/ktr.c
+12 -2 1 file

DragonFlyBSD — sys/vfs/hammer hammer_object.c

sys/vfs/hammer: Remove unnecessary if test

- There is the same 'if (error == 0)' for a local variable error
  right before this one which can be combined.
Delta File
+1 -2 sys/vfs/hammer/hammer_object.c
+1 -2 1 file

DragonFlyBSD — sys/vfs/hammer hammer_btree.c hammer_object.c

sys/vfs/hammer: Make hammer_delete_at_cursor() properly set *stat_bytes

- This commit makes hammer_delete_at_cursor() set *stat_bytes arg.
  *stat_bytes has been ignored although it was supposed to set bytes
  physically deleted from the btree.

- hammer prune command expects this function to set above bytes and
  print it after pruning, however it's always 0 because the function
  ignores it.

- Note that the actual size freed from zone address space may differ
  from *stat_bytes (or what the hammer prune command shows), because
  hammer_blockmap_free() may round it up with its alignment size.

  ==========
  example1 - with existing hammer
  # hammer prune ./test
  TID 000000010404e750 - 0000000104071090
  TID 0000000104034060 - 000000010404e750
  TID 0000000104019cb0 - 0000000104034060
  TID 0000000000000001 - 0000000104019cb0
  Prune /HAMMER/: 4 snapshots
  Prune /HAMMER/: objspace 8000000000000000:0000 7fffffffffffffff:ffff pfs_id 0
  Prune /HAMMER/: prune_min is 0d/00:00:00
  Prune /HAMMER/ succeeded

    [13 lines not shown]

DragonFlyBSD — share/zoneinfo northamerica southamerica

Sync zoneinfo database with tzdata2015d from ftp://ftp.iana.org/tz/releases

Changes affecting future time stamps

* Egypt's spring-forward transition is at 24:00 on April's last Thursday,
    not 00:00 on April's last Friday.  2015's transition will therefore
    be on Thursday, April 30 at 24:00, not Friday, April 24 at 00:00.
    Similar fixes apply to 2026, 2037, 2043, etc.
    (Thanks to Steffen Thorsen.)

* Egypt will not observe DST in 2015 and will consider canceling it
    permanently.  For now, assume no DST indefinitely.
    (Thanks to Ahmed Nazmy and Tim Parenti.)

Changes affecting past time stamps

* The following changes affect some pre-1991 Chile-related time stamps
    in America/Santiago, Antarctica/Palmer, and Pacific/Easter.

      The 1910 transition was January 10, not January 1.

      The 1918 transition was September 10, not September 1.

      The UTC-4 time observed from 1932 to 1942 is now considered to be
      standard time, not year-round DST.

    [30 lines not shown]

DragonFlyBSD — share/zoneinfo northamerica southamerica

Sync zoneinfo database with tzdata2015d from ftp://ftp.iana.org/tz/releases

Changes affecting future time stamps

* Egypt's spring-forward transition is at 24:00 on April's last Thursday,
    not 00:00 on April's last Friday.  2015's transition will therefore
    be on Thursday, April 30 at 24:00, not Friday, April 24 at 00:00.
    Similar fixes apply to 2026, 2037, 2043, etc.
    (Thanks to Steffen Thorsen.)

* Egypt will not observe DST in 2015 and will consider canceling it
    permanently.  For now, assume no DST indefinitely.
    (Thanks to Ahmed Nazmy and Tim Parenti.)

Changes affecting past time stamps

* The following changes affect some pre-1991 Chile-related time stamps
    in America/Santiago, Antarctica/Palmer, and Pacific/Easter.

      The 1910 transition was January 10, not January 1.

      The 1918 transition was September 10, not September 1.

      The UTC-4 time observed from 1932 to 1942 is now considered to be
      standard time, not year-round DST.

    [30 lines not shown]

DragonFlyBSD — usr.sbin/dntpd log.c

dntpd - Fix va_list handling bug crash

* Later versions of gcc manipulate va_lists in ways that prevent them from
  being reused, use va_copy() to make a copy in the log code which uses
  the va_list twice.

* Fixes a seg-fault on startup.
Delta File
+4 -1 usr.sbin/dntpd/log.c
+4 -1 1 file

DragonFlyBSD — sys/vfs/hammer hammer_inode.c

hammer - Allow NFS exports of slaves

* Allows a SLAVE PFS to be exported.

* WARNING: Clients who mount a SLAVE PFS from a server will only mount a
  snapshot.  The client must unmount and remount the slave to resynchronize
  it.  Also, if the server wipes the history pertaining the snapshot the
  client mounted, the client's mount will become corrupt.
Delta File
+8 -5 sys/vfs/hammer/hammer_inode.c
+8 -5 1 file

DragonFlyBSD — sys/dev/sound/pci/hda hdaa_patches.c hdac.h

sound - Get sound working on alternative Acer C720p

* This is a bit of a hack but one of our users had a C720p which had
  a HP vendor id for its chips.  It is possible that this was due to
  a BIOS mixup by Google.

* Add hacks for it so sound works on his device.

DragonFlyBSD — sys/dev/netif/em if_em.c, sys/dev/netif/emx if_emx.c

em/emx/igb/ix: Increase opackets stats in if_start method

Since these drivers TX interrupt are aggressively aggregated, increasing
opackets at TX interrupt time will make the opackets statistics vastly
inaccurate.

Noticed-by: dillon@

DragonFlyBSD — contrib/wpa_supplicant/src/p2p p2p.c

wpa_supplicant - CVE-2015-1863 (dead code in DFly so not an issue)

* Correct buffer overflow from CVE-2015-1863.

* Note that this code is NOT compiled into DragonFly's wpa_supplicant anyway,
  so the security advisory is not applicable to DragonFly.  Fix the code
  anyway so it isn't accidently enabled with the security hole before the
  next vendor update.

DragonFlyBSD — sys/vfs/hammer hammer_inode.c hammer_vnops.c

sys/vfs/hammer: Make comments up-to-date

- There was no 'if (dip)' when the .. comment was added in 5a930e66,
  but ea434b6f needed 'if (dip)' and was added.

DragonFlyBSD — share/man/man4 em.4, sys/dev/netif/emx if_emx.c

emx: Add errata workaround for multiple TX queues

This makes multiple TX queues work on 82574.

Information-from: Sean Bruno <sbruno at ignoranthack.me>
Tested-with: 82571, 82574, I217
Delta File
+11 -2 sys/dev/netif/emx/if_emx.c
+1 -1 share/man/man4/em.4
+12 -3 2 files

DragonFlyBSD — sbin/hammer cmd_reblock.c

Revert "sbin/hammer: Print key_end.lo instead of key_beg.lo on reblock"

This reverts commit d58869bda15ddc5e96c1c053196fcd3e56e340c6.

- According to the hammer rebalance (cmd_rebalance.c) which has
  a similar printf, this printf was probably intended to show
  localization type('s lower limit) when btree iteration starts,
  rather than localization types to look for during the iteration.
  Then it was right to print 0x0 (key_beg.localization) for %04x.
Delta File
+1 -1 sbin/hammer/cmd_reblock.c
+1 -1 1 file

DragonFlyBSD — contrib/gcc-5.0 LAST_UPDATED, contrib/gcc-5.0/gcc varasm.c DATESTAMP

Merge branch 'vendor/GCC50'
∈ John Marino - 3d987775 - 2015-04-22 09:15:19
Update gcc-50 to SVN version 222321 (gcc-5-branch)

This is equivalent to the GCC 5.1 release plus 1 commit that changes
the version from 5.1.0 to 5.1.1 to reopen the release branch.

Last Changed Date: 2015-04-22 12:45:39 +0200 (Wed, 22 Apr 2015)

DragonFlyBSD — contrib/gcc-5.0 README.DRAGONFLY, gnu/lib/gcc50 Makefile.inc

gcc50: Update to release version 5.1.0 => 5.1.1

Immediately after the release was tagged, another commit was added that
changed the version to 5.1.1.  Other than the version differing by 0.0.1,
this version is identical to what the GCC just released.

DragonFlyBSD — sbin/hammer cmd_reblock.c

sbin/hammer: Print key_end.lo instead of key_beg.lo on reblock

- Print reblock.key_end.localization when reblock starts instead of
  reblock.key_beg.localization.

- hammer reblock printing 0000 while reblock-inodes printing 0001
  and reblock-data|dirs printing 0002 seems strange because reblock
  covers all localization types ranging from MIN(0000) to MAX(ffff)
  on btree iteration (which obviously includes existing two types
  for inode and misc). Printing end localization should make better
  sense here.
Delta File
+1 -1 sbin/hammer/cmd_reblock.c
+1 -1 1 file

DragonFlyBSD — sbin/hammer cmd_reblock.c

sbin/hammer: Print big block size on reblock

- Print free_level/big_block_size when reblock starts instead of
  just free_level.

- The meaning of 'fill_percentage' arg is easier to understand
  this way because the big block size is not obvious for most users
  while this arg is about selecting which big block to defrag.
Delta File
+3 -2 sbin/hammer/cmd_reblock.c
+3 -2 1 file

DragonFlyBSD — sys/vfs/hammer hammer_reblock.c

sys/vfs/hammer: Cleanup cursor initialization code on reblock

- Just make things a bit more clear.

- The rule is the ioctl caller sets localization type to reblock,
  and the ioctl code adds up ip localization to initialize cursor.
Delta File
+10 -3 sys/vfs/hammer/hammer_reblock.c
+10 -3 1 file

DragonFlyBSD — sys/vfs/hammer hammer_blockmap.c

sys/vfs/hammer: Make hammer_blockmap_getfree() clear *curp on error case

- Set *curp to either 0 or 1 regardless of *errorp.
  The previous return(0); case does this then all should do this.
Delta File
+2 -0 sys/vfs/hammer/hammer_blockmap.c
+2 -0 1 file

DragonFlyBSD — sys/vfs/hammer hammer_reblock.c

sys/vfs/hammer: Fix comment

- Sync a comment with what's written in reblock_usage().
Delta File
+2 -2 sys/vfs/hammer/hammer_reblock.c
+2 -2 1 file

DragonFlyBSD — sys/vfs/hammer hammer_reblock.c

sys/vfs/hammer: Cleanup sanity checks

- Move sanity checks to the beginning of the function.

- Check 'free_level > HAMMER_BIGBLOCK_SIZE'.
  free_level is somewhere between 0 and 8MB (inclusive).
Delta File
+10 -9 sys/vfs/hammer/hammer_reblock.c
+10 -9 1 file

DragonFlyBSD — sbin/hammer cmd_snapshot.c

sbin/hammer: Remove irrelevant if(S_ISLNK()) case

- Remove if(S_ISLNK()) case for hammer snap since it never matches.

- Also note it shouldn't be matching S_ISLNK() in the first place.
  If it does match hammer snap|snaplo|snapq commands will remove
  a symlink to the existing snapshot and relink to the new snapshot
  which results losing a reference to the old snapshot (although
  the old snapshot is still accessible as HAMMER's snapshot is just
  a pointer to the filesystem as of certain tid that is resolved
  when accessed).
Delta File
+1 -4 sbin/hammer/cmd_snapshot.c
+1 -4 1 file

DragonFlyBSD — sbin/hammer cmd_snapshot.c

sbin/hammer: Add missing snapshots related free(3)

- Call free(3) after asprintf(3)
Delta File
+7 -4 sbin/hammer/cmd_snapshot.c
+7 -4 1 file

DragonFlyBSD — . UPDATING Makefile.inc1, etc/defaults compilers.conf make.conf

Set gcc50 as the primary compiler, gcc47 as secondary

Per request, rather than define NO_GCC47 to prevent the building of the
secondary compiler, the new variable is called NO_ALTCOMPILER.  This
will avoid some disruption in the future where the actual version is not
important, only the desire to avoid the secondary compiler.
Delta File
+18 -21 UPDATING
+7 -7 Makefile.inc1
+6 -6 gnu/usr.bin/Makefile
+5 -5 share/man/man5/make.conf.5
+4 -4 test/x86_64/Makefile
+4 -4 gnu/usr.bin/Makefile.cco
+13 -12 7 files not shown
+57 -59 13 files

DragonFlyBSD — usr.sbin/sshlockout sshlockout.c

sshlockout - minor cleanup

* If ac >= 2 then av[1] will not be NULL.
Delta File
+1 -1 usr.sbin/sshlockout/sshlockout.c
+1 -1 1 file

DragonFlyBSD — sys/dev/sound/pcm mixer.c dsp.c

sound - Fix default & unit specs for /dev/dsp and /dev/mixer (2)

* Cleanup a debugging kprintf().

* Cleanup incorrect dev reference and remove some unnecessary locking.

DragonFlyBSD — sys/vfs/hammer hammer_ioctl.c

sys/vfs/hammer: Fix off-by-one for snapshot index

- The index starts from 0 so these ioctls should test 'index >= count'.
Delta File
+2 -2 sys/vfs/hammer/hammer_ioctl.c
+2 -2 1 file

DragonFlyBSD — sbin/hammer cmd_snapshot.c

sbin/hammer: Remove redundant exit(3)

- snapshot_usage(1); does exit(1); as the comment implies.
Delta File
+0 -1 sbin/hammer/cmd_snapshot.c
+0 -1 1 file

DragonFlyBSD — sys/vfs/hammer hammer_pfs.c hammer_ioctl.c

sys/vfs/hammer: Try to fix hammer_ioc_pfs_iterate() [2/2]

- The ioctl HAMMERIOC_PFS_ITERATE added in commit 29d31c2d has
  several design issues. This commit and the previous try to fix
  them. Since it's been exposed to userspace, some of them are
  left as it is with comments.

- Move hammer_ioc_pfs_iterate() to sys/vfs/hammer/hammer_pfs.c
  and rename it to hammer_ioc_iterate_pseudofs().

- struct hammer_ioc_pfs_iterate was not necessary. The existing
  struct hammer_ioc_pseudofs_rw which is being used by all other
  pfs ioctls has everything HAMMERIOC_PFS_ITERATE needs given
  that hammer_ioc_pfs_iterate::pos is just used as a pfs id.
  Using the unique struct requires hammer_ioc_iterate_pseudofs()
  extra conversion in order to make this ioctl behave like other
  pfs ioctls using autodetect.

DragonFlyBSD — sbin/hammer cmd_mirror.c

sbin/hammer: Make hammer mirror-dump print localization

- Add printf for localiazation in addition to other
  struct hammer_base_elm fields.
Delta File
+8 -4 sbin/hammer/cmd_mirror.c
+8 -4 1 file

DragonFlyBSD — contrib/gcc-5.0 LAST_UPDATED, contrib/gcc-5.0/gcc tree-chkp.c tree-vect-loop.c

Merge branch 'vendor/GCC50'
∈ John Marino - 9168936a - 2015-04-17 07:45:38
Update gcc-50 to SVN version 222168 (gcc-5-branch)

Last Changed Date: 2015-04-17 09:45:46 +0200 (Fri, 17 Apr 2015)

DragonFlyBSD — contrib/gcc-5.0 README.DELETED README.DRAGONFLY, gnu/usr.bin/cc50 Makefile.version

gcc50: Upgrade to GCC 5.1 release candidate plus

while here:
  * remove 4+ Mb of unused texi files from contrib
  * update the 3 man pages from Release candidate
  * Change makefiles to not take man pages from contrib directory

After thinking about it, I've decided to continue to update GCC from
Subversion sources rather than limit updates to designated releases.  This
is the reason the man pages are not taken from contrib; they are only
present in actual releases and not the SVN repository.  The plan is to
only update the man pages when GCC minor version is released.

This is the first (and likely only) release candidate for GCC5.  It will
be known as gcc 5.1.0, but CCVER will remain at "gcc50" regardless if the
version of gcc is 5.1.1 or 5.4.2.  This includes changes up to SVN 222168
(April 17).

DragonFlyBSD — test/sysperf syscall2.c syscall1.c

sysperf - Adjust syscall tests

* Remove getuid_msg.c, no longer used.

* Adjust syscall1.c to be more verbose.

* Refactor syscall2.c to test on all threads in a somewhat more
  sophisticated manner.  The test expects the scheduler to move
  the threads to their own cpus (and it should).

DragonFlyBSD — sys/dev/sound/pci/hda hdac.h, sys/dev/sound/pcm sound.c mixer.c

sound - Fix default & unit specs for /dev/dsp and /dev/mixer

* /dev/dsp{0,1} was overriding the unit number and forcing the currently
  set default dsp unit, so it didn't matter if you specified /dev/dsp0 or 1,
  it still used hw.snd.default_unit.

* Get rid of the devfs aliasing for /dev/dsp and /dev/mixer.  Instead, use
  the cloner code to lookup the default dsp and default mixer when /dev/dsp
  or /dev/mixer is opened.

  This simplifies default handling significantly.

DragonFlyBSD — lib/libhammer info.c, sys/vfs/hammer hammer_ioctl.c hammer_ioctl.h

sys/vfs/hammer: Try to fix hammer_ioc_pfs_iterate() [1/2]

- The ioctl HAMMERIOC_PFS_ITERATE added in commit 29d31c2d has
  several design issues. This commit and the next one try to fix
  them. Since it's been exposed to userspace, some of them are
  left as it is with comments.

- The name hammer_ioc_pfs_iterate::pos (pi->pos) is misleading.
  It should have been 'pfs_id'. Users will have no idea what
  the 'pos' is supposed to be.

- pi->pos is unsigned.

- Don't shift pi->pos (Don't ip localize pi->pos). Copy it to a
  local variable and then shift that.

- cursor.key_end fields are necessary only when iterating btree.
  This function has 'iterate' in its name but all it does is
  a single btree lookup.

- Don't |= HAMMER_PFSD_DELETED with pi->head.flags. pi->head.flags
  is for HAMMER_IOC_XXX macros, but not for ondisk pfs status
  (it was lucky PFSD_DELETED does not conflict with those values).
  Users get pfs status from cursor.data->pfsd.mirror_flags copied
  to userspace. libhammer code that is based on this wrong flag

    [6 lines not shown]

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

April 14, 2015 snapshot from http://pciids.sourceforge.net/
Delta File
+372 -210 share/misc/pci_vendors
+372 -210 1 file

DragonFlyBSD — sbin/hammer cmd_mirror.c

sbin/hammer: Add missing free(3) and relpfs()

- Add missing free(3) for mirror buffer and relpfs() to release pfs.
Delta File
+10 -0 sbin/hammer/cmd_mirror.c
+10 -0 1 file

DragonFlyBSD — sbin/hammer cmd_mirror.c

sbin/hammer: Add missing free(3)

- Add missing free(3) for a return value of read_mrecord().
Delta File
+7 -1 sbin/hammer/cmd_mirror.c
+7 -1 1 file

DragonFlyBSD — sbin/hammer cmd_mirror.c

sbin/hammer: Remove unnecessary strndup(3)

- user string is relative to host string, not filesystem string.
Delta File
+0 -4 sbin/hammer/cmd_mirror.c
+0 -4 1 file

DragonFlyBSD — sys/vfs/hammer hammer_vnops.c

sys/vfs/hammer: Add comments on ip localization of @@PFS symlink

- The userspace hammer command shows "You are attempting to access
  a PFS softlink from a PFS..." and exit(1) whenever one tries to
  make a PFS from non root fs directory.

- This restriction by userspace ensures @@PFS symlinks always belong
  to the root fs, in other words ip localization of those symlinks
  are always 0. HAMMER's kernel code doesn't impose this restriction
  on pfs, but userspace does.
Delta File
+8 -0 sys/vfs/hammer/hammer_vnops.c
+8 -0 1 file

DragonFlyBSD — sys/dev/drm/include/linux spinlock.h

drm: linux/spin.h: Implement assert_spin_locked()

DragonFlyBSD — sys/dev/virtual/virtio/net if_vtnet.c

virtio: Bring in SVN r251769 from FreeBSD.

* Fixes the following occasional log message when booting:
"vtnet0: error setting host MAC filter table"

* Original FreeBSD commit message below.

QEMU 1.4 made the descriptor requirement stricter - the size of buffer
descriptor must exactly match the number of MAC addresses provided.

Reported-by: nans_nans1 at yahoo.de
Fix-pointed-out-by: Brian Venteicher <bryanv at daemoninthecloset.org>

DragonFlyBSD — sys/dev/virtual/virtio/net if_vtnet.c

virtio: Bring in SVN r251769 from FreeBSD.

* Fixes the following occasional log message when booting:
"vtnet0: error setting host MAC filter table"

* Original FreeBSD commit message below.

QEMU 1.4 made the descriptor requirement stricter - the size of buffer
descriptor must exactly match the number of MAC addresses provided.

Reported-by: nans_nans1 at yahoo.de
Fix-pointed-out-by: Brian Venteicher <bryanv at daemoninthecloset.org>

DragonFlyBSD — sys/platform/pc64 Makefile.inc, sys/platform/pc64/acpica acpi_machdep.c

kernel: APM was only supported on i386, remove unused x86_64 files.

This is due to our x86_64 not supporting VM86 BIOS calls. This
code was never hooked in.

This does not affect ACPI's APM "emulation" (it supports some
APM ioctls) which is available on x86_64 too.

DragonFlyBSD — sys/dev/netif/de if_de.c if_devar.h

if_de: Sync with current FreeBSD version (r271849). Now works with >4G ram.

* if_de now uses the bus_dma api for DMA memory handling. This makes the
  driver work on systems with more than 4G of ram.

* Remove currently unused code for the TULIP_DO_GPR_SENSE option.

* Keeps most original modifications relative to the code from FreeBSD.