msaitoh
5360c5e2f0
Call cpu_dcp_cacheinfo() only when the cpuid Topology Extension flag is set
...
on AMD prcessor.
2019-09-09 05:36:21 +00:00
brad
6f990d2afc
The cleaner is compiled into rump_lfs and executed as a thread. Pass
...
in the raw device using the new -J option. This avoids the use of
getdiskrawname which is not particularly rump safe in this context and
insures that the rump container device is used for cleaning, not the
outer device.
2019-08-30 23:41:48 +00:00
msaitoh
87de9f9cf5
Decode AMD's CPUID Fn8000_0008 %ebx.
2019-08-30 13:12:24 +00:00
martin
ff2c12f319
Remove dead (#if 0) code.
2019-08-28 15:19:05 +00:00
martin
c62f035be3
When requesting no special FS sub type, default to FAT32 with LBA.
...
Fixes one part of PR 54490.
2019-08-27 17:23:24 +00:00
martin
32ccf04c1c
Do not offer to upgared the "current system" if we are running off a CD
...
(i.e. / is mounted read-only)
2019-08-27 14:11:00 +00:00
martin
6f0d7230f9
Fix a bug when installing to pre-exising GPT partitions.
...
Handle GPT labels with spaces.
2019-08-26 12:14:06 +00:00
rmind
298883fee6
- npfctl_load_nvlist: simplify the config loading logic.
...
- Fix a small race condition in npf_nat_getaddr().
- Rework pserialize/EBR wrappers, make it easier to maintain.
2019-08-25 13:21:03 +00:00
rmind
0dd7abe473
libnpf fix: link the library itself to libnv; libnpf users should not be
...
expected to assume this dependency.
2019-08-24 13:20:52 +00:00
rmind
f916b9b1ff
- npftest: fix a memleak in a unit test (standalone path only).
...
- Minor style fixes. No functional change.
2019-08-21 21:41:53 +00:00
martin
d7f55bad98
PR install/54480: when upgrading a system and re-mounting the target /
...
with proper options, and the installed system does not use NAME= syntax
in fstab(5), use the device name we used to get here, instead of the
name from fstab, it might be different to what the real system calls the
device (compact flash root showing up as wd0 native, but sd? on the
card reader used for updating it right now).
This is an abuse of the upgrade functionality and in general pretty dangerous
when multiple devices are used in the upgraded fstab (e.g. separate /usr),
and it used to work more by accident with the old code.
However, it is a quite usefull way to upgrade tiny systems with compact flash
root, and it used to work - so support it properly (as far as we can).
2019-08-20 06:38:17 +00:00
martin
6bccae72f0
Fix memory leak (found by MKSANITIZER=yes build).
2019-08-18 11:11:48 +00:00
abhinav
b0ca50fb4d
PR bin/54343: We want the callback_args.machine to be NULL if it is not present in the DB.
...
The previous commit fixed the problem of allowing apropos to not crash and
produce output even if the database is missing values for certain mandatory
fields, such as name, section etc. Normally we don't expect those values
to be missing in the database but in case of parsing errors it can happen.
However, the machine architecture is an optional field since not all man pages
are hardware specific so that should be allowed to be set to NULL if not
present in the database.
2019-08-18 09:14:30 +00:00
kamil
0c4f7708cb
traceroute: Add indirection of symbol to remove clash with sanitizers
...
Add indirection and symbol renaming under MKSANITIZER for the linked in
version of getifaddrs.
2019-08-18 04:12:07 +00:00
martin
2b9b247d73
Oops, avoid double free.
2019-08-17 18:08:06 +00:00
martin
31a289cd68
Fix some memory leaks in error paths
2019-08-17 18:03:12 +00:00
martin
1b565566ff
PR 54473: fix error prompt when a set file is missing
2019-08-17 17:51:19 +00:00
martin
effa0345f7
Never trust a compiler that predefines i386 as 1 - do the symbol name
...
concatenation at the make level instead.
2019-08-15 19:53:01 +00:00
martin
3e1d4a8ce3
Replace black voodo linker magic (sometimes failing) with some
...
makefile + macro magic to trim the list of available machines on size
restricted install media.
2019-08-15 14:06:40 +00:00
christos
2d0aa66b2f
PR/54343: Prevent NULL pointers in callback strings; use "*?*" for now to
...
identify them.
2019-08-15 10:29:07 +00:00
kamil
74a26dbbb0
Add missing extern declaration of ib_mach_emips in installboot
...
Change added for the consistency with the existing code.
2019-08-15 08:36:09 +00:00
kamil
bffacbd197
Stop defining _rpcsvcdirty in bss and data
...
_rpcsvcdirty is already defined in the generated code from rpcgen(1).
Detected during the build with Address Sanitizer (MKSANITIZER).
2019-08-15 08:34:19 +00:00
kamil
cb47fa61ba
Avoid symbol clashes in usr.sbin/ypserv/ypserv under MKSANITIZER
...
Remove symbol conflicts for: gethostbyname2
2019-08-15 08:30:19 +00:00
martin
3004d9767f
Fix some "partition index" (as used in the abstract interface)
...
versus disklabel "partition letter" confusion.
2019-08-14 13:58:00 +00:00
martin
b04f4d6257
On architectures that usually do MBR/disklabel, nevertheless deal with
...
pure/plain disklabel disks, and explicitly offer this as partitioning
option when bootability is not a concern.
2019-08-14 13:02:23 +00:00
martin
6fec679845
When we ask the user to select a partitioning scheme and they refuse
...
(that is: select "Exit" in the menu), abort installation.
2019-08-14 12:55:35 +00:00
martin
13f836ecb6
Provide some documentation for macros / defines used in the machine
...
dependent backend parts of sysinst.
2019-08-14 12:49:37 +00:00
martin
736e79ce31
Make sure to completely initialize dynamic menu entries.
2019-08-13 17:57:49 +00:00
maxv
2b4397de4a
sync with reality
2019-08-13 09:48:24 +00:00
gutteridge
1e1742aedb
npf.7: add xref to npf-params.7
...
(Adding directly here since this particular file isn't included in
rmind@'s upstream GitHub repo at present.)
2019-08-11 22:27:15 +00:00
rmind
04ad65d955
Adjust some internal NPF APIs:
...
* npfkern: use the npfk_ prefix.
* NPF portmap: amend the API so it could be used elsewhere.
* Make npf_connkey_t public.
2019-08-11 20:26:33 +00:00
rmind
b7b9a92305
npf-params(7): add more bpf.jit details.
...
From David H. Gutteridge.
2019-08-11 20:25:14 +00:00
rmind
64b4ec4316
npfctl show/validate: fix couple bugs in multiple table/port representation.
...
Fixes PR/54122.
2019-08-10 22:23:55 +00:00
rmind
54d339ec04
NPF: fix BPF byte-code generation for a port-range used in a group.
...
Resolved PR/52609 and PR/54169.
2019-08-08 21:29:15 +00:00
martin
0dfd6624ca
Do not even consider to fsck partitions where we do not know the file
...
system type. Add v7fs support.
2019-08-08 13:45:19 +00:00
martin
62c0076db0
Do not try to fsck partitions we are never going to mount.
...
Found by Andreas Gustafsson's baremetal test bed.
2019-08-08 11:41:16 +00:00
martin
b8a71b5965
When creating the /etc/fstab for new installs, the sense of the "noauto"
...
flag was inverted (editor mishap?)
2019-08-07 10:12:32 +00:00
martin
a7267d5357
Support upgrade of systems using NAME= syntax in /etc/fstab.
...
Make supported file system types dynamic - instead of hardcoding the
available types at compile time, check for available newfs_* helper
binaries in the actual install environment at runtime.
2019-08-07 10:08:04 +00:00
maya
771183eb32
Consistent indentation / whitespace
2019-08-05 13:50:58 +00:00
maya
0189925033
KNF for loops
2019-08-05 13:49:10 +00:00
maya
e203dacf10
Remove duplicate check for curpkt > 13
...
We already guarantee this above:
if (numpkts < 1 || numpkts > 13) {
return -1;
2019-08-05 13:45:01 +00:00
maya
538e47f18a
Avoid read overflows
2019-08-05 13:39:18 +00:00
martin
6477ac5760
Fix copy&pasto: when we find a FFSv1 filesystem, properly record it
...
that way - so the correct bootblocks get installed on system upgrades.
2019-08-04 10:29:41 +00:00
martin
9b4c571a0a
When reading an existing gpt, match the wedges already existing ons
...
on the parent device, so we can use them directly if we should proceed
with an unmodified partition table.
2019-08-03 14:00:42 +00:00
martin
a8e7688bfa
Properly handle partitions that we were requested to mount but not newfs.
2019-08-03 12:09:22 +00:00
martin
43d7f7864c
Deal with missing labels when parsing gpt(8) output.
2019-08-02 10:44:22 +00:00
martin
48cbcc51da
If we can not fit a planned partition, retry with a bit more slope
...
in size.
2019-08-01 17:50:16 +00:00
martin
c8d0c58880
PR 54423: complete initialization of install info for user defined partitions
2019-08-01 17:49:12 +00:00
martin
fcf26eb921
PR 54423: fix handling of user defined partitions
2019-08-01 16:48:06 +00:00
martin
6de470330d
Do not strip the trailing / on root mounts when evaluation "last mounted
...
on". Fix some /dev/ and raw vs. block device confusion on system upgrades.
2019-08-01 16:32:06 +00:00