Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: user/sbruno/px…
Commits on Jan 18, 2013
  1. @seanbruno

    btx.S

    seanbruno authored
    -  Probably not a good idea to write the crash message randomly.
    	(jiles)
    
    pxe.c
    -  Move some white space around to show that the new code is being
       run at the same point as old code in the #ifdef
  2. @seanbruno

    Adjust Makefile for my arbitrary rename of pxe_http -> pxehttp.

    seanbruno authored
    Add more more merges from SOC pxe_http project into libi386
    - this adds the theoretical ability to use pxehttp for the packet
    driver parts in libstand if the user does not want all of the
    wonderous http goodness.
Commits on Jan 17, 2013
  1. @seanbruno

    Add snprintf() for now to libstand. I don't know if I actually want this

    seanbruno authored
    in base, but let's just see what its used for and how importand this is.
  2. @seanbruno
Commits on Jan 16, 2013
  1. @seanbruno

    Now we come down to the linker issues between whatever functions are

    seanbruno authored
    in "libhttp_pxe" and libstand.  Things compile now, but still need symbol
    resolution.
  2. @seanbruno

    Merge last changes from pxe_http tree into the head version of /boot

    seanbruno authored
    looks like I've got some include files problems, clang doesn't handle
    this part of the tree yet and I've found unsupported clang bits?
    
    Note:  doesn't compile yet, try again after I get some sleep
  3. @seanbruno

    First day of work on pxe_http restoral, merge in some janky assembly …

    seanbruno authored
    …that
    
    better get some serious reviews from people whom are way smarter than I.
Commits on Jan 15, 2013
  1. @amotin

    Alike to r242314 for GRAID make GRAID3 more aggressive in marking vol…

    amotin authored
    …umes
    
    as clean on shutdown and move that action from shutdown_pre_sync stage to
    shutdown_post_sync to avoid extra flapping.
    
    ZFS tends to not close devices on shutdown, that doesn't allow GEOM RAID
    to shutdown gracefully.  To handle that, mark volume as clean just when
    shutdown time comes and there are no active writes.
    
    MFC after:	2 weeks
  2. @amotin

    Alike to r242314 for GRAID make GMIRROR more aggressive in marking vo…

    amotin authored
    …lumes
    
    as clean on shutdown and move that action from shutdown_pre_sync stage to
    shutdown_post_sync to avoid extra flapping.
    
    ZFS tends to not close devices on shutdown, that doesn't allow GEOM RAID
    to shutdown gracefully.  To handle that, mark volume as clean just when
    shutdown time comes and there are no active writes.
    
    PR:		kern/113957
    MFC after:	2 weeks
  3. cxgbe/tom: Miscellaneous updates for TOE+IPv6 support (more to follow).

    np authored
    - Teach find_best_mtu_idx() to deal with IPv6 endpoints.
    
    - Install correct protosw in offloaded TCP/IPv6 sockets when DDP is
      enabled.
    
    - Move set_tcp_ddp_ulp_mode to t4_tom.c so that t4_tom.h can be included
      without having to drag in t4_msg.h too.  This was bothering the iWARP
      driver for some reason.
    
    MFC after:	1 week
  4. @brooksdavis

    Add an option DB_FROM_SRC to use src/etc's user/group databases when

    brooksdavis authored
    installing.  This allows things like running installworld for 10-CURRENT
    on a 9.0-RELEASE system without adding extra users and groups to the
    passwd and group files.
    
    To prevent potentially risky uid/gid mismatches on systems with
    non-standard local values, require that DESTDIR be set if DB_FROM_SRC is
    set.
    
    Sponsored by:	DARPA, AFRL
    Reviewed by:	peter
Commits on Jan 14, 2013
  1. @devinteske

    Don't use f_show_msg() unless printf(1) syntax is required (this redu…

    devinteske authored
    …ces the
    
    number of unnecessary forks).
  2. @brooksdavis
  3. cxgbe(4): Updates to the hardware L2 table management code.

    np authored
    - Add full support for IPv6 addresses.
    
    - Read the size of the L2 table during attach.  Do not assume that PCIe
      physical function 4 of the card has all of the table to itself.
    
    - Use FNV instead of Jenkins to hash L3 addresses and drop the private
      copy of jhash.h from the driver.
    
    MFC after:	1 week
  4. @amotin

    Keep value of orig_config_id metadata field. Windows driver writes there

    amotin authored
    previous value of config_id when it is changed in some cases.  I guess it
    may be used do avoid some split-brain conditions.
  5. @DimitryAndric

    Add CLOCK_PROCESS_CPUTIME_ID to <time.h>, to synchronize the CLOCK_*

    DimitryAndric authored
    values with those in <sys/time.h>.  Otherwise, if a program includes
    <time.h> before <sys/time.h>, the CLOCK_PROCESS_CPUTIME_ID macro never
    gets defined.
    
    Reviewed by:	davidxu
    X-MFC-With:	239347
  6. Add new u3g device quirk.

    hselasky authored
    Submitted by:	Lowell Gilbert
    MFC after:	1 week
  7. @jillest

    sh: Simplify cd-hash interaction.

    jillest authored
    Instead of rechecking relative paths for all hashed utilities after a cd,
    track if any utility in cmdtable depends on a relative path in PATH.
    If there is such a utility, cd clears the entire table.
    
    As a result, the '*' in hash no longer happens.
  8. @amotin
  9. @seanbruno

    Quiesce some clang warnings while we're here doing stuff.

    seanbruno authored
    Submitted by:	Hiren Panchasara <hiren.panchasara@gmail.com>
    Obtained from:	Yahoo! Inc
  10. @amotin
  11. @jillest

    sh: Pass $? to command substitution containing compound/multiple comm…

    jillest authored
    …ands.
    
    Example:
      false; echo $(echo $?; :)
  12. @z0nt

    - Get rid of unused function vmspace_wired_count().

    z0nt authored
    Reviewed by:	alc
    Approved by:	kib (mentor)
    MFC after:	1 week
  13. Remove stray tabs.

    jlh authored
    Submitted by:	kib
    Approved by:	kib (mentor)
    MFC after:	1 week
  14. Allow commands without any additional arguments, as stated in the

    jlh authored
    manpage.  While here, exit early when there is nothing to do.
    
    PR:            168415
    Submitted by:  Zhihao Yuan (initial version)
    MFC after:     1 week
    Approved by:   kib (mentor)
  15. Update sigcode to use both the current ABI and FreeBSD's version of the

    andrew authored
    ARM EABI syscall calling convention.
    
    The current ABI encodes the syscall number in the instruction. This causes
    issues with the thumb mode as it only has 8 bits to encode this value and
    we have too many system calls and by using a register will simplify the
    code to get the syscall number in the kernel.
    
    With the ARM EABI we reuse the Linux calling convention by storing the
    value in r7. Because of this we use both methods to encode the syscall
    number in this function.
  16. Switch the default CPU to an arm9. This removes compiler support for the

    andrew authored
    unsupported 26-bit addressing mode. This change is required for moving to
    the ARM EABI.
  17. @bapt

    Directly uses calloc(3) instread of malloc(3) + memset(3)

    bapt authored
    Reported by:	Jeremy Chadwick <jdc@koitsu.org>
    MFC after:	3 days
  18. @kostikbel

    Add a trivial comment to record the proper commit log for r245407:

    kostikbel authored
    Set the v_hash for a new vnode in the getnewvnode() to the value
    calculated based on the vnode structure address.  Filesystems using
    vfs_hash_insert() override the v_hash using the standard formula of
    (inode_number + mnt_hashseed).  For other filesystems, the
    initialization allows the vfs_hash_index() to provide useful hash too.
    
    Suggested, reviewed and tested by:	peter
    Sponsored by:	The FreeBSD Foundation
    MFC after:	5 days
  19. @kostikbel

    Rearrange the struct bufobj and struct vnode layouts to reduce

    kostikbel authored
    padding.  On the amd64 kernel with INVARIANTS turned off, size of the
    struct vnode is reduced from 496 to 472 bytes, saving 24 bytes of
    memory and KVA per vnode.
    
    Noted and reviewed by:	peter
    Tested by:	pho
    Sponsored by:	The FreeBSD Foundation
  20. @kostikbel

    For zfs vnodes, use the standard inode number based hash algorithm.

    kostikbel authored
    Reviewed and tested by:	peter
    Sponsored by:	The FreeBSD Foundation
    MFC after:	5 days
  21. @kostikbel

    The current default size of the nullfs hash table used to lookup the

    kostikbel authored
    existing nullfs vnode by the lower vnode is only 16 slots.  Since the
    default mode for the nullfs is to cache the vnodes, hash has extremely
    huge chains.
    
    Size the nullfs hashtbl based on the current value of
    desiredvnodes. Use vfs_hash_index() to calculate the hash bucket for a
    given vnode.
    
    Pointy hat to:	    kib
    Diagnosed and reviewed by:	peter
    Tested by:    peter, pho (previous version)
    Sponsored by:	The FreeBSD Foundation
    MFC after:	5 days
  22. @kostikbel

    diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c

    kostikbel authored
    index 7c243b6..0bdaf36 100644
    --- a/sys/kern/vfs_subr.c
    +++ b/sys/kern/vfs_subr.c
    @@ -279,6 +279,7 @@ SYSCTL_INT(_debug, OID_AUTO, vnlru_nowhere, CTLFLAG_RW,
     #define VSHOULDFREE(vp) (!((vp)->v_iflag & VI_FREE) && !(vp)->v_holdcnt)
     #define VSHOULDBUSY(vp) (((vp)->v_iflag & VI_FREE) && (vp)->v_holdcnt)
    
    +static int vnsz2log;
    
     /*
      * Initialize the vnode management data structures.
    @@ -293,6 +294,7 @@ SYSCTL_INT(_debug, OID_AUTO, vnlru_nowhere, CTLFLAG_RW,
     static void
     vntblinit(void *dummy __unused)
     {
    +	u_int i;
     	int physvnodes, virtvnodes;
    
     	/*
    @@ -332,6 +334,9 @@ vntblinit(void *dummy __unused)
     	syncer_maxdelay = syncer_mask + 1;
     	mtx_init(&sync_mtx, "Syncer mtx", NULL, MTX_DEF);
     	cv_init(&sync_wakeup, "syncer");
    +	for (i = 1; i <= sizeof(struct vnode); i <<= 1)
    +		vnsz2log++;
    +	vnsz2log--;
     }
     SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_FIRST, vntblinit, NULL);
    
    @@ -1067,6 +1072,14 @@ alloc:
     	}
     	rangelock_init(&vp->v_rl);
    
    +	/*
    +	 * For the filesystems which do not use vfs_hash_insert(),
    +	 * still initialize v_hash to have vfs_hash_index() useful.
    +	 * E.g., nullfs uses vfs_hash_index() on the lower vnode for
    +	 * its own hashing.
    +	 */
    +	vp->v_hash = (uintptr_t)vp >> vnsz2log;
    +
     	*vpp = vp;
     	return (0);
     }
  23. @kostikbel

    Add exported vfs_hash_index() function, which calculates the canonical

    kostikbel authored
    pre-masked hash for the given vnode.  The function assumes that
    vp->v_hash is initialized by the filesystem vnode instantiation
    function.  At the moment, it is only done if filesystem uses
    vfs_hash_insert().
    
    Reviewed by:	peter
    Tested by:	peter, pho (previous version)
    Sponsored by:	The FreeBSD Foundation
    MFC after:	5 days
  24. @kostikbel

    Rename vfs_hash_index() to vfs_hash_bucket().

    kostikbel authored
    Reviewed by:	peter
    Tested by:	peter, pho
    Sponsored by:	The FreeBSD Foundation
    MFC after:	5 days
Something went wrong with that request. Please try again.