Commit Graph

7207 Commits

Author SHA1 Message Date
christos 263a1fd803 remove impossible test. 2021-12-07 14:31:13 +00:00
msaitoh bd79849380 s/prefering/preferring/ in comment. 2021-12-05 07:15:03 +00:00
nia 1e8ef14842 cgdconfig.8: Use argon2id in examples 2021-12-04 15:03:58 +00:00
pho 1f6f9b8380 librefuse: Preparation of a proper API versioning; no more #ifdef woes in user code
The goal is to fully support FUSE API version 3.0 while maintaining
API/ABI compatibility with code written for 2.6 (or even older).

* <fuse.h> now emits a compiler warning if it's included without
  defining FUSE_USE_VERSION. It had been silently defaulted to the
  latest supported version prior to this change. This is permissive
  compared to the original FUSE, as it emits an error instead.

* <fuse.h> now emits a warning if FUSE_USE_VERSION is higher than what
  can be provided.

* Added a macro FUSE_MAKE_VERSION(maj, min). It was missing from
  librefuse <fuse.h>.

No actual API updates have been made (yet).
2021-12-04 06:42:39 +00:00
andvar d1c4e519a3 fix various typos in comments, log messages and documentation. 2021-12-03 13:27:37 +00:00
christos bc0fdeaa90 PR/56529: RVP: mount should try ffs when DIOCGWEDGEINFO returns an empty
dkw_ptype.
2021-12-02 13:26:39 +00:00
christos ccce93efc8 -lpthread to LDADD (fixes lint build) 2021-11-28 02:01:30 +00:00
nia 47fbfd2f6a cgdconfig(8): add some console feedback when calculating the number
of pkcs5_pbkdf2 iterations
2021-11-22 16:04:03 +00:00
nia 1569bcc0b3 cgdconfig(8): Add an argon2id password-based key generation method
This provides an extra level of side-channel and cracking resistance
compared to the pre-existing pkcs5_pbkdf2/sha1 method used for
password-based disk encryption.

Several new keygen parameters are supported:

	memory (integer, in kilobytes)
	parallelism (integer, usually the number of CPU cores)
	version (integer, usually 19...)

We do our best to calibrate these automatically when the paramsfile
is initially generated.

lgtm riastradh@
2021-11-22 14:34:35 +00:00
simonb 2dc7bd6f38 Add some { } around an if body that is followed by an "else {". 2021-11-21 05:09:15 +00:00
msaitoh fead0fdcaf s/endianess/endianness/ 2021-11-10 17:19:29 +00:00
msaitoh 272a180684 s/offseting/offsetting/ in comment. 2021-11-10 16:02:14 +00:00
nia ed6693e7e2 fdisk(8): Convert realloc(x * y) to reallocarr. Eliminate temp variables. 2021-11-03 14:30:04 +00:00
nia ccf8c4a2ce disklabel(8): convert malloc(x * y) to reallocarr 2021-11-03 14:25:39 +00:00
rillig 4a60ed0210 wsconsctl: revert adding LINTFLAGS
https://mail-index.netbsd.org/source-changes-d/2021/10/26/msg013482.html
https://mail-index.netbsd.org/source-changes-d/2021/10/26/msg013483.html
2021-10-26 17:33:18 +00:00
jmcneill 4b542cfeea Allow getty to exit quickly a few times before deciding that it is exiting
too quickly. Based on a FreeBSD change from 1994.
2021-10-11 20:23:25 +00:00
rillig a59814ca67 wsconsctl: include correct header for lint
Running lint in non-tools mode picked up the header from the installed
system, not the one corresponding to the source code. The installed
header on NetBSD 9.99.88 does not define WSMOUSECFG_MAX yet.
2021-10-11 13:27:47 +00:00
nia d4e118e090 wsconsctl: allow the new "precision scrolling" variables to be configured 2021-09-28 06:20:09 +00:00
mlelstv d9c815ad06 fail on error, not on success. 2021-09-22 14:15:29 +00:00
andvar a136e22ab6 fix various typos in comments, messages and documentation. 2021-09-19 10:34:06 +00:00
christos 292aad7505 Change the default for ACLs to be posix1e instead of nfsv4 to match FreeBSD.
Requested by chuq.
2021-09-18 03:05:19 +00:00
christos f41cc18e8b Fix the function pointer declaration to something lint likes. 2021-09-17 22:41:48 +00:00
rillig ea80fa1d5b sbin: enable lint for almost all programs
The programs fsck_lfs and newfs_lfs both trigger a longstanding bug in
lint that is difficult to fix, so ignore them for now.

For resize_ffs, lint thinks that 'struct fs' is incomplete, but GCC and
Clang accept it.  Needs further investigation.
2021-09-14 20:13:03 +00:00
andvar e8cc649d65 fix few typos in comments. 2021-09-01 14:17:46 +00:00
christos daa5207d25 Fix reversed test (thanks phone@) 2021-08-29 09:17:58 +00:00
christos 670efce4f5 fix wrong size (thanks mlelstv@) 2021-08-29 09:15:33 +00:00
andvar 626fac18a1 s/priviledge/privilege/ in comments/log messages and fix one typo in descriptor. 2021-08-22 20:18:39 +00:00
andvar ca7653601e fix various typos in comments and log messages. 2021-08-20 20:25:26 +00:00
andvar ebbc7028d3 fix typos in words "pointer" and s/fram /frame/ 2021-08-13 20:47:54 +00:00
martin bcb7e68e0a Fix obvious editor mishap in previous 2021-08-08 10:48:35 +00:00
kre e1efa60439 Obliterate bogus $@ usage.
While here, fix some quoting, change some style, and attempt
to properly handle wedge names with embedded newlines, and those
that end with a '/' character (not particularly happy with the
solution to that last one, but it is better than it was).

Is there a reason that characters that need encoding in wedge names
(white space, and more) are encoded as %%XX (XX is the hex value of
the char - but 2 % chars?  Why?).   That remains unchanged, but as
the script already relied upon sh's $'...' quoting, I think we can rely
upon printf as well, so replace the old (very elegant, but slow) encoding
function with a much simpler one (does the same thing).
2021-08-05 12:52:47 +00:00
kre a9596d155d Expunge bogus (implementation defined / unspecified) uses of $@ in
scripts.   $@ is unspecified except when used in a place where
field splitting can occur (which is never in an assignment),
X=$@ (with or without double quotes) is simply wrong.

Use $* instead of $@ in such places, or as here, simply change
the way things are done (very very slightly) and DTRT.
2021-08-05 12:45:33 +00:00
oster 7464f2ddcd Support on-demand re-scanning all devices to look for
autoconfig RAID sets.  raidctl now supports looking
for autoconfig RAID sets with a new '-L' flag.
2021-08-02 20:31:14 +00:00
oster 6b2ddebee8 Move case 'l' to be in sorted order. No functional change. 2021-08-01 20:26:53 +00:00
andvar 6b362760a4 Remove commented code, including empty if block. Replace tab with whitespace in usage declaration. 2021-07-16 12:09:36 +00:00
christos d66b04778c PR/56270: Matthias Scheler: dump fails on ffsv1: Zero c_extsize since ffsv1
does not support extended attributes.
2021-07-07 11:06:37 +00:00
riastradh 9e8e52123d restore(8): Mark fail_dirtmp __dead to fix clang build. 2021-06-23 14:22:08 +00:00
christos 948b91748c fix proplib deprecation 2021-06-21 03:14:40 +00:00
christos 3151045394 fix proplib deprecation 2021-06-21 03:04:27 +00:00
christos e2325e1f91 Add external attribute dumping and restoring support from FreeBSD.
Does not fully work yet, attributes are being saved and restored correctly,
but don't appear in the restored files somehow.
2021-06-19 13:56:34 +00:00
riastradh 3db1594692 cgdconfig(8): Fail more gracefully than SIGSEGV if shell_cmd fails. 2021-06-16 23:22:08 +00:00
rillig 06d45e62dc ping, ping6: fix comment about ID field
Since ping.c 1.76 and ping6.c 1.58 from 2004-04-22, the ID field
contains random bits instead of a process ID.
2021-06-11 18:47:56 +00:00
dholland fcb4d9ad2e In ping6, there's no blank space in the ping packets by default.
- document that if you use -p to specify a fill pattern you need to
make the packets bigger with -s;

- warn if -p is used and there's not at least one byte of fill space.

PR 56057
2021-06-07 22:13:34 +00:00
dholland 976049247d Teach mount_chfs to understand -o. From Andrius V. 2021-06-07 21:44:35 +00:00
hannken 67464f77e0 Bitmaps (TS_BITS and TS_CLRI) dont use the "c_addr" array as they
cannot have holes.  As bitmaps are written without TS_ADDR records
"c_count" may be larger than the "c_addr" size resulting in a
segmentation violation reading "c_addr" beyond its end.

Compute "blks" for TS_INODE and TS_ADDR only -- its used for multi
volume dumps and the bitmaps must both be on the first volume.
2021-06-07 14:07:32 +00:00
riastradh 3494bf46bc mount_chfs(8): Remove some vestiges of chewiefs name.
Add RCS id while here and nix some needless whitespace.

No functional change intended.

Patch from Andrius V.
2021-06-04 22:41:36 +00:00
simonb a08818a5a6 Remove the warning about autoselecting nfs based on : or @.
Ok jmcneill@, mrg@.
2021-06-04 11:55:45 +00:00
prlw1 6fcffc8303 Make adiantum a first class citizen 2021-06-03 15:40:27 +00:00
christos 141e8cbc5f first check, then copy 2021-05-29 17:41:51 +00:00
christos 81d301652a Add birthtime support and make time 64 bit. 2021-05-29 16:51:25 +00:00