Displaying 1 50 of 32,262 commits (0.063s)

DragonFlyBSD — sys/vfs/hammer2 hammer2_bulkscan.c hammer2_subr.c

hammer2 - fix I/O race, flesh out bulkfree

* Fix an I/O race which could cause hammer2 to block on an iocb forever.
  A TAILQ was being tested outside of a spin-lock and could race the
  related atomic op on the flag.

* Add signal checking for the bulkfree scan, allowing it to be interrupted.

* Loop sbase/sstop to cover the whole volume.  The in-memory bitmap must
  be bzero()d on each loop.

DragonFlyBSD — sys/vfs/hammer2 hammer2_freemap.c hammer2_bulkscan.c

hammer2 - work on bmap->avail tracking, fix DIO issue w/block reuse

* Start working on tracking bmap->avail in a way that the bulkfree
  code can undo.

* DIO was allowing mixed 16/64K buffers, but bulkfree doesn't invalidate
  cached DIOs and the re-use case might want a larger buffer.  For now
  deal with it by just having DIO use 64K buffers.


UPDATING: Mention recently removed kernel options.
Delta File
+6 -0 1 file

DragonFlyBSD — . Makefile_upgrade.inc, sys/sys _posix.h cdefs.h

Remove <sys/_posix.h>. It serves no purpose anymore.
Delta File
+0 -98 sys/sys/_posix.h
+0 -2 sys/sys/cdefs.h
+1 -0 Makefile_upgrade.inc
+1 -100 3 files

DragonFlyBSD — sys/conf options, sys/config LINT64 LINT

kernel: Retire the P1003_1B and _KPOSIX_VERSION kernel options.
Delta File
+2 -2 sys/conf/options
+0 -4 sys/config/LINT64
+0 -4 sys/config/LINT
+0 -1 sys/config/SOEKRIS
+0 -1 sys/config/GENERIC
+0 -1 sys/config/VKERNEL
+0 -2 2 files not shown
+2 -15 8 files

DragonFlyBSD — sys/kern kern_mib.c

kernel/mib: Remove <sys/_posix.h> dependency.

This commit bumps the value of the kern.posix1version sysctl from 199309 to
200112. I know no port which checks this sysctl.
Delta File
+2 -1 sys/kern/kern_mib.c
+2 -1 1 file

DragonFlyBSD — sys/dev/sound/pci/hda hdac.c

kernel/snd_hda: Enable uncacheable DMA attribute as default again.

* Set the HDAC_F_DMA_NOCACHE flag as default (Reinserts a line that was
  removed in commit 403fad76b1ecab3ce8ef68b48445be3a9b0a4e74).

* Allocate at least PAGE_SIZE aligned memory in hdac_dma_alloc() when
Delta File
+9 -3 sys/dev/sound/pci/hda/hdac.c
+9 -3 1 file

DragonFlyBSD — sys/sys sysctl.h

<sys/sysctl.h>: Remove <sys/_posix.h> include. It is not needed here.
Delta File
+0 -3 sys/sys/sysctl.h
+0 -3 1 file

DragonFlyBSD — sys/sys semaphore.h

<sys/semaphore.h>: Remove dead p1003_1b code.
Delta File
+0 -6 sys/sys/semaphore.h
+0 -6 1 file

DragonFlyBSD — sys/sys mman.h, sys/vm vm_mmap.c

<sys/mman.h>: Some cleanup.

* Handle _P1003_1B_VISIBLE and _POSIX_SOURCE checks with __POSIX_VISIBLE.

* Separate BSD specific defines/prototypes better.
Delta File
+49 -38 sys/sys/mman.h
+0 -4 sys/vm/vm_mmap.c
+49 -42 2 files

DragonFlyBSD — share/mk bsd.hostlib.mk

bsd.hostlib.mk: Fix case where SRCS is defined but empty

This is similar to the recent changes to bsd.lib.mk and bsd.prog.mk.
The check covers two augmentations to OBJS, plus let's add some indents
for readability.  Note the second augmentation didn't have a bug in it,
so including it inside the wrap only saves having to evaluate it.
Delta File
+6 -4 share/mk/bsd.hostlib.mk
+6 -4 1 file

DragonFlyBSD — share/mk bsd.lib.mk bsd.prog.mk

bsd.*.mk: Fix bug when SRCS is explicitly defined empty

There exists a valid possibility of setting a makefile to build a program
or library exclusively with OBJS defined.  In the case of bsd.prog.mk,
not defining SRCS will cause the definition of OBJS to be overwritten
with ${PROG}.c or ${PROG}.cc.  Defining SRCS as an empty list will stop
OBJS from being overwritten, but there's a bug.  It adds ".o" to the end
of the list.

For example:
OBJS= first.o second.o
.include <bsd.prog.mk>
make -V OBJS
first.o second.o .o

This is caused by a transformation assuming SRCS has at least one item
in the list.  It's fixed by only performing the transformation if SRCS
is not empty.  I'm adding this check to both bsd.prog.mk and bsd.lib.mk
Delta File
+2 -0 share/mk/bsd.lib.mk
+2 -0 share/mk/bsd.prog.mk
+4 -0 2 files

DragonFlyBSD — lib/libc/sys sigaltstack.2, sys/kern kern_sig.c

libc/sigaltstack: Return EPERM upon disabling the active stack, not EINVAL.

Per POSIX, FreeBSD and OpenBSD agree too. NetBSD doesn't, hmmm.

DragonFlyBSD — sys/dev/sound/pcm sound.c

kernel/sound: Always create the devfs aliases when loading a sound driver.
Delta File
+26 -15 sys/dev/sound/pcm/sound.c
+26 -15 1 file

DragonFlyBSD — sys/dev/sound/pci/hda hdaa.c, sys/dev/sound/pcm sound.c

kernel/snd_hda: Fix module unloading.

Submitted-by: ivadasz

DragonFlyBSD — sys/dev/sound/pci/hda hdac.c

kernel/snd_hda: Re-apply 6d233c5d040778c2655923f2a20676e7e519ceca.

It still occurs for us.

Pointed-out-by: ivadasz
Delta File
+4 -0 sys/dev/sound/pci/hda/hdac.c
+4 -0 1 file

DragonFlyBSD — . Makefile.inc1

Clarify message about 'make rescue' after installworld.
Delta File
+1 -1 Makefile.inc1
+1 -1 1 file

DragonFlyBSD — crypto/openssh version.h

openssh: Adjust DragonFly version to actual openssh p1 release date.
Delta File
+1 -1 crypto/openssh/version.h
+1 -1 1 file

DragonFlyBSD — lib/libusb libusb.h libusb20_desc.h

libusb: Sync with FreeBSD.

DragonFlyBSD — sys/vfs/hammer2 TODO

hammer2 - Adjust TODO

* Add bulkfree TODO items.
Delta File
+17 -0 sys/vfs/hammer2/TODO
+17 -0 1 file

DragonFlyBSD — sbin/hammer2 cmd_bulkfree.c main.c

hammer2 - Add bulkfree directive.

* Add a bulkfree directive for testing the bulkfree code.

DragonFlyBSD — sys/vfs/hammer2 hammer2_bulkscan.c

hammer2 - bulkfree work 2/many

* Compare the in-memory bitmap against the on-media bitmap and issue

  in-memory 00 - 11 (allocated) -> 10 (staged)
  in-memory 00 - 10 (staged)    -> 00 (free)
  in-memory 11 - 10 (staged)    -> 11 (allocated) (handles live races)
Delta File
+216 -21 sys/vfs/hammer2/hammer2_bulkscan.c
+216 -21 1 file

DragonFlyBSD — sys/vfs/hammer2 hammer2_bulkscan.c FREEMAP

hammer2 - Stabilize new I/O infrastructure and work on bulkfree

* Stabilize the new asynchronous hammer_io infrastructure.

* Document the new simpler bulkfree scan algorithm.  The new algorithm
  scans meta-data in two passes, rebuilding the freemap in kernel memory.
  It then compares the map against the live media.

  The first pass transitions the freemap from (11 = allocated) to
  (10 = staged for deletion), the second pass transitions (10) either back
  to (11) if the block is found to not actually be freeable or to (00) if
  the block winds up being actually freeable.

  The two pass mechanism deals with any races and allows the scan to occur
  essentially unlocked,

* Start work on the bulkfree scan algorithm.

DragonFlyBSD — sys/vm vm_kern.c vm_kern.h

kernel - Add swap-backed kernel memory allocator API

* Add kmem_alloc_swapbacked() and kmem_free_swapbacked().  Allocates kernel
  memory which is pageable and backed by swap.
Delta File
+54 -1 sys/vm/vm_kern.c
+14 -0 sys/vm/vm_kern.h
+2 -0 sys/vm/vm_extern.h
+70 -1 3 files

DragonFlyBSD — sys/kern kern_shutdown.c

kernel - limit backtrace-on-panic to 6 call levels

* Limit the backtrace-on-panic to 6 call levels to try to keep more
  information leading up to the crash (such as the panic message) on
  row-limited consoles.
Delta File
+4 -1 sys/kern/kern_shutdown.c
+4 -1 1 file

DragonFlyBSD — sys/sys mman.h

<sys/mman.h>: Whitespace cleanup (no functional change).
Delta File
+30 -30 sys/sys/mman.h
+30 -30 1 file

DragonFlyBSD — sys/boot/pc32/pxeldr pxeboot.8

pxeboot.8: Small adjustments.
Delta File
+3 -4 sys/boot/pc32/pxeldr/pxeboot.8
+3 -4 1 file

DragonFlyBSD — crypto/openssh ssh.c sshconnect.c

openssh: Fix version stuff.

The previous code was trying to get too fancy by trying to use
configuration options in places where those options weren't sent yet.

Fix a case in sshconnect.c where version_addendum wasn't being used.

Update README.DRAGONFLY to reflect the latest upgrade instructions.

DragonFlyBSD — crypto/openssh digest-libc.c sandbox-capsicum.c, crypto/openssh/openbsd-compat getopt_long.c arc4random.c

Merge branch 'openssh'
∈ Robin Hahling - 54e479e4 - 2015-01-25 19:49:14
libssh: remove some unused files

DragonFlyBSD — crypto/openssh cipher-ctr-mt.c, secure/lib/libssh Makefile

libssh: Fix a remaining warning and raise WARNS to 2.

DragonFlyBSD — crypto/openssh umac128.c

libssh: Silence some redefinition warnings.

Taken-from:   FreeBSD
Submitted-by: Robin Hahling <robin.hahling at gw-computing.net>
Delta File
+7 -0 crypto/openssh/umac128.c
+7 -0 1 file

DragonFlyBSD — lib/libhammer misc.c

lib/libhammer: cleanups

Using pointer dereference instead of several mntbuf[curmount].f_xxx
makes code clear and also makes lines fit within 80 characters.
Delta File
+7 -8 lib/libhammer/misc.c
+7 -8 1 file

DragonFlyBSD — lib/libhammer misc.c, sbin/hammer cmd_snapshot.c

lib/libhammer: cleanups

This patch has some minor cleanups of libhammer.

hunk1: Remove parentheses
hunk2: Remove parentheses
hunk3: Remove forward declaration of obsolete function.
       find_pfs_mount() was re-implemented as a part of libhammer
       and commit 4f09feab replaces it with libhammer version.

DragonFlyBSD — lib/libhammer misc.c

lib/libhammer: fix minor memory leaks

This patch fixes minor memory leaks of libhammer.

hunk1: This isn't necessary since it never gets here.
       _libhammer_malloc() exit(1) if it failed to calloc().
hunk2: Add missing close(fd).
hunk3: Add missing free(mntbuf).
Delta File
+2 -4 lib/libhammer/misc.c
+2 -4 1 file

DragonFlyBSD — contrib/file/src file.h

file(1): Unbreak buildworld.

The issue is the missing definition of wchar_t in <inttypes.h> (required
by POSIX too) which file(1) winds up needing because of new code in this

The commit 3e581a72263dd3b726387b5dc2399a066511099f fixes it correctly
but mkmagic.nx is a build-tool and so uses host includes (which don't
have that <inttypes.h> fix yet at this point).

I see no other way to fix this easily right now than just including
<wchar.h>. This has a wchar_t definition, too.

Reported-by: Robin Hahling <robin.hahling at gw-computing.net>
Delta File
+1 -0 contrib/file/src/file.h
+1 -0 1 file

DragonFlyBSD — sys/dev/drm drm_crtc_helper.c drm_vm.c, sys/dev/drm/i915 intel_dp.c intel_lvds.c

drm: Implement and use the Linux version of kfree()

DragonFlyBSD — secure/usr.bin/ssh Makefile

ssh: Raise WARNS back to 2.
Delta File
+1 -1 secure/usr.bin/ssh/Makefile
+1 -1 1 file

DragonFlyBSD — crypto/openssh sshconnect.c

ssh: Add a missing include for bindresvport_sa().
Delta File
+1 -0 crypto/openssh/sshconnect.c
+1 -0 1 file

DragonFlyBSD — etc/rc.d sshd

rc.d/sshd: Simplify key generation.

ssh-keygen(1) already provides the functionality we were previously
trying to do here with its -A flag, except now it will reduce the
maintenance burden of having to update this file when there are new key
Delta File
+2 -48 etc/rc.d/sshd
+2 -48 1 file

DragonFlyBSD — lib/libmagic config.h Makefile

Update files for file-5.22 import.
Delta File
+32 -3 lib/libmagic/config.h
+3 -0 lib/libmagic/Makefile
+35 -3 2 files

DragonFlyBSD — include inttypes.h

inttypes.h: Add typedef for wchar_t.
Delta File
+11 -5 include/inttypes.h
+11 -5 1 file

DragonFlyBSD — contrib/file ChangeLog README, contrib/file/doc libmagic.man magic.man

Import file-5.22.

DragonFlyBSD — contrib/file ChangeLog README, contrib/file/doc libmagic.man magic.man

Import file-5.22.

DragonFlyBSD — gnu/lib/liblvm Makefile

Merge new origin commits.
∈ Sascha Wildner - 85e1e736 - 2015-01-24 13:09:48
liblvm: Request _XOPEN_SOURCE=700 for alphasort() prototype.
Delta File
+1 -1 gnu/lib/liblvm/Makefile
+1 -1 1 file

DragonFlyBSD — sbin/newfs_hammer newfs_hammer.c, sys/vfs/hammer hammer_volume.c hammer_ondisk.c

hammer: some trivial fixes

This patch fixes some trivial things.

hunk1: Cleanup incomplete sentence
hunk2: Sync comment with changes made in 4a2796f3
hunk3: Use right function name
hunk4: Add missing comment
hunk5: Add missing \n

Closes: #2777

DragonFlyBSD — include dirent.h

<dirent.h>: Don't check _POSIX_SOURCE.

Use the __POSIX_VISIBLE, __XSI_VISIBLE and __BSD_VISIBLE macros, per
Delta File
+16 -10 include/dirent.h
+16 -10 1 file

DragonFlyBSD — include dirent.h, lib/libc/gen gen_private.h dirfd.c

libc: Change dirfd() into a function (needed per POSIX).

At the same time, make struct _dirdesc private to libc. If access
to dd_fd is needed, dirfd() has to be used. Inside libc, the former
dirfd() macro is preserved as _dirfd().

Also, in struct _dirdesc, change the lock from "void *" to
"struct pthread_mutex *". This allows us to eliminate some casts
in readdir() and friends.

Our documentation already describes dirfd() as a function.

Based-on: FreeBSD's similar work
Delta File
+58 -0 lib/libc/gen/gen_private.h
+42 -0 lib/libc/gen/dirfd.c
+3 -15 include/dirent.h
+5 -5 lib/libc/gen/readdir.c
+4 -4 lib/libc/gen/closedir.c
+3 -3 lib/libc/gen/telldir.c
+10 -4 6 files not shown
+125 -31 12 files

DragonFlyBSD — include dirent.h

<dirent.h>: Adjust whitespace better (no functional change).
Delta File
+27 -24 include/dirent.h
+27 -24 1 file

DragonFlyBSD — gnu/lib/liblvm Makefile

liblvm: Request _XOPEN_SOURCE=700 for alphasort() prototype.
Delta File
+1 -1 gnu/lib/liblvm/Makefile
+1 -1 1 file

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

drm: Improve linux/jiffies.h