Commit Graph

7223 Commits

Author SHA1 Message Date
hannken 514b0270dd A component name is a counted string (cn_nameptr, cn_namelen),
not a zero terminated string cn_nameptr.

Change the following operations to work with counted strings:

v7fs_file_lookup_by_name()
v7fs_file_allocate()
v7fs_file_deallocate()
v7fs_directory_add_entry()
v7fs_directory_remove_entry()
v7fs_file_rename()
v7fs_file_link()
v7fs_dirent_filename()

Adapt all vnode operations with component names as argument.
2022-02-11 10:55:15 +00:00
mrg de782e438b convert my fdiscard-stuff.c into blkdiscard.c and give it a UI
that matches the linux-util version.

comes in two forms:  blkdiscard equivalent, and the (almost)
original interface i used (the "-s" option is conflicting and
i've switched to only the not yet implemented secure erase
option.)  the only real difference is that "fdiscard" mode
requires the -R flag to do something, vs blkdiscard needs the
-n flag to not do anything.


not yet hooked into the build or sets.  would like more testing
on it to be performed before doing that (but soon.)
2022-02-07 09:33:26 +00:00
andvar 183889cba7 fix various typos in comments, log messages and documentation.
mainly s/aparently/apparently/ and s/implmented/implemented/.
2022-02-06 20:20:18 +00:00
christos 873fd60810 PR/56643: Paul Goyette: Disable the last block adjustment for now. It seems
to break restore.
2022-01-26 20:22:14 +00:00
andvar 492c086f0a s/begining/beginning/ in comments and messages. 2022-01-24 09:14:36 +00:00
wiz ad6a1e0149 Fix grammar 2022-01-22 09:59:26 +00:00
pho 9f39150738 lib/librefuse: Implement FUSE session API and its signal handling functionality 2022-01-22 07:53:05 +00:00
christos ac31891a27 O_CLOEXEC is not a mode :-) 2022-01-20 14:45:14 +00:00
christos 20f0ca0034 - use /dev/tty instead of stderr for SIGINFO messages
- use uintmax_t instead of ull
- print fractional percentage to show that we are making progress on large
  disks.
2022-01-20 14:44:19 +00:00
mrg da1006fc7e add SIGINFO support. now you can know how far along the scan is. 2022-01-19 01:40:05 +00:00
christos f6c17ff1ea update date 2022-01-17 20:01:43 +00:00
kim f9317bf51a Move the possible optimize_preference values back under the -o flag 2022-01-17 18:03:22 +00:00
bad 83f02db3da mention ifmcstat(8) in SEE ALSO. 2022-01-07 10:17:39 +00:00
msaitoh 988ab2c9fa s/sytem/system/ 2022-01-01 10:32:28 +00:00
christos 962d2193b3 kern.hashstat takes too long and it is meaningless here. 2021-12-28 16:06:57 +00:00
mlelstv 9e53e1415d Add support for a read-only edid attribute that shows the result of
WSDISPLAYIO_GET_EDID.

Uses code from sys/dev/videomode to parse and print the edid data.
2021-12-25 13:54:13 +00:00
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