Commit Graph

7003 Commits

Author SHA1 Message Date
kre
6b4ce10f36 Make recent change build for SMALL builds as well as normal ones. 2020-01-01 00:24:52 +00:00
tsutsui
475a622639 Fix dmesg(8) to preserve leading whitespaces of kernel messages.
Closes PR/54729.
2019-12-31 19:58:56 +00:00
msaitoh
88af233251 s/opration/operation/ 2019-12-27 07:41:22 +00:00
wiz
3bb7993d91 Fix xrefs. 2019-12-15 11:49:28 +00:00
christos
b54315f23d PR/54756: germain: Avoid confusion caused by overuse of the word "file" both
as a noun and an argument name.
2019-12-14 20:46:13 +00:00
wiz
97394f0e9a Remove superfluous Pp. 2019-12-07 12:35:27 +00:00
pgoyette
ac676e6637 Note also that the load address (if provided) is also for the module's
text segment.
2019-12-06 21:45:14 +00:00
riastradh
5af49f98fe Teach `rndctl -L' to update the seed file, not just delete it.
The seed file is updated by entering the old seed into the system and
then hashing the old seed together with data from /dev/urandom, and
writing it atomically with write-to-temporary/rename-to-permanent.

This way, interruption by crash or power loss does not obliterate
your persistent entropy (unless it causes file system corruption).
2019-12-06 14:43:18 +00:00
pgoyette
c5b5c0a464 Note that the size returned by modctl(2) and displayed by modstat(8) is
only for the module's text section, not for the entire size of the module.

Addresses PR kern-54737
2019-12-04 23:35:36 +00:00
wiz
b6ec8480de Sort options and SEE ALSO. Improve a sentence. 2019-11-20 21:56:19 +00:00
tkusumi
764206462f mount_autofs: Sync man page with DragonFlyBSD
Taken-from: DragonFlyBSD
2019-11-20 17:29:51 +00:00
tkusumi
b35c5f0b43 mount_autofs: Remove blank line with trailing whitespace 2019-11-20 17:18:35 +00:00
mrg
91cecf62cf elide recently introduced warnings that trigger in normal cases, eg:
savecore: dump_exists:471: kvm_read newdumpmag: _kvm_kvatop(ffffffff8180030c)
2019-11-06 07:29:08 +00:00
christos
6d3bef8dbf inode.c needs -O0 for vax 2019-10-28 22:52:43 +00:00
maya
cede1cc99c Switch files copyright Reinoud Zandijk from BSD 4 clause to BSD 2 clause.
OK'd by reinoud in email (from 4 Feb 2019).
2019-10-16 21:52:22 +00:00
jnemeth
a1afb41542 Do the 'dkctl makewedges' dance to drop any wedges assoicated the
destroyed GPT.
2019-10-16 19:03:53 +00:00
mrg
de11d87641 introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
2019-10-13 07:28:04 +00:00
martin
410b25665f When we end up with too few clusters for the requested FAT type after
configuring default values, retry with a smaller cluster size.
This makes the typical invocation to create a spec conformant EFI boot
partition work out of the box.
2019-10-12 09:42:38 +00:00
christos
683824cce0 gpt_uuid_parse does not set errno ... 2019-10-11 23:04:52 +00:00
christos
ea4f9899c6 print the name of the disk causing the error. 2019-10-07 20:56:07 +00:00
mrg
d6b33fe60a avoid access uninitialised memory, found by gcc8, patch by agc@. 2019-10-04 09:16:38 +00:00
kardel
479b835cf3 PR/54513 ifconfig exits on newly created carp interfaces
downgrade from err(EXIT_FAILURE, ... ) to warn() if ioctl(SIOCGLIFADDR) fails.
ifconfig now survives freshly created carp interfaces.
2019-10-01 10:52:53 +00:00
bad
7a2e426f67 initialize disc_dict to NULL.
otherwise, if DIOCGDISKINFO returns an error != ENXIO getdiskinfo() later
tries to prop_object_release() stack garbage.

found by rumpctrl tests using clang-7.
2019-09-28 18:03:18 +00:00
mlelstv
dacdd9d9b5 Need MIN in userland. Also some more signed/unsigned clashes. 2019-09-26 10:47:30 +00:00
mlelstv
3a8aa0a47c nspares is now unsigned. Validate and use as positive integer. 2019-09-26 10:33:30 +00:00
roy
99b959ff0d route(8): Show addres for RTM_LOSING
While here, add /* FALLTHROUGH */.
2019-09-02 00:30:01 +00:00
wiz
7c8c4d229e Remove superfluous Pp. 2019-09-01 19:13:18 +00:00
sevan
fe6b8268b9 grammar 2019-09-01 18:51:27 +00:00
roy
68a5c140d2 route(8): show addrs for RTM_MISS 2019-08-31 18:20:08 +00:00
brad
277f8a757a Use getdiskrawname to find the device name.
Reviewed by Christos
2019-08-22 20:26:07 +00:00
roy
2b94ade947 route(8): print RTM_CHANGE messages
XXX Pullup -9
2019-08-22 16:10:48 +00:00
perseant
f5654bbebe Clean up debugging cruft that somehow made it into my previous commit. 2019-08-20 21:18:10 +00:00
wiz
27a1bb09f8 Sort options in usage.
filesystem -> file system
2019-08-20 21:07:21 +00:00
perseant
473107ea62 Allow the user to specify the filesystem ID for umapfs at mount time,
allowing a consistent filesystem ID across reboots.  Closes PR #54471.
2019-08-20 20:18:54 +00:00
perseant
7aae290207 Add -D flag to allow the user to specify an alternate dumpdates file.
Closes PR #54469.
2019-08-19 18:12:50 +00:00
martin
21c20a3068 Properly release the disk properties dictionary we received via
ioctl.
Detected by leak sanitizer when building with MKSANITIZER=yes.
2019-08-18 11:08:56 +00:00
kamil
997c4cdc97 sysctl: Add indirection of symbols to remove clash with sanitizers
Add indirection and symbol renaming under MKSANITIZER for the linked in
version of sysctlbyname and sysctlgetmibinfo.
2019-08-18 04:10:22 +00:00
msaitoh
5ae436aa7e Whitespace fix. 2019-08-16 10:33:17 +00:00
kamil
1f7b844ec7 fsck: Stop defining the same variable concurrently in bss and data
returntosingle was defined in multiple places:

 - fsck_lfs/main.c
 - fsck_ffs/main.c
 - fsck_ext2fs/main.c
 - fsck/fsutil.c

Keep the fsutil.c definition as the only one.

Detected during the build of telned with Address Sanitizer (MKSANITIZER).
2019-08-15 03:10:42 +00:00
roy
85f97b7a69 reboot: fix arg order for logwtmpx(3)
Matches the correct order from init(1).

Thanks to Sascha Wildner <swildner@dragonflybsd.org>
2019-08-08 21:14:12 +00:00
wiz
1100063163 Remove superfluous Pp. 2019-08-07 19:08:10 +00:00
mrg
1eef670a51 add an example about reattaching USB devices 2019-08-06 10:45:14 +00:00
isaki
002042ffe7 Fix a trivial wrong comment. x68k's arch is not m68010. 2019-08-03 04:21:37 +00:00
martin
8e17bc1a27 Remove outdated note about sysinst restrictions 2019-07-26 07:22:05 +00:00
msaitoh
eea2ee1212 Implement VLAN hardware filter function(ETHERCAP_VLAN_HWFILTER).
First proposed by jmcneill in 2017 and modified by me.

How to use:

 - Set callback function:

	ether_set_vlan_cb(struct ethercom *, ether_vlancb_t)

 - Callback. This function is called when a vlan is attached/detached to the
   parent interface:

	int (*ether_vlancb_t)(struct ethercom *ec, uint16_t vlanid, bool set);

 - ifconfig(8)

	ifconfig ixg0 [-]vlan-hwfilter

 Note that ETHERCAP_VLAN_HWFILTER is set by default on ixg(4) because
the PF driver usually enable "all block" filter by default.
2019-07-17 03:26:24 +00:00
msaitoh
cb1ccde89c KNF. No functional change. 2019-07-17 03:09:16 +00:00
msaitoh
83631b96b8 Add "ifconfig [-]vlan-hwtagging" to enable/disable VLAN hardware tagging
offload function. It's useful to see Ethernet frame's VLAN tag by
disabling with "ifconfig fooX -vlan-hwtagging" and "tcpdump -e -i fooX".
2019-07-08 03:04:15 +00:00
wiz
4785fe6db5 Formatting nit. 2019-07-04 13:55:31 +00:00
ozaki-r
86e9de9cad Add descr,description/-descr,-description commands to ifconfig(8) to handle a description.
From t-kusaba@IIJ
2019-07-04 02:45:45 +00:00
mlelstv
45a6f3d566 Fix NATIVELABEL_ONLY build. 2019-07-03 07:05:27 +00:00