Displaying 1 50 of 33,165 commits (0.057s)

DragonFlyBSD — lib/libarchive config.h, lib/liblzma config.h

Update libarchive's and liblzma's configuration for recently added stuff.

Make both use futimens() and utimensat(). xz's configure won't check for
futimes() if futimens() is available (hence HAVE_FUTIMES goes back to

While here, define HAVE_DIRFD for libarchive too since we have it as a
public function since de45303d1431339260c3a353a1e18d034c807c4a.

Note that diff and grep also have HAVE_... macros for futimens() and
utimesat() in their config.h's but they are unused in the code, probably
stray configure checks.

DragonFlyBSD — sys/gnu/vfs/ext2fs ext2_fs.h

sys/gnu/vfs/ext2fs: Sync with Linux kernel's ext2 definitions

- Note that ext2 on DragonFly seems to be broken currently.
Delta File
+30 -2 sys/gnu/vfs/ext2fs/ext2_fs.h
+30 -2 1 file

DragonFlyBSD — sys/sys param.h

<sys/param.h>: Bump __DragonFly_version for futimens() and utimensat().
Delta File
+2 -1 sys/sys/param.h
+2 -1 1 file

DragonFlyBSD — sys/sys stat.h

<sys/stat.h>: Whitespace cleanup.
Delta File
+33 -33 sys/sys/stat.h
+33 -33 1 file

DragonFlyBSD — sys/sys stat.h

Add missing prototype for futimens(2) in <sys/stat.h>

Fix spacing for utimensat() as well.
Delta File
+1 -0 sys/sys/stat.h
+1 -0 1 file

DragonFlyBSD — sys/kern kern_time.c vfs_syscalls.c

kernel - Fix issue w/recent utimes commit

* The repurposed itimerfix() and itimespecfix() functions needed to have
  a conditional removed which was putting an arbitrary limit on the tv_sec

* Fixes an issue that caused utimes*() to fail and return EINVAL.
Delta File
+6 -11 sys/kern/kern_time.c
+3 -2 sys/kern/vfs_syscalls.c
+9 -13 2 files

DragonFlyBSD — sys/vfs/hammer2 hammer2_chain.c

hammer2 - cleanup

* Cleanup a lock/unlock sequence used to force-load chain->data by
  replacing it with the appropriate load call.
Delta File
+4 -6 sys/vfs/hammer2/hammer2_chain.c
+4 -6 1 file

DragonFlyBSD — etc/etc.i386 ttys, etc/etc.x86_64 ttys

ttys - Add 'ifconsole' option to ttys entries

* Add the 'ifconsole' option.  This allows you to construct a line as shown
  below to enable a getty (e.g. on a serial port) only if the tty is the
  system console.

    ttyd0   "/usr/libexec/getty std.9600"   dialup  on secure ifconsole

  The ifconsole option also silently disables any devices which do not
  exist, removing unnecessary console spam.

* Modify libc and init to handle the new flag.

* Modify the nrelease build and ttys defaults to use this option for
  ttyd0, ttyd1, ttyd2, and ttyd3.

* Avoids previously reported issues with system crashes on certain machines
  whos serial ports are not implemented properly without having to fully
  disable the default ttyd* getty feature.  If the serial port isn't the
  console, it won't be enabled.

* Add a sysctl to the kernel which init needs to test whether a tty is the
  console or not.

Suggested-by: swildner
Delta File
+40 -7 sbin/init/init.c
+7 -7 etc/etc.i386/ttys
+7 -7 etc/etc.x86_64/ttys
+7 -7 nrelease/gui/etc/ttys
+6 -7 nrelease/root/etc/ttys
+10 -0 sys/kern/tty_cons.c
+8 -1 3 files not shown
+85 -36 9 files

DragonFlyBSD — sys/kern sys_generic.c

kernel - Return EINVAL on negative timeout to poll()

* Return EINVAL if poll() is called with a negative
  timeout, as per manual page.

Submitted-by: stateless
Delta File
+2 -0 sys/kern/sys_generic.c
+2 -0 1 file

DragonFlyBSD — sys/kern vfs_syscalls.c sys_mqueue.c, sys/sys time.h

kernel - Sanity-check getutimes().

* Sanity check getutimes() and getutimens()

* Also note futimes commit just before this one was also
  Submitted-by: stateless.

Submitted-by: stateless

DragonFlyBSD — lib/libc/sys utimensat.2 Symbol.map, sys/kern vfs_syscalls.c syscalls.master

kernel - Add futimens()

* Add futimens()

* Consolidate the support function to kern_futimens().
Delta File
+39 -6 sys/kern/vfs_syscalls.c
+23 -4 lib/libc/sys/utimensat.2
+8 -0 sys/sys/sysproto.h
+3 -0 lib/libc/sys/Symbol.map
+2 -1 sys/sys/syscall.h
+2 -1 sys/sys/syscall.mk
+5 -0 5 files not shown
+82 -12 11 files

DragonFlyBSD — sys/kern vfs_syscalls.c, sys/sys kern_syscall.h

kernel - Consolidate kern_utimes() into kern_utimensat()

* Consolidate kern_utimes() into kern_utimensat()

Submitted-by: stateless
Delta File
+58 -66 sys/kern/vfs_syscalls.c
+1 -2 sys/sys/kern_syscall.h
+59 -68 2 files

DragonFlyBSD — include/rpc Makefile, include/rpcsvc Makefile

buildworld: Specify cpp for rpcgen to use rather than fallback

Without the -Y switch, rpcgen will fall back to "cpp" which is guided
by OBJFORMAT environment settings to point at the host cpp from gcc50.
In the later stages of buildworld, we want to use the cpp we just built,
not the host cpp which could have issues.  By stage 4, no native host
tools should be in use.

DragonFlyBSD — sys/vfs/hammer2 hammer2_chain.c hammer2_inode.c

hammer2 - cleanup data load, unlink optimization

* Clean up data loading on chain lock.  Use chain flags to interlock data
  loading with either a shared or exclusive lock.

* We no longer upgrade a shared lock to exclusive in order to load data,
  preventing a potentially unexpected deadlock from occuring.

* Clean up the chain_core (chain->core) structure.  Remove flags and
  move the main lock from the core to the main chain structure proper.

* Attempt to avoid I/O when unlinking files by not updating the inode
  on the final 1->0 transition of nlinks.  This greatly reduces the amount
  of write I/O occuring during a rm -rf and improves performance by a
  factor of 3x.

DragonFlyBSD — sys/kern vfs_bio.c

kernel - Change bundirty() location in I/O sequence (2)

* The bundirty() move interfered with softupdates because
  the buf_complete() callback can re-dirty the buffer.

* Fixed by moving the bundirty() prior to the buf_complete()

Reported-by: marino
Delta File
+10 -7 sys/kern/vfs_bio.c
+10 -7 1 file

DragonFlyBSD — sys/netproto/802_11 dofbsddiff

net80211 - Add dofbsddiff script

* Add helper script to the repo so it isn't lost.

* Helps diff DFly and FBsd 80211 code for work.
Delta File
+21 -0 sys/netproto/802_11/dofbsddiff
+21 -0 1 file

DragonFlyBSD — sys/dev/drm/include/drm/ttm ttm_bo_driver.h ttm_bo_api.h, sys/dev/drm/ttm ttm_bo_vm.c ttm_bo.c

drm/ttm: revert again to use tree(3)

 This reverts 06cbdcf32488e8ce7bf9c345068a9f8d72cf48e2.
 Also add RB_ROOT redefine in ttm_bo_driver.h for ttm.

DragonFlyBSD — sys/vfs/hammer2 hammer2_flush.c hammer2_inode.c

hammer2 - stabilization

* Fix more deadlocks.  The solution here is not ideal, I'm doing too much
  unlocking and relocking of clusters and probably breaking certain atomicy

* Implement a delayed flush mechanism when making permanent chain deletions
  instead of calling hammer2_flush().  This should allow the flush code to
  better optimize-out unnecessary write I/Os.

* Add a spinlock for the ip->cluster (not completed yet).

* I had broken system-initated filesystem syncing by calling vclrisdirty()
  on the syncer vnode.  Fix it.

DragonFlyBSD — contrib/gcc-5.0 LAST_UPDATED, contrib/gcc-5.0/gcc gimplify.c ipa-inline.c

Merge branch 'vendor/GCC50'
∈ John Marino - 558d4a67 - 2015-05-25 08:05:27
Update gcc-50 to SVN version 223641 (gcc-5-branch)

Last Changed Date: 2015-05-25 02:16:10 +0200 (Mon, 25 May 2015)

DragonFlyBSD — gnu/usr.bin/cc50 Makefile.version

gcc50: bump version date to 25 May 2015

The base compiler gains all the fixes over the last 5 weeks since
GCC 5.1 was released.  This could fix a couple of issues in dports.
Delta File
+1 -1 gnu/usr.bin/cc50/Makefile.version
+1 -1 1 file

DragonFlyBSD — sys/vfs/dirfs dirfs.h

dirfs - only expose inlines to the kernel

* Only expose inlines to kernel code, user code can get tripped up on
  things like KKASSERT().
Delta File
+2 -0 sys/vfs/dirfs/dirfs.h
+2 -0 1 file

DragonFlyBSD — sys/vfs/hammer2 hammer2_cluster.c hammer2_syncthr.c

hammer2 - Refactor cluster locks, syncthr fixes, cleanups

* Do not resolve the cluster when locking and unlocking.  This led to
  problems when cparents used in iterations were being temporarily unlocked,
  because their nodes represent the iteration in the physical topology
  so the resolve might fail when relocked.

  Instead, resolution occurs with all cluster creation mechanics.  So, e.g.
  hammer2_cluster_lookup() and hammer2_cluster_next() will resolve the
  cluster being returned.

* Change hammer2_cluster_copy() semantics to inherit focus state and not
  call hammer2_cluster_resolve(), for the same reason as above.

* A cluster iteration usually returns NULL when the focus is lost, e.g.
  when only unsynchronized slaves remain.  Add a flag so the sync thread
  can iterate the cluster until all nodes are exhausted.

* Cleanup focus handling for the cluster iterator.  Move the bref compare
  to the resolver and get rid of the manual compare code in the iterator.

* Fix a locking flags bug in the cluster iterator.

* Fix numerous deadlocks.  Mostly requires unlocking the whole cluster before
  looping the iterator for new elements, so later indexes are not held locked

    [10 lines not shown]

DragonFlyBSD — share/mk bsd.cpu.gcc44.mk

Remove unused bsd.cpu.gcc44.mk file.
Delta File
+0 -153 share/mk/bsd.cpu.gcc44.mk
+0 -153 1 file

DragonFlyBSD — usr.bin/systat systat.1

systat.1: Update sensors display specific commands
Delta File
+50 -1 usr.bin/systat/systat.1
+50 -1 1 file

DragonFlyBSD — share/man/man4 ecc.4

ecc.4: Update for the recent ecc(4) changes
Delta File
+42 -4 share/man/man4/ecc.4
+42 -4 1 file

DragonFlyBSD — share/man/man4 memtemp.4

memtemp.4: Update for the recent sensor description change
Delta File
+3 -3 share/man/man4/memtemp.4
+3 -3 1 file

DragonFlyBSD — share/man/man4 coretemp.4

coretemp.4: Update for the recent sensor description change
Delta File
+7 -7 share/man/man4/coretemp.4
+7 -7 1 file

DragonFlyBSD — sys/dev/drm/include/linux ktime.h timer.h

drm: Add linux/ktime.h

DragonFlyBSD — lib/libc/sys utimensat.2 Makefile.inc, sys/kern vfs_syscalls.c syscalls.master

kernel - Add utimensat() support

* Brings in utimensat() from FreeBSD, adjusted for DragonFly system
  call mechanics.

Submitted-by: stateless #2818
Delta File
+252 -0 lib/libc/sys/utimensat.2
+84 -0 sys/kern/vfs_syscalls.c
+10 -0 sys/sys/sysproto.h
+6 -0 sys/sys/stat.h
+2 -1 sys/sys/syscall.h
+2 -1 sys/sys/syscall.mk
+7 -1 6 files not shown
+363 -3 12 files

DragonFlyBSD — sys/dev/drm/i915 i915_irq.c

drm/i915: Fix a __raw_i915_read32() definition

We don't have pci_iomap() yet so registers can't be properly mapped
in the Linux way.
Delta File
+1 -1 sys/dev/drm/i915/i915_irq.c
+1 -1 1 file

DragonFlyBSD — sys/dev/acpica acpi_wmi_if.m, sys/dev/acpica/acpi_wmi acpi_wmi.c

kernel/acpi_wmi: Move wmi_info_list into sc.

Taken-from: FreeBSD

DragonFlyBSD — usr.bin/vi port.h

vi(1): Remove a no longer used file.
Delta File
+0 -177 usr.bin/vi/port.h
+0 -177 1 file

DragonFlyBSD — sys/dev/drm drm_irq.c, sys/dev/drm/include/linux kernel.h

drm: Put abs64 definition in the right place

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

drm/linux: Add a few smp_mb_xxx_atomic_inc() functions

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

linux/i2c.h: Properly define struct device
Delta File
+3 -0 sys/dev/drm/include/linux/i2c.h
+3 -0 1 file

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

drm/linux: Add TASK_COMM_LEN
Delta File
+2 -0 sys/dev/drm/include/linux/sched.h
+2 -0 1 file

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

drm/linux: Add mod_timer_pinned()
Delta File
+3 -1 sys/dev/drm/include/linux/timer.h
+3 -1 1 file

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

drm/linux: define destroy_timer_on_stack()
Delta File
+2 -0 sys/dev/drm/include/linux/timer.h
+2 -0 1 file

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

drm/linux: define ETIME
Delta File
+1 -0 sys/dev/drm/include/linux/errno.h
+1 -0 1 file

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

drm/linux: Implement DEFINE_MUTEX()
Delta File
+4 -0 sys/dev/drm/include/linux/mutex.h
+4 -0 1 file

DragonFlyBSD — sys/dev/drm/include/asm cacheflush.h, sys/dev/drm/include/linux highmem.h

drm/linux: Add set_pages_uc()

DragonFlyBSD — sys/platform/pc64/x86_64 machdep.c

kernel - Change cpu_idle_hlt default

* Set cpu_idle_hlt default to 1 for Intel Haswell or later cpus.  These
  cpus do major power management in the HLT instruction.

  Leave cpu_idle_hlt default at 2 for AMD cpus or older Intel cpus.
  These cpus do not do major management in the HLT instruction and ACPI
  entry is required to reduce idle power consumption.
Delta File
+22 -2 sys/platform/pc64/x86_64/machdep.c
+22 -2 1 file

DragonFlyBSD — gnu/usr.bin/cc50/support-libs/libbacktrace Makefile

WORLD_CCVER: Fix buildworld with clangXX

The backtrace library requires unwind.h to build.  This file was never
created, so the base GCC's would fall back to the version in /usr/libdata.
Clang compilers from ports don't have unwind.h so they were failing on the
world build (building gcc50).  This modification makes unwind.h available
for backtrace.c and allows the build to complete with WORLD_CCVER=clang36

DragonFlyBSD — sys/vfs/hammer2 hammer2_cluster.c

hammer2 - Fix hammer2_cluster_load_async() issue

* Fix a hammer2_cluster_load_async() issue. Old code hardwired the cluster
  index to 0, but this might not be a validated chain.  Use cluster->focus
Delta File
+2 -14 sys/vfs/hammer2/hammer2_cluster.c
+2 -14 1 file

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

drm: Improve mutex_lock_interruptible() again

It should really be interruptible by signals

Spotted-by: dillon
Delta File
+1 -1 sys/dev/drm/include/linux/mutex.h
+1 -1 1 file

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

drm/linux: Improve the implementation of mutex_lock_interruptible()
Delta File
+8 -1 sys/dev/drm/include/linux/mutex.h
+8 -1 1 file

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

drm/linux: Add get_page()
Delta File
+6 -0 sys/dev/drm/include/linux/mm.h
+6 -0 1 file

DragonFlyBSD — sbin/ipfw3 ipfw3.8

ipfw3.8: Some cleanup.
Delta File
+87 -60 sbin/ipfw3/ipfw3.8
+87 -60 1 file

DragonFlyBSD — sys/kern vfs_bio.c vfs_sync.c

kernel - Change bundirty() location in I/O sequence

* When doing a write BIO, do not bundirty() the buffer prior to issuing
  the vn_strategy().  Instead, bundirty() the buffer when the I/O
  is complete, primarily in bpdone().

  The I/O's data buffer is protected during the operation by vfs_busy_pages(),
  so related VM pages cannot be modified while the write is running.  And,
  of course, the buffer itself is locked exclusively for the duration of the
  opeartion.  Thus this change should NOT introduce any redirtying races.

* This change ensures that vp->v_rbdirty_tree remains non-empty until all
  related write I/Os have completed, removing a race condition for code
  which checks vp->v_rbdirty_tree to determine e.g. if a file requires
  synchronization or not.

  This race could cause problems because the system buffer flusher might
  be in the midst of flushing a buffer just as a filesystem decides to
  sync and starts checking vp->v_rbdirty_tree.

* This should theoretically fix a long-standing but difficult-to-reproduce
  bug in HAMMER1 where a backend flush occurs at an inopportune time.

DragonFlyBSD — sys/vfs/hammer2 hammer2_vfsops.c hammer2_flush.c

hammer2 - Per-PFS transaction management

* Replace the global transaction manager with a per-mount transaction

* Each media volume's spmp (super-root pfs) also gets its own transaction

* The Filesystem sync now flushes each PFS associated with the mount,
  and then flushes the super-root for the related physical volumes.

  When flushing the super-root, the flush stops at the PFS transition.

* Interactions on one mount point no longer stall other mount points on
  the same media.  This also means that freemap updates related to
  other mount points may occur while a flush is occuring on one of them.
  (might have broken recovery here, will fix in another pass).

* For now keep the syncer interlock vs new modifying operations to ensure
  a stable snapshot.