freebsd-skq/lib/libkvm
kib e75ba1d5c4 Commit the 64-bit inode project.
Extend the ino_t, dev_t, nlink_t types to 64-bit ints.  Modify
struct dirent layout to add d_off, increase the size of d_fileno
to 64-bits, increase the size of d_namlen to 16-bits, and change
the required alignment.  Increase struct statfs f_mntfromname[] and
f_mntonname[] array length MNAMELEN to 1024.

ABI breakage is mitigated by providing compatibility using versioned
symbols, ingenious use of the existing padding in structures, and
by employing other tricks.  Unfortunately, not everything can be
fixed, especially outside the base system.  For instance, third-party
APIs which pass struct stat around are broken in backward and
forward incompatible ways.

Kinfo sysctl MIBs ABI is changed in backward-compatible way, but
there is no general mechanism to handle other sysctl MIBS which
return structures where the layout has changed. It was considered
that the breakage is either in the management interfaces, where we
usually allow ABI slip, or is not important.

Struct xvnode changed layout, no compat shims are provided.

For struct xtty, dev_t tty device member was reduced to uint32_t.
It was decided that keeping ABI compat in this case is more useful
than reporting 64-bit dev_t, for the sake of pstat.

Update note: strictly follow the instructions in UPDATING.  Build
and install the new kernel with COMPAT_FREEBSD11 option enabled,
then reboot, and only then install new world.

Credits: The 64-bit inode project, also known as ino64, started life
many years ago as a project by Gleb Kurtsou (gleb).  Kirk McKusick
(mckusick) then picked up and updated the patch, and acted as a
flag-waver.  Feedback, suggestions, and discussions were carried
by Ed Maste (emaste), John Baldwin (jhb), Jilles Tjoelker (jilles),
and Rick Macklem (rmacklem).  Kris Moore (kris) performed an initial
ports investigation followed by an exp-run by Antoine Brodin (antoine).
Essential and all-embracing testing was done by Peter Holm (pho).
The heavy lifting of coordinating all these efforts and bringing the
project to completion were done by Konstantin Belousov (kib).

Sponsored by:	The FreeBSD Foundation (emaste, kib)
Differential revision:	https://reviews.freebsd.org/D10439
2017-05-23 09:29:05 +00:00
..
tests lib/libkvm: start adding basic tests for kvm(3) 2017-03-28 17:37:49 +00:00
kvm_aarch64.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_amd64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_amd64.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_arm.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_arm.h Rename pte.h to pte-v4.h and start including directly either pte-v4.h 2016-02-19 09:23:32 +00:00
kvm_cptime.c Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_getcptime.3
kvm_geterr.3 kvm_geterr: handle kd == NULL in a deterministic/graceful manner 2017-03-21 19:02:17 +00:00
kvm_getloadavg.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_getloadavg.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_getpcpu.3 Tweak r315363 slightly 2017-03-16 03:24:15 +00:00
kvm_getprocs.3 Remove a commented out line before kvm_getprocs(3) 2017-03-19 23:04:58 +00:00
kvm_getswapinfo.3 libkvm - extend a bit the swap statistics field. 2017-01-02 15:12:11 +00:00
kvm_getswapinfo.c libkvm - extend a bit the swap statistics field. 2017-01-02 15:12:11 +00:00
kvm_i386.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_i386.h Fix building with GCC since PAGE_MASK is signed on i386. 2016-01-14 15:51:13 +00:00
kvm_minidump_aarch64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_amd64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_arm.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_i386.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_minidump_mips.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_mips.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_native.3 Capitalize .Dt macro argument 2017-03-16 03:18:06 +00:00
kvm_nlist.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_open.3 Handle kd == NULL gracefully with kvm_close(3) 2017-03-20 18:28:22 +00:00
kvm_pcpu.c lib: minor spelling fixes in comments. 2016-05-01 19:37:33 +00:00
kvm_powerpc64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_powerpc.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_private.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_private.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_proc.c Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
kvm_read.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm_sparc64.c libkvm: fix warning issues post-r291406 2017-03-22 02:42:00 +00:00
kvm_sparc64.h Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00
kvm_vnet.c lib: minor spelling fixes in comments. 2016-05-01 19:37:33 +00:00
kvm.3 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kvm.c kvm_write: fix -Wcast-qual warning in pointer arithmetic argument 2017-03-21 20:48:36 +00:00
kvm.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile lib/libkvm: start adding basic tests for kvm(3) 2017-03-28 17:37:49 +00:00
Makefile.depend Add support to libkvm for reading vmcores from other architectures. 2015-11-27 18:58:26 +00:00