Displaying 1 50 of 37,971 commits (0.008s)

DragonFlyBSD — include stdio.h, sys/sys fcntl.h stat.h

<fcntl.h>: Add some missing defines (required by POSIX).

   SEEK_SET   S_ISUID   S_IRWXU   S_IRWXG   S_IRWXO
   SEEK_CUR   S_ISGID   S_IRUSR   S_IRGRP   S_IROTH
   SEEK_END             S_IWUSR   S_IWGRP   S_IWOTH
                        S_IXUSR   S_IXGRP   S_IXOTH

Adjust <stat.h>, <stdio.h> and <unistd.h> accordingly.

See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html
Delta File
+55 -0 sys/sys/fcntl.h
+29 -0 sys/sys/stat.h
+8 -1 sys/sys/unistd.h
+1 -0 include/stdio.h
+93 -1 4 files

DragonFlyBSD — sys/dev/netif/ath/ath if_ath.c, sys/dev/netif/wpi if_wpi.c

kernel - Fix double-free in if_ath, fix lost rcvif.

* Reassign rcvif in ieee80211_vap_pkt_send_dest() prior to calling
  ic_transmit().  The rcvif assignment can get lost from packet
  manipulation above that section of code.

* Fix a double-free in if_ath in the error path for ath_transmit().
  Callers of ic_transmit (aka ath_transmit in this case) expect the
  mbuf to remain intact on a non-zero error return.

* Document confusing code in WPI.

Reported-by: marino
Reviewed-by: sephe

DragonFlyBSD — sys/dev/drm/i915 i915_gem.c, sys/vm vm_fault.c

kernel - Fix i915 deadlock

* (Attempt to) fix a deadlock in the i915 code.  The device lock retry
  code does not release the PG_BUSY on the passed-in placeholder page,
  so the fact that the lock is obtained non-blocking is irrelevant.

  Try to fix this by immediately releasing the placeholder page.  The
  code already checks for an insertion race later on.
Delta File
+37 -24 sys/dev/drm/i915/i915_gem.c
+10 -2 sys/vm/vm_fault.c
+47 -26 2 files

DragonFlyBSD — sys/dev/drm/i915 i915_gem.c, sys/vm vm_fault.c

kernel - Fix i915 deadlock

* (Attempt to) fix a deadlock in the i915 code.  The device lock retry
  code does not release the PG_BUSY on the passed-in placeholder page,
  so the fact that the lock is obtained non-blocking is irrelevant.

  Try to fix this by immediately releasing the placeholder page.  The
  code already checks for an insertion race later on.
Delta File
+37 -24 sys/dev/drm/i915/i915_gem.c
+10 -2 sys/vm/vm_fault.c
+47 -26 2 files

DragonFlyBSD — sys/cpu/x86_64/include specialreg.h, sys/platform/pc64/x86_64 identcpu.c

x86_64: Identify HWP in "Thermal and PM features"

Also known as Hardware-managed P-states.

DragonFlyBSD — sys/dev/netif/ix if_ix.c if_ix.h

ix: Fixup TX/RX ring settings for X550, which supports 64/64 TX/RX rings.

DragonFlyBSD — sbin/hammer cmd_mirror.c, sys/vfs/hammer hammer_ioctl.h hammer_crc.h

sys/vfs/hammer: Drop typedefs for struct hammer_ioc_{hist_entry,mrecord_head}

These are the only two ioctl structs with pointer typedefs. All the
rest of ioctl structs aren't typedef'd, and there isn't really any
reason that these two need to be typedef'd.

Note that almost all non ioctl HAMMER structs have pointer typedef,
and majority of variables have been typedef'd ones from the beginning
(since they were mostly pointers). Rest were changed to use typedef'd
at some point in 2016, to avoid mix of these for no reason, though
typedef'd pointers have ugliness when used as const.

DragonFlyBSD — sbin/hammer cmd_dedup.c cmd_show.c, sbin/newfs_hammer newfs_hammer.c

sbin/*hammer: Add missing braces to conform to code style

These were the missing ones due to
1. the code were written by several devs
2. they were missing ever since originally written by dillon@

DragonFlyBSD — sbin/mount_hammer mount_hammer.c

sbin/mount_hammer: Use calloc(3) and cleanups
Delta File
+11 -13 sbin/mount_hammer/mount_hammer.c
+11 -13 1 file

DragonFlyBSD — sys/netinet tcp_debug.c

kernel: Remove TCPDEBUG checks in tcp_debug.c.

This file is only compiled in when TCPDEBUG is specified, so the check
is always true.
Delta File
+0 -8 sys/netinet/tcp_debug.c
+0 -8 1 file

DragonFlyBSD — sys/netinet tcp_debug.c

kernel: Fix building with options TCPDEBUG.
Delta File
+1 -0 sys/netinet/tcp_debug.c
+1 -0 1 file

DragonFlyBSD — sys/vfs/autofs autofs.c

    sys/vfs/autofs: Value returned by taskqueue_enqueue_timeout(9) is not an error; 
(FreeBSD at GitHub e61af21d)
Delta File
+2 -5 sys/vfs/autofs/autofs.c
+2 -5 1 file

DragonFlyBSD — sys/vfs/autofs autofs_vnops.c

sys/vfs/autofs: Sync with FreeBSD's .vop_print format (FreeBSD at GitHub d8ce902a)

FreeBSD at GitHub d8ce902a4769ab96ae8e86a730221d92a5978e4a
Implement autofs_print(), for improved debugging experience.

added .vop_print after autofs had been ported to DragonFlyBSD,
and it had anp->an_wildcards which we didn't, so just add it.
Delta File
+2 -2 sys/vfs/autofs/autofs_vnops.c
+2 -2 1 file

DragonFlyBSD — include time.h

<time.h>: For clarity, add prototypes (in #if 0) for missing functions.
Delta File
+4 -2 include/time.h
+4 -2 1 file

DragonFlyBSD — usr.sbin/fstyp fstyp.c

usr.sbin/fstyp: Use NULL instead of 0 for pointers. (FreeBSD at GitHub 27f4c84a)
Delta File
+1 -1 usr.sbin/fstyp/fstyp.c
+1 -1 1 file

DragonFlyBSD — usr.sbin/fstyp fstyp.8

usr.sbin/fstyp: Improve formatting. (FreeBSD at GitHub dc9b2340)
Delta File
+2 -1 usr.sbin/fstyp/fstyp.8
+2 -1 1 file

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

sound/hda: Fix name for the Wildcat Point-LP (Broadwell PCH audio) model.

DragonFlyBSD — sys/dev/drm/i915 i915_drv.h

drm/i915: Implement dev_to_i915(), instead of pancing with BUG().
Delta File
+1 -1 sys/dev/drm/i915/i915_drv.h
+1 -1 1 file

DragonFlyBSD — usr.sbin/autofs autounmountd.c

    usr.sbin/autofs: Make autounmountd(8) not die when traced with "truss -p". 
(FreeBSD at GitHub 8381908c)
Delta File
+4 -1 usr.sbin/autofs/autounmountd.c
+4 -1 1 file

DragonFlyBSD — usr.sbin/autofs automountd.c autounmountd.c

usr.sbin/autofs: Use proper argument order for calloc(3). (FreeBSD at GitHub 6add75fe)

DragonFlyBSD — sys/netinet tcp_subr.c tcp_usrreq.c

tcp: Don't assume power of 2 netisrs.

DragonFlyBSD — sbin/hammer hammer.8

sbin/hammer: Fix hammer(8)

It's no longer HAMMER volume once stripped, so drop "HAMMER".
Delta File
+2 -4 sbin/hammer/hammer.8
+2 -4 1 file

DragonFlyBSD — sbin/hammer cmd_show.c, sys/vfs/hammer hammer_ioctl.h hammer_mirror.c

sys/vfs/hammer: Use hammer_crc_t

Use hammer_crc_t rather than uint32_t which is the same thing.
This commit doesn't (and shouldn't) replace CRC variables that are
not HAMMER's ondisk CRC field or ioctl, but for general purpose.

DragonFlyBSD — sbin/hammer cmd_show.c

sbin/hammer: Drop unused buffer_info variable
Delta File
+0 -2 sbin/hammer/cmd_show.c
+0 -2 1 file

DragonFlyBSD — sbin/hammer ondisk.c

sbin/hammer: Fix HammerVersion initialization added by 4c09d9c4

4c09d9c4 added HammerVersion initialization code to load_volume(),
but this must be done only if volume is a root volume.

hammer version-upgrade only overwrites vol_version field of root
volume header, thus load_volume() updating HammerVersion using
non root volume(s) after once initialized using the root volume
breaks everything that volume version involves.

If HammerVersion isn't initialized by reading the volume header
(i.e. initialzied via ioctl when fs is mounted), it doesn't break
anything at least in the same way as this.
Delta File
+2 -1 sbin/hammer/ondisk.c
+2 -1 1 file

DragonFlyBSD — sbin/hammer cmd_show.c

sbin/hammer: Cleanup get_buf_crc() after 965831f0

Make get_buf_crc() look the same as get_inode_crc().
This is much more readable with slightly more overhead to go through
a while loop twice (at most where each loop may continue max 4 times).
Delta File
+31 -12 sbin/hammer/cmd_show.c
+31 -12 1 file

DragonFlyBSD — sbin/hammer cmd_show.c

sbin/hammer: Cleanup/rename get_leaf_crc() after 965831f0

get_leaf_crc() is no longer a generic fucntion after 965831f0 dropped
non inode part, so rename it to get_inode_crc() with refactoring.
No functional change.
Delta File
+45 -60 sbin/hammer/cmd_show.c
+45 -60 1 file

DragonFlyBSD — sbin/hammer cmd_show.c

sbin/hammer: Fix newly added crc prefix character by 4c09d9c4

4c09d9c4 made hammer show command function get_leaf_crc() use
1. "ocrc=" for old CRC
2. "icrc=" for version 7 CRC
3. "crc=" for others (i.e. bad CRC)

for inodes, but this isn't the same with get_buf_crc() for other records.

4c09d9c4 made get_buf_crc() use
1. "ocrc=" for old CRC
2. "icrc=" for others (i.e. version 7 CRC and bad CRC)

These two functions need to use the same CRC prefix character.
Add "crc=" case to get_buf_crc().
Delta File
+5 -1 sbin/hammer/cmd_show.c
+5 -1 1 file

DragonFlyBSD — share/misc bsd-family-tree

bsd-family-tree: Sync with FreeBSD (OpenBSD 6.1).
Delta File
+3 -1 share/misc/bsd-family-tree
+3 -1 1 file

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

April 3, 2017 snapshot from http://pciids.sourceforge.net/
Delta File
+13 -7 share/misc/pci_vendors
+13 -7 1 file

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

drm/linux: add component.h

DragonFlyBSD — include ndbm.h

<ndbm.h>: Fix dptr type and add comment about wrong type of dsize.
Delta File
+3 -1 include/ndbm.h
+3 -1 1 file

DragonFlyBSD — include stdio.h

Delta File
+1 -1 include/stdio.h
+1 -1 1 file

DragonFlyBSD — sys/sys signal.h

<sys/signal.h>: Change sigev_notify_attributes to pthread_attr_t *.

See:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html
Delta File
+2 -1 sys/sys/signal.h
+2 -1 1 file

DragonFlyBSD — sbin/hammer cmd_show.c

sbin/hammer: Drop non inode case from get_leaf_crc()

The default case in get_leaf_crc() added by 4c09d9c4 is unused
(it's repeating the same switch/cases done by its caller), but this
is also wrong for userspace where a malloc'd buffer can only be upto
16KiB regardless of what leaf elm says.

It can be guaranteed for inode since we know inode is smaller than
16KiB. It can also be guaranteed for other types of metadata too,
but those can simply use get_buf_crc() and in fact they do.

Also see 7d0dab48.
Delta File
+5 -11 sbin/hammer/cmd_show.c
+5 -11 1 file

DragonFlyBSD — sbin/hammer cmd_show.c

sbin/hammer: Fix indentation made by 4c09d9c4
Delta File
+12 -12 sbin/hammer/cmd_show.c
+12 -12 1 file

DragonFlyBSD — sbin/hammer cmd_cleanup.c cmd_dedup.c, sbin/mount_hammer mount_hammer.c

sbin/*hammer: Use consistent static/inline/returntype format for functions

Change them to HAMMER2 style which has much more stable code style
than HAMMER1. HAMMER1 is basically a mix of every possible pattern
(even in the code originally written only by dillon@).

DragonFlyBSD — sbin/hammer ondisk.c, sbin/mount_hammer mount_hammer.c

sbin/hammer: Test volume version in __verify_volume()

Since now that HammerVersion is always used by CRC operations, and
blkdevs based hammer commands are likely to either test/set CRC,
the volume version should be checked after volume parameters are
loaded from ondisk volume header.

The reason for using >=WIP instead of >MAX is because that's how
newfs_hammer checks volume version, though it's currently the same
thing.

DragonFlyBSD — sys/netinet udp_usrreq.c

udp: Don't assume power of 2 netisrs.
Delta File
+10 -10 sys/netinet/udp_usrreq.c
+10 -10 1 file

DragonFlyBSD — sys/netinet in_pcb.c tcp_subr.c

inpcb: Add function to set inpcbinfo's portinfo.

This unbreaks inpcbinfo.portinfo_mask -> inpcbinfo.portinfo_cnt
conversion for divert inpcbs (unused by rip inpcbs).

DragonFlyBSD — sbin/hammer cmd_strip.c

sbin/hammer: Add missing fflush(stdout) in 8b6688a4
Delta File
+1 -0 sbin/hammer/cmd_strip.c
+1 -0 1 file

DragonFlyBSD — share/zoneinfo dragonfly Makefile

zoneinfo: Create a /usr/share/zoneinfo/UTC link.

We renamed GMT to UTC in 949d11f282cb90e67a6d24e8017b0ceb83746d29.
This commit is a followup to that commit and fixes tzload() when
called with gmt[] from gmtload().

Because upstream still uses GMT, stuff the link into a separate
file to not pollute the "etcetera" file.

Also, keep the /usr/share/zoneinfo/GMT link for now.

Reported-by: ftigeot

DragonFlyBSD — share/zoneinfo dragonfly Makefile

zoneinfo: Create a /usr/share/zoneinfo/UTC link.

We renamed GMT to UTC in 949d11f282cb90e67a6d24e8017b0ceb83746d29.
This commit is a followup to that commit and fixes tzload() when
called with gmt[] from gmtload().

Because upstream still uses GMT, stuff the link into a separate
file to not pollute the "etcetera" file.

Also, keep the /usr/share/zoneinfo/GMT link for now.

Reported-by: ftigeot

DragonFlyBSD — sbin/hammer hammer.c

sbin/hammer: Rename hammer_parsedevs() to hammer_parse_blkdevs()

Parsing HAMMER's blkdevs format devices is what this function does.
Delta File
+12 -12 sbin/hammer/hammer.c
+12 -12 1 file

DragonFlyBSD — sbin/hammer cmd_strip.c hammer.c

sbin/hammer: Allow any volume to be stripped by strip command

hammer strip should be able to strip each volume independently whether
all volumes that consist filesystem are available or not. It makes no
sense to require all volumes when the purpose of command is to destroy
them, even though that's necessary to go through the whole process.

If root volume is missing or root volume has incomplete offset format,
layer1/2 won't be erased, but just header part.
Delta File
+60 -6 sbin/hammer/cmd_strip.c
+1 -1 sbin/hammer/hammer.c
+61 -7 2 files

DragonFlyBSD — sbin/hammer hammer.c ondisk.c

sbin/hammer: Make volume count test optional for blkdevs based commands

This is basically for feature enhancement of hammer strip command
in the next commit. No functional change by this commit.

Some blkdevs based commands need to be able to handle broken volume
headers by omitting volume verification (to certain extent). It has
been that way for the volume header contents, but not for volume
count as well as checking existence of root volume.

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

drm/linux: Harmonize pr_debug() with the rest of the pr_* functions.

DragonFlyBSD — sys/netinet in_pcb.c

inpcb/localgroup: Use LSB of the hash to find inpcb.

This matches hash usage of the network stack.
Delta File
+1 -1 sys/netinet/in_pcb.c
+1 -1 1 file

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

sound - Delete devfs clone handler for /dev/dsp and /dev/mixer on unload.

* This makes sound work again after unloading and then reloading the
  sound(4) module.

* Only add the devfs clone handler, when the preceeding make_dev() was
  successful.
Delta File
+10 -4 sys/dev/sound/pcm/sound.c
+10 -4 1 file

DragonFlyBSD — sbin/hammer ondisk.c hammer_util.h

sbin/hammer: Make some readonly pointer args const