Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: user/delphij/z…
Commits on Apr 30, 2013
  1. @delphij

    Initial draft making LZ4 the default compression method. Now,

    delphij authored
    compression=on means use LZ4 as compression method if the pool
    have LZ4 activated, and LZJB if pool is using old format.  Also,
    metadata is now using LZ4 as compression method by default.
    
    Notes to my self based on talk with mm@:
    
     - Need to check how the LZ4 feature flag is activated.  E.g. what
       happens if a new pool is created, do we need to explicitly do
       the feature activation?
    
     - Do we need a sysctl variable for this?  Do we want to make it
       possible for users to tweak the method themselves?
  2. Pass a format string to kproc_create() [1] and thus fix the build with

    pluknet authored
    -DBKTR_NEW_MSP34XX_DRIVER and -Wformat-security.
    This also allows to eliminates a superfluous malloc/snprintf/free on
    intermediate buffer.
    
    PR:		kern/175546
    MFC after:	1 week
  3. @DarkHelmet433
  4. Reset some more softc state when the guest resets the virtio network …

    neel authored
    …device.
    
    Obtained from:	NetApp
  5. Use a separate mutex for the receive path instead of overloading the …

    neel authored
    …softc
    
    mutex for this purpose.
    
    Reviewed by:	grehan
Commits on Apr 29, 2013
  1. xenstore/xenstore.c:

    gibbs authored
    	Prevent access to invalid memory region when listing an empty
    	directory in the XenStore.
    
    Reported by:	Bei Guan
    MFC after:	1 week
  2. Add a new driver to support the Intel Non-Transparent Bridge(NTB).

    carl authored
    The NTB allows you to connect two systems with this device using a PCI-e
    link. The driver is made of two modules:
     - ntb_hw which is a basic hardware abstraction layer for the device.
     - if_ntb which implements the ntb network device and the communication
       protocol.
    
    The driver is limited at the moment to CPU memcpy instead of using DMA, and
    only Back-to-Back mode is supported. Also the network device isn't full
    featured yet. These changes will be coming soon. The DMA change will also
    bring in the ioat driver from the project branch it is on now.
    
    This is an initial port of the GPL/BSD Linux driver contributed by Jon Mason
    from Intel. Any bugs are my contributions.
    
    Sponsored by: Intel
    Reviewed by: jimharris, joel (man page only)
    Approved by: jimharris (mentor)
  3. @kostikbel

    Properly terminate the result string for intermediate results, to

    kostikbel authored
    allow the final strcpy() to start at the intended place.
    
    Reported and tested by:	pgj
    Pointy hat to:	kib
    MFC after:	3 days
  4. @dag-erling

    Style nit.

    dag-erling authored
  5. @dag-erling

    Add a -Z option which zeroes unused blocks. It can be combined with -E,

    dag-erling authored
    in which case unused blocks are first zeroed and then erased.
    
    Reviewed by:	mckusick
    MFC after:	3 weeks
  6. @dag-erling

    Fix a bug that allows NFS clients to issue READDIR on files.

    dag-erling authored
    PR:		kern/178016
    Security:	CVE-2013-3266
    Security:	FreeBSD-SA-13:05.nfsserver
  7. @bsdjhb

    Only cleanup CMI-related state on detach if the system supports CMI.

    bsdjhb authored
    PR:		kern/163268
    MFC after:	1 week
  8. whitespace changes:

    luigi authored
    remove $Id$ lines, and add blank lines around some #if / #elif /#endif
  9. @delphij

    Add missing braces.

    delphij authored
    Submitted by:	Sascha Wildner <saw online de>
    Obtained from:	DragonFly
    MFC after:	1 week
  10. explicitly mark some variables as const

    luigi authored
  11. @grimreaper

    A transition period of more than two years is more than enough:

    grimreaper authored
    Remove the compatibility code added in 2011-02-10.
    
    This change is not intended for MFC
    
    Reviewed by:	imp
  12. Debugging changes!

    adrian authored
    * That lock isn't actually held during reset - just the whole TX/RX path
      is paused.  So, remove the assertion.
    
    * Log the TX queue status - how many hardware frames are active in the
      MAC and whether the queue is active.
  13. @glebius

    Remove useless ifdef KLD_MODULE from dummynet module unload path. This

    glebius authored
    fixes panic on unload.
    
    Reported by:	pho
Commits on Apr 28, 2013
  1. @grimreaper

    Mark usage() __dead2

    grimreaper authored
  2. Replace a silly command sequence with a proper if-then-else.

    n_hibma authored
    Generate images sparsely. This saves space and time, especially when
    generating images inside a VM (PR 173482).
    Add a 'true' statement to last_orders to prevent some version of sh from
    tripping over an empty function.
  3. @grimreaper

    Remove cast that was only required for K&R C.

    grimreaper authored
    Reviewed by:	jilles
  4. Doing a cpio from /var/empty if dir was not specified or non-existent

    n_hibma authored
    copies its mode to the destination. This is not desirable.
    Rephrase this code to be more sensible.
    
    PR:		173483
    MFC after:	1 week
  5. Correct comment typo's

    smh authored
    Add missing comment
    
    Reviewed by:	pjd (mentor)
    Approved by:	pjd (mentor)
    MFC after:	2 weeks
  6. @seanbruno

    Silence warning from clang:

    seanbruno authored
    /home/sbruno/bsd/head/sys/dev/hptrr/hptrr_osm_bsd.c:178:66: warning: for loop has empty body [-Wempty-body]
                    for (order=0, size=PAGE_SIZE; size<f->size; order++, size<<=1) ;
                                                                                   ^
    /home/sbruno/bsd/head/sys/dev/hptrr/hptrr_osm_bsd.c:178:66: note: put the semicolon on a separate line to silence this warning
    
    Obtained from:	Yahoo! Inc.
    MFC after:	2 weeks
  7. @seanbruno

    The controller does not zero this data structure, ever.

    seanbruno authored
    Zero it out here so we do not misinterpret the data error.
    
    Obtained from:	Yahoo! Inc.
    MFC after:	2 weeks
  8. @kostikbel

    Rework the handling of the tmpfs node backing swap object and tmpfs

    kostikbel authored
    vnode v_object to avoid double-buffering.  Use the same object both as
    the backing store for tmpfs node and as the v_object.
    
    Besides reducing memory use up to 2x times for situation of mapping
    files from tmpfs, it also makes tmpfs read and write operations copy
    twice bytes less.
    
    VM subsystem was already slightly adapted to tolerate OBJT_SWAP object
    as v_object. Now the vm_object_deallocate() is modified to not
    reinstantiate OBJ_ONEMAPPING flag and help the VFS to correctly handle
    VV_TEXT flag on the last dereference of the tmpfs backing object.
    
    Reviewed by:	alc
    Tested by:	pho, bf
    MFC after:	1 month
  9. @kostikbel

    Make vm_object_page_clean() and vm_mmap_vnode() tolerate the vnode'

    kostikbel authored
    v_object of non OBJT_VNODE type.
    
    For vm_object_page_clean(), simply do not assert that object type must
    be OBJT_VNODE, and add a comment explaining how the check for
    OBJ_MIGHTBEDIRTY prevents the rest of function from operating on such
    objects.
    
    For vm_mmap_vnode(), if the object type is not OBJT_VNODE, require it
    to be for swap pager (or default), handle the bypass filesystems, and
    correctly acquire the object reference in this case.
    
    Reviewed by:	alc
    Tested by:	pho, bf
    MFC after:	1 week
  10. @kostikbel

    Assert that the object type for the vnode' non-NULL v_object, passed

    kostikbel authored
    to vnode_pager_setsize(), is either OBJT_VNODE, or, if vnode was
    already reclaimed, OBJT_DEAD.  Note that the later is only possible
    due to some filesystems, in particular, nfsiods from nfs clients, call
    vnode_pager_setsize() with unlocked vnode.
    
    More, if the object is terminated, do not perform the resizing
    operation.
    
    Reviewed by:	alc
    Tested by:	pho, bf
    MFC after:	1 week
  11. @kostikbel

    Eliminate the layering violation in the kern_sendfile(). When quering

    kostikbel authored
    the file size, use VOP_GETATTR() instead of accessing vnode vm_object
    un_pager.vnp.vnp_size.
    
    Take the shared vnode lock earlier to cover the added VOP_GETATTR()
    call and, as consequence, the whole internal sendfile loop.  Reduce vm
    object lock scope to not protect the local calculations.
    
    Note that this is the last misuse of the vnp_size in the tree, the
    others were removed from the ELF image activator by r230246.
    
    Reviewed by:	alc
    Tested by:	pho, bf (previous version)
    MFC after:	1 week
  12. @kostikbel

    Convert panic() into KASSERT().

    kostikbel authored
    Reviewed by:	alc
    MFC after:	1 week
  13. @amotin

    Add some cam_freeze_devq()'s missed at r249466.

    amotin authored
    This makes number of freezes match the number of releases.
    
    Reported by:	dim
  14. @grimreaper

    When the world is built WITHOUT_OPENSSH also don't

    grimreaper authored
    install ssh-copy-id.
    
    PR:		misc/177590
    Submitted by:	Oleg Ginzburg <olevole@olevole.ru>
    Reviewed by:	imp
  15. @rwatson

    Enable building string functions as part of libstand on mips; the Mak…

    rwatson authored
    …efile
    
    is a bit obfuscated here, as ia64 adds string source files elsewhere, so
    simply exclude it here.
    
    Reviewed by:	imp
    MFC after:	3 days
    Sponsored by:	DARPA, AFRL
Something went wrong with that request. Please try again.