Displaying 1 50 of 38,218 commits (0.009s)

DragonFlyBSD — sys/net if_poll.c

polling: Simplify the code by using netsr_*msg functions.
Delta File
+26 -41 sys/net/if_poll.c
+26 -41 1 file

DragonFlyBSD — sys/net netisr2.h

netisr: Add netisr_sendmsg_oncpu()
Delta File
+7 -0 sys/net/netisr2.h
+7 -0 1 file

DragonFlyBSD — sys/net/bridge if_bridge.c

bridge: It should only run in netisr_cpus netisrs
Delta File
+18 -14 sys/net/bridge/if_bridge.c
+18 -14 1 file

DragonFlyBSD — sbin/mount_hammer2 mount_hammer2.c, sys/vfs/hammer2 hammer2_vfsops.c

hammer2 - Allow @LABEL to be omitted

* Allow the @LABEL in "<devicepath>@LABEL" to be omitted when mounting.
  If omitted, H2 will automatically supply "@LOCAL".

* Provides convenience for simple use cases.

DragonFlyBSD — sys/vfs/hammer2 hammer2_strategy.c

hammer2 - Synchronize write-in-place feature

* Disable hole creation when the check mode is disabled on a file.
  Writing zeros maintains any previously assigned block.

* Allows reserving storage for a file (such as an image) by dd'ing
  /dev/zero into it, as long as check mode has also been disabled
  on that file.  No data CRCs or hashes will be computed or checked
  for the file.

* Note that this should still work properly with snapshots.  A snapshot
  will force block reallocation on the master for any writes that cross
  the snapshot boundary.
Delta File
+27 -2 sys/vfs/hammer2/hammer2_strategy.c
+27 -2 1 file

DragonFlyBSD — sys/vfs/hammer2 hammer2_vnops.c hammer2_xops.c

hammer2 - Consolidate backend rename ops

* Reduce frontend XOP ops required for rename from 3 to 2 by integrating
  the unlink-target operation into xop_nrename.  The xop_nrename backend
  function now handles replacing the target namespace when it exists and
  will also get rid of any duplicates as a safety.

* Adjust the frontend inode locking order to try to avoid deadlocks.

* Adjust iparent documentation.

* Properly set iparent in the rename operation.  The iparent was not
  being adjusted at all.

* Properly set iparent in the inode create operation.  The iparent was
  improperly being set to 0 instead 1 when the parent directory was the
  mount point.

DragonFlyBSD — lib/libc/net rcmdsh.c

libc - Fix bug in rcmdsh()

* rcmdsh() (which really nothing should be using any more anyway) used
  a generic wait(NULL) to wait for a child to exit, but this can wind
  up waiting for the wrong pid in a multi-threaded or multi-fork environment.

* Solved by waiting on the specific pid instead.
Delta File
+1 -1 lib/libc/net/rcmdsh.c
+1 -1 1 file

DragonFlyBSD — usr.sbin/sshlockout sshlockout.8

sshlockout - Improve manual page

* Rewrite the manual page, provide a more concise example.

* Suggest using pfctl -T expire <seconds> instead of -T flush for the
  crontab entry.

Reported-by: Miroslav Lachman <000.fbsd at quip.cz>
Delta File
+25 -6 usr.sbin/sshlockout/sshlockout.8
+25 -6 1 file

DragonFlyBSD — include time.h pthread.h, lib/libc/gen clock_getcpuclockid.3 clock_getcpuclockid.c

libc/libpthread: Add clock_getcpuclockid() and pthread_getcpuclockid().

* Adjust clock_gettime() and clock_getres() to accept values obtained
  this way.

* Also set _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME, although we should
  really support values obtained by these functions in clock_settime()
  too.

Based on and taken from FreeBSD's code.

Reviewed-by: sephe

DragonFlyBSD — . Makefile_upgrade.inc, include stab.h struct.h

Remove <stab.h> and <struct.h>.

* <stab.h> had information about the a.out related symbol table
  format.

* <struct.h> has been removed from FreeBSD since 2001.

Both headers are not needed by anything in our tree or dports.

DragonFlyBSD — sys/kern kern_time.c

kernel/time: Change get_curthread_cputime() to get_thread_cputime().
Delta File
+2 -3 sys/kern/kern_time.c
+2 -3 1 file

DragonFlyBSD — sys/sys types.h

<sys/types.h>: Add guard around lwpid_t, also put under __BSD_VISIBLE.
Delta File
+7 -1 sys/sys/types.h
+7 -1 1 file

DragonFlyBSD — sys/vfs/hammer2 DESIGN

hammer2 - Update DESIGN document

* Update the DESIGN document to reflect changes.
Delta File
+286 -181 sys/vfs/hammer2/DESIGN
+286 -181 1 file

DragonFlyBSD — sys/vfs/hammer2 hammer2_vnops.c

hammer2 - correct readdir bug

* Correct a readdir iteration bug for the new DIRENT type.
Delta File
+5 -0 sys/vfs/hammer2/hammer2_vnops.c
+5 -0 1 file

DragonFlyBSD — lib/libstand hammer2.c, sbin/hammer2 cmd_debug.c subs.c

hammer2 - Initial HARDLINK -> DIRENT replacement code

* Initial removal of the vestiges of the old embedded inode code.  Inodes
  were moved to the root directory long ago but directories still contain
  dummy OBJTYPE_HARDLINK inodes instead of real directory entries to point
  to the moved inodes.  These inodes ate 1024 bytes of disk space for each
  directory entry.

* Remove the dummy OBJTYPE_HARDLINK inodes and replace with new
  BREF_TYPE_DIRENT blockrefs.  These blockrefs represent directory
  entries, and the entire dirent will fit in the blockref (requiring
  no data ref) if the filename is <= 64 bytes.

* This new DIRENT mechanic significantly improves performance and reduces
  storage overage vs the previous mechanicn, for obvious reasons.

  Directory entries are now 128 bytes instead of 1024 bytes, and since they
  are collected together in indirect blocks or (if <= 4 entries) simply
  placed in the 4 blockrefs embedded in the directory inode, the related
  I/O tends to be fairly optimal.

  Only directory entries whos filenames are > 64 bytes long require an
  additional data block reference.  For now, due to other constraints,
  we use the minimum H2 allocation size of 1KB for these, so certainly
  space is wasted.  But in real life there aren't actually a whole lot
  of filenames that are that long so it should be fine.

DragonFlyBSD — sys/net/altq altq_rmclass.c altq_cbq.c

altq/cbq: Drain pending callout and the cooresponding netmsg.

DragonFlyBSD — sys/net/altq altq_rmclass.c altq_cbq.c

altq/cbq: Redispatch restart function to netisr0.

Now, all pseudo interfaces' if_start run in netisr_ncpus netisrs.

DragonFlyBSD — sys/net/altq altq_rmclass.c

altq: Fix typo
Delta File
+1 -1 sys/net/altq/altq_rmclass.c
+1 -1 1 file

DragonFlyBSD — sys/cpu/x86_64/misc monitor.s bzeront.s, sys/platform/pc64/x86_64 support.s swtch.s

sys: Add size directives to assembly functions.

No functional change intended.

DragonFlyBSD — sys/cpu/x86_64/include segments.h, sys/dev/misc/lpt lpt.c

sys: Some whitespace cleanup.

While there, fix indentation and few typos a bit.
No functional change.

DragonFlyBSD — lib/libc/x86_64/string strcmp.S, lib/libfetch common.c

Fix few typos.

While there, make few whitespace adjustments.

DragonFlyBSD — sbin/newfs_hammer2 newfs_hammer2.8, sys/vfs/hammer2 hammer2_chain.c hammer2_disk.h

hammer2 - Adjust blockref to create an embedded area, start dirent work

* Create a type-specific embedded area in the blockref structure.  Move
  data_count and inode_count into the new area.  The blockref structure
  size does not change.

* Adjust code to access data_count and inode_count conditionally for
  BREF_TYPE_INODE, DATA, and INDIRECT types only.

* Now that we have abandoned embedding inodes directly in directories for
  normal operation, start working on removing HAMMER2_OBJTYPE_HARDLINK and
  creating a real directory entry abstraction.

  The real directory entry abstraction will allow directory entries to be
  directly embedded in blockref structures, without requiring a data
  reference for any filename <= 64 bytes.  This will be accomplished by
  using the new embedded area in the blockref for the directory entry
  header and the check area for the filename (up to 64 bytes).

  This will significantly improve directory compactness and I/O efficiency
  by reducing the directory entry overhead from 1152 bytes (1024 + 128) to
  just 128 bytes and guaranteeing locality since the blockrefs are
  collected together in indirect blocks.  Another nice facet is that since
  inodes can embed up to four direct blockrefs, any directory with <=
  4 entries in it can embed those entries in the directory inode itself.

    [8 lines not shown]

DragonFlyBSD — games/hack hack.unix.c

hack(6): Allow to play without setgid.

Lockfile hardlinking requires that user should own the perm file.
Delta File
+1 -1 games/hack/hack.unix.c
+1 -1 1 file

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

hammer2 - Cleanup pass, remove unused fields and code

* Remove the unused per-inode cluster cache.  The code isn't really
  compatible with the XOP mechanism.

* Remove unused hammer2_xop_nlink() and related structures.  Hardlinking
  is handled through normal hammer2_inode_*() functions and no longer
  needs an explicit backend.

* Remove the unused iocb.cluster field.  iocb's are now exclusively
  backend entities.

DragonFlyBSD — . Makefile_upgrade.inc, sys/platform/pc64/x86_64 support.s

Remove kernbb(8).

It likely never worked in DragonFly (or until some early compiler
upgrade). FreeBSD stopped building it in 2004 (r132787).

Reported-by: zrj

DragonFlyBSD — . Makefile_upgrade.inc

Remove scsi_low.ko via 'make upgrade' (leftover from 075c6d38244abd0b0).
Delta File
+1 -0 Makefile_upgrade.inc
+1 -0 1 file

DragonFlyBSD — include glob.h, sys/sys time.h

<glob.h>/<sys/time.h>: Clean up the namespace a bit better.

These headers don't need the full weight of <sys/types.h>.

While here, sync glob()'s prototype with the standard and fix a typo
in a comment.
Delta File
+4 -3 include/glob.h
+3 -1 sys/sys/time.h
+7 -4 2 files

DragonFlyBSD — include glob.h, sys/sys time.h

<glob.h>/<sys/time.h>: Some minimal whitespace cleanup.
Delta File
+19 -19 sys/sys/time.h
+1 -2 include/glob.h
+20 -21 2 files

DragonFlyBSD — sys/netinet ip_flow.c ip_flow.h

ipflow: Use per-cpu callout, instead of pr_slowtimo.

The dynamically allocated per-cpu data structure may race the
ip_flowtimo, which calls ipflow_slowtimo.

Reported-by: zrj

DragonFlyBSD — sys/net/vlan if_vlan.c

vlan: It should only run in netisr_cpus netisrs
Delta File
+12 -7 sys/net/vlan/if_vlan.c
+12 -7 1 file

DragonFlyBSD — sys/netinet ip_flow.c

ipflow: Regroup percpu data.
Delta File
+24 -14 sys/netinet/ip_flow.c
+24 -14 1 file

DragonFlyBSD — sys/netinet ip_flow.c

ipflow: It can only run in first netisr_ncpus netisrs
Delta File
+15 -3 sys/netinet/ip_flow.c
+15 -3 1 file

DragonFlyBSD — sys/net/ipfw ip_fw2.c

ipfw: ipfw only runs on netisr_ncpus
Delta File
+26 -20 sys/net/ipfw/ip_fw2.c
+26 -20 1 file

DragonFlyBSD — sys/net netisr2.h

netisr: Add add support for netisr_ncpus

- netisr_forwardmsg(), which only forwards netmsg to netisr_ncpus.
- ASSERT_NETISR_NCPUS, which asserts the thread is one of the netisrs
  on netisr_ncpus.
Delta File
+18 -0 sys/net/netisr2.h
+18 -0 1 file

DragonFlyBSD — include signal.h, sys/sys devicestat.h

In <signal.h> and <sys/devicestat.h>, include <sys/types.h> explicitly.

This is in preparation for cleaning up <sys/time.h>'s namespace, which
<signal.h> and <sys/devicestat.h> relied on previously for bringing in
<sys/types.h>, but which does not actually need it for its own stuff.
Delta File
+1 -1 include/signal.h
+1 -0 sys/sys/devicestat.h
+2 -1 2 files

DragonFlyBSD — sys/sys posix4.h

<sys/posix4.h>: Clean up a bit.

* This is only supposed to be included by the kernel. Error if _KERNEL
  isn't defined.

* Adjust #endif comments.

* Move include guard down.
Delta File
+11 -4 sys/sys/posix4.h
+11 -4 1 file

DragonFlyBSD — sys/net if.c netisr2.h, sys/net/bridge if_bridge.c

netisr: netisr_forwardmsg -> netisr_forwardmsg_all

This function actually forwards netmsg to all available netisrs,
instead of netisr_ncpus netisrs.

For some modules, this is obviously not necessary; they will be
fixed one-by-one later.
Delta File
+13 -13 sys/net/ipfw/ip_fw2.c
+13 -13 sys/net/ipfw3/ip_fw3.c
+7 -7 sys/net/ipfw3/ip_fw3_table.c
+5 -5 sys/net/bridge/if_bridge.c
+4 -4 sys/netinet/in.c
+3 -3 sys/net/if.c
+12 -9 5 files not shown
+57 -54 11 files

DragonFlyBSD — usr.bin/time time.1

Sync time(1)'s manual page a bit with FreeBSD, too.
Delta File
+23 -6 usr.bin/time/time.1
+23 -6 1 file

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

July 13, 2017 snapshot from http://pciids.sourceforge.net/
Delta File
+102 -23 share/misc/pci_vendors
+102 -23 1 file

DragonFlyBSD — usr.bin/time time.c

time: Handle SIGINFO in time(1)

If the process receives SIGINFO print the elapsed time.

Taken-From: FreeBSD r158560 and r283073
Delta File
+12 -8 usr.bin/time/time.c
+12 -8 1 file

DragonFlyBSD — usr.bin/time time.c

time: Handle SIGINFO in time(1)

SIGINFO printing the time the given command is running.

Taken-From: FreeBSD r158560
Delta File
+9 -3 usr.bin/time/time.c
+9 -3 1 file

DragonFlyBSD — usr.bin/time time.c

time: FreeBSD r169346

- Cast to intmax_t to print tv_sec in struct timeval.
- Avoid shadowing a global variable with a function argument.
Delta File
+59 -36 usr.bin/time/time.c
+59 -36 1 file

DragonFlyBSD — usr.bin/time time.c

time: Use clock_gettime

gettimeofday is not suitable for measuring runtimes, as it is
not guaranteed to be monotonic.
Delta File
+18 -17 usr.bin/time/time.c
+18 -17 1 file

DragonFlyBSD — usr.bin/time time.c

time: Use close-on-exec instead of fclose() in the child process.

Taken-From: FreeBSD r244034
Delta File
+1 -3 usr.bin/time/time.c
+1 -3 1 file

DragonFlyBSD — usr.bin/time time.c

time: Close an output file -o flag opened before execvp(3) in a child.

Taken-From: FreeBSD r157796
Delta File
+2 -0 usr.bin/time/time.c
+2 -0 1 file

DragonFlyBSD — include pthread_np.h, lib/libc/gen Symbol.map _pthread_stubs.c

pthread: Add pthread_getthreadid_np() function, bump __DragonFly_version.

Using pthread_getthreadid_np() can directly use the thread-ID value that is
already cached in the pthread_t struct.

Partly Taken-From: FreeBSD

DragonFlyBSD — sys/net if.c

ifnet: Fix typo.
Delta File
+1 -1 sys/net/if.c
+1 -1 1 file

DragonFlyBSD — sys/net if.c

ifnet: Log rarely used ifnet address destruction.
Delta File
+2 -0 sys/net/if.c
+2 -0 1 file

DragonFlyBSD — sys/net if.c

ifnet: Break long lines.
Delta File
+8 -4 sys/net/if.c
+8 -4 1 file

DragonFlyBSD — sys/net if.c

ifnet: ifa_addr should always be configured.
Delta File
+2 -2 sys/net/if.c
+2 -2 1 file