usr.sbin/makefs: Sync with sys/vfs/hammer2
Sync with following sys/vfs/hammer2 commits.
$ git log --pretty="%h %s" 55066b18244fe9350bb96f93d65807d82b5cd98b.. -- sys/vfs/hammer2/
4f646c6893 sys/vfs/hammer2: Use HAMMER2_LOOKUP_ALWAYS in xop_readdir
6d68a182a9 sys/vfs/hammer2: Add missing error handling in hammer2_remount()
34ad347f7f sys/vfs/hammer2: Fix "Properly set ronly flag for PFS"
9a5c949af7 sys/vfs/hammer2: Properly set ronly flag for PFS
0c9702fdbe sys/vfs/hammer2: Remove duplicate spmp->pfs_hmps[0] initialization
8860585752 sys/vfs/hammer2: Ignore unused return value from hammer2_xop_feed()
bd41e746e6 sys/vfs/hammer2: Add SEEK_HOLE / SEEK_DATA support
sys/vfs/hammer2: Use HAMMER2_LOOKUP_ALWAYS in xop_readdir
hammer2_xop_readdir() should explicitly use HAMMER2_LOOKUP_ALWAYS
for chain lookup, as hammer2_vop_readdir() can access chain data
for (a long enough) dirent name. Note that chain data is loaded
with or without ALWAYS in this case.
drm/linux - More closely match linux wait-for-completion
Linux wait-for-completion functions decrement `done` counter if a
completion did not signaled with complete_all. Do the same on DragonFly.
Proposed-By: dillon
drm/radeon - Fix panic when launching Xorg server on Radeon Xpress 1100/1150 GPU
I2C adapter lock_ops were not initialized on certain radeon hardware.
Add explicit call to i2c_add_adapter which initializes lock_ops.
Fixes #3374.
Reported-by: hjckr
drm - Update to Linux 4.20.17
core:
* Implement basic DMA-BUF support
amdgpu:
* Add support for Picasso, Raven2, and Vega20
i915:
* Add support up to Ice Lake
* Fix hardware acceleration
sys/vfs/hammer2: Fix "Properly set ronly flag for PFS"
hammer2_remount() is update once only for hmp->ronly,
so pmp->ronly needed to be updated first independently,
otherwise causes problems with mount update after boot.
sys/vfs/hammer2: Properly set ronly flag for PFS
Redo reverted b18a59622759a0617ee06c73b282dfc317ae70bf.
Once ->ronly becomes 0, it never becomes non-zero again.
(Update to ro still works as MNT_RDONLY is set in sys_mount().)
sys/vfs/hammer2: Ignore unused return value from hammer2_xop_feed()
hammer2_xop_feed callers that never use the return value
(except for these two) simply ignore it.
sys/vfs/hammer2: Add SEEK_HOLE / SEEK_DATA support
Similar to ext2 and ufs using VOP_BMAP based vn_bmap_seekhole().
- Add xop_bmap which corresponds to .vop_bmap.
- Add BUF_CMD_SEEK to prevent xop_bmap from being used for other
purposes e.g. cluster read / write. Note that vop_bmap_args::a_cmd
is only used in here and HAMMER1 (supports BUF_CMD_READ only,
and SEEK_XXX is unsupported).
atkbd: Fix first keystroke force reset
Some i8042 falsely return KBD_ACK for ECHO command which cause the
keyboard echo test to fail.
Without passing echo test, the keyboard is considered as unconfigured.
Although this is incorrect behavior, we still consider it correct to
prevent the forced reset (a step to configure a keyboard) of the entire
keyboard when the first key interrupt is reached.
This should fix keyboard probing at least for Framework Laptop [1].
Taken-from: FreeBSD [2] (minus typos)
[1]: https://reviews.freebsd.org/D50498
[2]: https://github.com/freebsd/freebsd-src/commit/cba5d7ab32fd0b4e9c4312cc967baf137377f812
atkbd: remove unused code that measures inb() duration
We are not using the retry count as FreeBSD does.
Instead, we are using TOTALDELAY / CHECKTIMEOUT, which measures the
actual execution time after each loop iteration and breaks out of the
loop when the total time (70ms or 200ms in most cases) has expired.
psm - disable PS2 multiplexing based on kbdc quirks
hw.psm.mux_disabled now defaults to -1, in which case the quirks are
taken into account.
Taken-from: FreeBSD
sys/vfs/{ext2fs,ufs}: Add SEEK_HOLE / SEEK_DATA support
Add VOP_BMAP based generic function vn_bmap_seekhole()
for filesystems with .vop_bmap to support SEEK_HOLE / SEEK_DATA.
FreeBSD has optimized version of FIOSEEKDATA for ext2 and ufs,
but this commit only brings in generic version for both.
taken-from: FreeBSD
sys/kern: Add SEEK_HOLE / SEEK_DATA support
No filesystem implements SEEK_HOLE / SEEK_DATA yet.
Filesystems with no .vop_ioctl implementation (e.g. ufs, ext2)
use vop_stdioctl() which simply returns EOF for SEEK_HOLE.
Others usually return EOPNOTSUPP, ENOTTY, etc, depending on what
they have for "default" in a switch case.
taken-from: FreeBSD
libefivar(3): Fix build by using uuid_dec_le() from libc
It was using le_uuid_dec() from source of gpt(8). As a result, this
library no longer depends on the 'gpt.c' file from gpt(8).
While there, fix a typo in comment (taken from FreeBSD).
kernel: Remove obsolete DSO_COMPATMBR from <sys/disk.h>
The last use of this flag was removed in commit
1c3c151b5fca37695bf972f959efb7dda16cfbe6, so this flag has become
effectively obsolete since then. Now just remove it to reduce any
confusion.
ok by dillon.
kernel: Clean up DOSPTYP_* defines in subr_diskmbr.c
* Move DOSPTYP_ONTRACK to <sys/diskmbr.h> where other DOSPTYP_* defines
are located.
* Remove DOSPTYP_{EXTENDED,EXTENDEDX} and use DOSPTYP_{EXT,EXTLBA} from
<sys/diskmbr.h> instead.
gpt(8): Refactor parse_uuid() and support more GPT type aliases
Refactor parse_uuid() to parse GPT type aliases by using an array.
Meanwhile, extend it to support more GPT type aliases, which are defined
in <sys/gpt.h> as well as "/etc/defaults/uuids".
<sys/gpt.h>: Small tweaks
* Reorder the DragonFly entries.
* Move the GPT_ENT_TYPE_PREP_BOOT out of the FreeBSD group; it's used by
the boot partition on some PowerPC systems.
* Remove obsolete description on Linux reusing the
GPT_ENT_TYPE_MS_BASIC_DATA entry.
uuid(3): Improve the description for uuid_to_string()
Document that uuid_to_string() will allocate a buffer to hold the
converted string and free(3) should be called to release the memory.
Several more minor tweaks.
Derived from FreeBSD.