Commits on Apr 30, 2010
  1. nrelease - MFC try to workaround a problem with ./bootstrap

    * setenv share_dir during the bootstrap build to try to work around a
      problem where recent changes in the build cause bmake to try to access
      the system mk files in /usr/share/mk.
    Matthew Dillon committed Apr 30, 2010
  2. kernel - Try to fix NULL pointer issue in syncache_timer_handler()

    * There seems to be a case where a tcpcb's inp can be NULL when accessed
      from syncache_timer_handler().  Try to handle it.
    Matthew Dillon committed Apr 30, 2010
  3. kernel - Disallow dsioctl when no media is present

    * Attempt to fix a panic which can occur when attempts are made to
      call ioctl() via a slice/partition on removable drives with no media.
    Matthew Dillon committed Apr 30, 2010
  4. kernel - Fix resident_count problems with kernel_pmap & related crashes

    * kernel_pmap.pm_stats.resident_count could get out of sync due to the
      lwbuf code calling kmem_free() on KVM with pages that were entered
      via pmap_kenter().  Delete the pages before calling kmem_free().
      This in turn caused various failures and kernel panics due to conditionals
      based on resident_count == 0.  Heavy sendfile() activity could trigger
      the bug but it was taking a few days for the resident_count to decrement
      to zero.
    * Fix a similar issue in zdestroy() on ZONE_INTERRUPT zones.  Nothing calls
      this routine so it was not a vector for crashes.
    * Document the case.
    Matthew Dillon committed Apr 29, 2010
  5. @thesjg

    kernel - mmap offset is invalid for MAP_ANON

    Submitted-by: Venkatesh Srinivas
    Dragonfly-bug: <>
    thesjg committed Apr 29, 2010
  6. bpf(4): Fix the division by zero check in bpf_validate().

    BPF_RVAL() was being used where BPF_SRC() would have been correct.
    Reported-by:   Guy Harris <>
    Dragonfly-bug: <>
    Sascha Wildner committed Apr 30, 2010
Commits on Apr 26, 2010
  1. kernel - make sysent update

    * Update for changes in the extattr family of system calls.
    Matthew Dillon committed Apr 26, 2010
  2. kernel - Update extattr infrastructure

    * Update the extattr infrastructure to match FreeBSD.  Numerous arguments
      have changed in the system calls and created an issue with libarchive.
    Matthew Dillon committed Apr 26, 2010
Commits on Apr 22, 2010
  1. Fix kthread_create() in kern_sensors.c.

    Sascha Wildner committed Apr 22, 2010
Commits on Apr 21, 2010
  1. window(1): Perform NULL check before strcmp() rather than after.

    Fixes segfault upon TERM=cons25.
    YONETANI Tomokazu committed with Sascha Wildner Apr 10, 2010
  2. @mneumann

    hammer volume-add / volume-del: Keep bigblock stats correct

    mneumann committed with Sascha Wildner Apr 6, 2010
  3. Sync zoneinfo database with tzdata2010i from

    africa:         8.24 -> 8.26
    asia:           8.59 -> 8.60
    southamerica:   8.43 -> 8.44
    * Morocco will have DST in 2010 from May 2 to Aug 22.
    * Taiwan had DST in 1979, not in 1980.
    * San Luis, Argentina, is on "permanent" DST as of 2010.
    Sascha Wildner committed Apr 21, 2010
Commits on Apr 19, 2010
  1. HAMMER VFS - Fix probable corruption case when filesystem becomes nea…

    …rly full
    * The reblocking code was incorrectly assuming the cursor would be pointing
      at a valid node element after an unlock/relock sequence, when it could
      actually be pointing at the EOF of a node.  This case can occur when
      the filesystem is nearly full (possibly due to the reblocking operation
      itself), when the filesystem is also under load from unrelated
    * This can result in the creation of a corrupted B-Tree leaf node or
      data record.
    * Corruption can be checked with hammer checkmap and hammer show
      (as of this rev):
      hammer -f device checkmap
    	Should output no B-Tree node records or free space mismatches.
    	You will still get the initial volume summary.
      hammer -f device show | egrep '^B' | egrep -v '^BM'
    	Should output no records.
    * Currently the only recourse if corruption is found is to copy off the
      filesystem, newfs_hammer, and copy it back.
      Full history and snapshots can be retained by using 'hammer -B mirror-read'
      to copy off the filesystem and mirror-write to copy it back.  However,
      pleaes remember you must do this for each PFS individually.  Make sure
      you have a viable backup before newfsing anything.
    Reported-by: Francois Tigeot <>, Jan Lentfer <>
    Matthew Dillon committed Apr 18, 2010
  2. HAMMER VFS - Fix assertion panic related to record flush state

    * This assertion can occur under certain circumstances if a rename
      operation moves a file or directory to a parent directory, due to
      a circular loop in the dependency chain.
    * Fix the problem by allowing the case.
    Reported-by: Sascha Wildner, Alex Hornung, Venkatesh Srinivas, others
    Matthew Dillon committed Apr 17, 2010
  3. HAMMER Util - Add 'checkmap', adjust hammer show

    * Add a checkmap function which scans the B-Tree, collects byte usage,
      and checks it against the blockmap.  This is still experimental.
    * Adjust hammer show to flag zone mismatches instead of asserting.
    Matthew Dillon committed Apr 15, 2010
  4. HAMMER VFS - Fix hammer lock assertion panic when REDO recovery fails

    * REDO recovery failed to release a buffer in its error path, resulting
      in a panic later on.  This patch adds the proper release.
    Reported-by: Venkatesh Srinivas <>
    Matthew Dillon committed Apr 13, 2010
Commits on Apr 13, 2010
  1. @bwalex

    nata - Drop pending requests on dump

    * Drop all pending requests in the ata queue when we are about to dump.
    * This should solve issues that have been appearing lately causing a
      TAILQ_NEXT panic on dumps with nata under heavy I/O.
    Reported-by: Jan Lentfer (lentferj@), Antonio Huete (tuxillo@)
    Obtained-from: FreeBSD
    bwalex committed Apr 13, 2010
  2. @bwalex

    ata - Fix dumping of old ata driver

    * While we still have ata(4) around, make addump work properly again
      with the new dumping infrastructure.
    bwalex committed Apr 13, 2010
Commits on Apr 10, 2010
  1. Fix LINT build.

    Sascha Wildner committed Apr 11, 2010

    It's incomplete and an undocumented option in acpiconf can trigger
    a kernel panic (only as root, though).
    YONETANI Tomokazu committed Apr 10, 2010
  3. Install the boot(8) manual page too during 64 bit install.

    Sascha Wildner committed Apr 10, 2010
Commits on Apr 9, 2010
  1. @bwalex

    linux emu - Refactor open code

    * Factor out a linux_open_common that both open() and openat() use.
    * While here, also use CACHE_*MPLOCK*, as is done in vfs_syscalls.c.
    bwalex committed Apr 9, 2010
  2. @bwalex

    linux emu - support O_DIRECTORY for open syscall

    * Linux opendir seems to rely on O_DIRECTORY to avoid certain race
      conditions, so introduce O_DIRECTORY support which just returns
      ENOTDIR even if the open is successful, if the opened path is not a
    * This fixes Ant's directory scanner.
    Submitted-by: Johannes Hofmann
    bwalex committed Apr 9, 2010
Commits on Apr 8, 2010
  1. look(1): Fix my previous commit.

    I broke i386 behavior. Instead, take a nicer fix from NetBSD.
    Sascha Wildner committed Apr 8, 2010
  2. Fix look(1) on x86_64.

    SIZE_T_MAX, being ULONG_MAX, was -1 when cast to off_t (int64_t).
    Reported-by: Urmas Reinsalu <>
    Sascha Wildner committed Apr 8, 2010
Commits on Apr 7, 2010
  1. mqueues: selwakeup() needs the MP lock to be held

    Briefly-discussed-with: sjg@
    Stathis Kamperis committed Apr 6, 2010
Commits on Apr 5, 2010
  1. Sync zoneinfo database with tzdata2010h from

    africa:         8.23 -> 8.24
    asia:           8.58 -> 8.59
    Both Tunisia and Pakistan have decided to abandon DST.
    Sascha Wildner committed Apr 5, 2010
Commits on Apr 4, 2010
  1. nrelease: Remove unused variable.

    Sascha Wildner committed Apr 4, 2010
  2. HAMMER Utility - Change default split size from 100MB to 4G

    * Change the default split size for mirroring from 100MB to 4G.  For very
      large filesystems a small split size can result in very high meta-data
      overheads with very little actual incremental data.
    * Adjust the manual page for the split changes.
    * Adjust the manual page to clarify limitations of the bandwidth option.
    Matthew Dillon committed Apr 4, 2010
  3. nrelease: Add back the creation of the /usr/local hierarchy on the Li…

    Even though nothing in base uses it, it's more convenient to have the
    hierarchy already in place in case the user wants to install some stuff
    the traditional way.
    While doing this, remove the documentation of the 'fetch' target from
    release.7 since this target no longer exists now that cvsup has been
    removed from the LiveCD.
    In-discussion-with: dillon
    Sascha Wildner committed Apr 4, 2010
  4. installer: Fix the LiveCD's /etc/fstab regarding /usr/local.

    /usr/local/etc was mounted read/write (a remnant from the FreeBSD ports
    era). Instead, mount /usr/pkg/etc in order to give the user a chance to
    tweak the settings of the packages which come on the LiveCD.
    Sascha Wildner committed Apr 4, 2010
  5. @tuxillo
Commits on Apr 3, 2010
  1. include/Makefile: Add vers.txt to CLEANFILES.

    Sascha Wildner committed Apr 3, 2010
Commits on Apr 1, 2010
  1. kernel - Address excessive stall in pageout during deadlock avoidance

    * The pageout daemon uses LK_TIMELOCK to avoid deadlocking on a vnode
      that might be held locked during a pfault, which waits up to 1/10 of
      a second.
      If the vnode has a large number of pageable pages each page may go
      through the timeout.  This can result in the pageout daemon stalling
      for an excessive amount of time.
      Reduce instances of the problem by remembering the last vnode which
      failed its timelock and using LK_NOWAIT for later pages.  A single
      vnode is remembered for now.
    Reported-by: Francois Tigeot <>
    Matthew Dillon committed Apr 1, 2010
  2. devfs - Fix incorrect st_size reporting

    * The default reported st_size should be 0 and not sizeof(devfs_node).
    * Fixes incorrect reporting for /dev/null and other devices.
    Reported-by: marino2, numerous others (it slipped through the cracks)
    Matthew Dillon committed Apr 1, 2010