Commit Graph

7034 Commits

Author SHA1 Message Date
plunky
7ea6ef2b6d trim extraneous return statement 2020-04-10 14:32:50 +00:00
christos
9655c24691 Refresh the superblock in memory if changing a mounted partition. 2020-04-09 14:44:38 +00:00
martin
b187e11174 Sync "common" declarations with ifdefs in header. 2020-04-06 09:54:24 +00:00
mrg
d26fa7dbd1 dion't define endian as well as try to declare it as a variable. 2020-04-06 06:41:34 +00:00
joerg
6ce4f404a1 Fix depenency on common symbols in sbin. 2020-04-05 15:25:39 +00:00
joerg
a74e29fe24 Avoid common symbols for fsck_lfs. 2020-04-03 19:36:32 +00:00
maxv
6fa9cf7eed Avoid overflows when reading strings. 2020-04-03 19:09:43 +00:00
joerg
a69687b194 Just declare driver and buf 2020-04-03 18:39:15 +00:00
martin
af2ed9cf6e Make route and netstat share the same struct progops (and initialization
code)
2020-04-03 16:20:51 +00:00
christos
a17e9ce771 Add a prog_setsockopt (thanks kre@) 2020-04-02 18:32:31 +00:00
martin
29b6fd854b Now that we use the same UUID for ZFS as FreeBSD, drop the FreeBSD marker
from the description.
2020-03-30 10:41:53 +00:00
wiz
81e8a3b48e Teach dk(4) about ZFS.
"looks ok" mlelstv
2020-03-30 08:36:09 +00:00
gutteridge
b849d2c572 rfilter.2: fix a typo
Reported by Andrius V in PR kern/54889.
2020-03-22 23:24:08 +00:00
khorben
9e6960f916 Forbid command line parameters when parsing configuration files
This behaviour was ambiguous at best.
While there, also correct the usage screen, and the corresponding manual
page.
2020-03-22 07:45:02 +00:00
roy
ae92cb1896 route: Enable receive error reporting on the routing socket 2020-03-14 22:26:39 +00:00
wiz
14df4e9b76 New sentence, new line. Bump date for previous. 2020-02-24 11:59:33 +00:00
mlelstv
c445faa062 Add one-shot mode. 2020-02-24 11:45:30 +00:00
riastradh
2d468aafe8 Fix userland references to LFS_ORPHAN_NEXTFREE.
Forgot to grep for these or do a full distribution build, oops!
2020-02-23 15:11:33 +00:00
wiz
74532f1d21 Fix date. 2020-02-23 00:14:31 +00:00
pgoyette
9a34b1cfc9 Clarify that the -k option only provides the address of the module's
text segment.  The addresses of any other segments are not available.
2020-02-22 14:26:18 +00:00
kamil
b110dc906e Avoid unportable shift construct
boot.c:150:29, left shift of 255 by 24 places cannot be represented in type 'int'
boot.c:153:29, left shift of 255 by 24 places cannot be represented in type 'int'
2020-02-22 09:59:22 +00:00
kamil
7cd593c092 Avoid undefined behavior
route.c:1523:20, left shift of 1073741824 by 1 places cannot be represented
in type 'int'
2020-02-22 00:42:15 +00:00
leot
f006c3623b Fix a thinko
Reported by qjsgkem via #netbsd-code, thanks!
2020-02-12 09:43:19 +00:00
kamil
5f94716bd4 Stop including unused header <sys/poll.h> 2020-02-06 19:20:21 +00:00
roy
b433cf8862 route: address flags are more useful than interface flags for address msgs 2020-01-22 19:22:06 +00:00
roy
cdc408b51e route: Decode the correct flags for interface address messages 2020-01-22 17:55:41 +00:00
thorpej
c1d9ec8d89 Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It is
long since obsolete.
2020-01-19 01:25:03 +00:00
christos
1c0459f7c5 .include bsd.own.mk for ${NETBSDSRCDIR} 2020-01-14 23:13:36 +00:00
christos
08f54aa8c8 Don't add the 2 reserved clusters before we determine if we using fat16/fat32.
From FreeBSD: https://reviews.freebsd.org/D23082:

Correct off-by-two issue when determining FAT type.

In the code we used NumClusters as the upper (non-inclusive) boundary
of valid cluster number, so the actual value was 2 (CLUST_FIRST) more
than the real number of clusters. This causes a FAT16 media with
65524 clusters be treated as FAT32 and might affect FAT12 media with
4084 clusters as well.

To fix this, we increment NumClusters by CLUST_FIRST after the type
determination.
2020-01-11 16:29:07 +00:00
ad
9e93be3837 - options NAMECACHE_ENTER_REVERSE is no more.
- Partially sort the list of per-vnode namecache entries by using a TAILQ.
  Put the real name to the head, and put dot and dotdot to the tail so that
  cache_lookup_reverse() doesn't have to consider them.
2020-01-08 12:04:56 +00:00
ryo
d5ec837d73 fix printing capabilities and enabled flags.
no need to skip a prefix "0x" of output of snprintb.
ifconfig expect the result of snprintb has "0x" prefix, but snprintb(3) specification has changed
so that if 0 is passed, it prints "0" instead of "0x0". (common/lib/libutil/snprintb.c r1.22)
2020-01-02 23:02:19 +00:00
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