Commit graph

10015 commits

Author SHA1 Message Date
Tom Hukins 4b96066ac0 gpart(8): Improve manual page syntax
Fix various warnings from `mandoc -Tlint lib/geom/part/gpart.8`.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/702

(cherry picked from commit 409594ef34)
2023-08-06 19:43:36 +02:00
Tom Hukins 555a4a30a0 camcontrol(8): Use simpler language
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/702

(cherry picked from commit 2bcbf4d831)
2023-08-06 19:38:40 +02:00
Tom Hukins 3fb913e58d camcontrol(8): Add manual page cross references
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/702

(cherry picked from commit 2675b8bd3d)
2023-08-06 19:38:31 +02:00
Wolfram Schneider a38661a36b update external URL
(cherry picked from commit c918f50f8b)
2023-08-06 19:38:04 +02:00
Kirk McKusick 44e4279e56 Add diagnostics to fsck_ffs(8) for journaled soft-updates debugging.
Sponsored-by: The FreeBSD Foundation
(cherry picked from commit 6f0ca273a3)
2023-08-04 23:22:19 -07:00
Kirk McKusick 98b660abff Add quitclean command to fsdb(8) to request a filesystem not be marked dirty.
Sponsored-by: The FreeBSD Foundation
(cherry picked from commit d059e44b80)
2023-08-04 23:20:25 -07:00
Kirk McKusick bcbb927b97 Have fsdb(8) only mark a filesystem dirty when it is modified.
Sponsored-by: The FreeBSD Foundation
(cherry picked from commit d51bdf327d)
2023-08-04 23:17:30 -07:00
Kirk McKusick f40d616aec Debugging output additions. No functional changes intended.
Sponsored-by: The FreeBSD Foundation
(cherry picked from commit 4d512b0735)
2023-08-04 23:13:25 -07:00
Kirk McKusick 1cd2b2f96f Text format cleanups. No functional changes intended.
Sponsored-by: The FreeBSD Foundation
(cherry picked from commit 239597e030)
2023-08-04 23:11:08 -07:00
Warner Losh 6d30916e9b spdx: The BSD-3-Clause-FreeBSD identifier never was, drop -FreeBSD
There never was a BSD-3-Clause-FreeBSD SPDX identifier. Replace it
with BSD-3-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix

(cherry picked from commit eb8f887758)
2023-07-25 09:18:00 -06:00
Warner Losh f73b4bf27c spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD
The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix

(cherry picked from commit b61a573019)
2023-07-25 09:15:32 -06:00
Warner Losh caa41f6417 spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix

(cherry picked from commit 4d846d260e)
2023-07-25 09:13:49 -06:00
Koichiro Iwao 3847899470 ifconfig.8: Document limitation of groupname
Approved by:		kp
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D40645

(cherry picked from commit 9aca30d878)
2023-07-11 09:20:03 +09:00
Rick Macklem d2ee65f43d mount_nfs.8: Note a case where the "nconnect" option does not work
The "nconnect" NFS mount option will not work
correctly for servers where the TCP connections
might connect to different NFS clusters that do not
share NFSv4.1/4.2 state information, such as file locks.

This patch adds a sentence to the "nconnect" section
of mount_nfs.8 noting this case.

This is a content change.

(cherry picked from commit 7e53f16baa)
2023-07-01 18:24:51 -07:00
Bjoern A. Zeeb bacbebb16d ifconfig: improve trimming off interface number at end
When trying to auto-load a module, we trim the interface number off
the end.  Currently we stop at the first digit.  For interfaces which
have numbers in the driver name this does not work well.
In the current example ifconfig ath10k0 would load ath(4) instead of
ath10k(4).  For module/interface names like rtw88[0] we never guess
correctly.
To improve for the case we can, start trimming off digits from the
end rather than the front.

Sponsored by:	The FreeBSD Foundation
Reported by:	thierry
Reviewed by:	melifaro, thierry
Differential Revision: https://reviews.freebsd.org/D40137

(cherry picked from commit 2e6756b752)
2023-06-26 09:04:18 +00:00
Bjoern A. Zeeb a3a5f67d39 ifconfig: ifieee80211: print bssid name
In certain setups (e.g., autonomous APs) it is extremly helpful to have
a way to map the BSSIDs to names for both normal status output as well
as the scan list.  This often allows a quicker overview than remembering
(or manually looking up) BSSIDs.
Call ether_ntohost() on the bssid and consult /etc/ethers
and print "(name)" after the bssid for the status output and "(name)"
at the end of the line after the IE list.

Reviewed by:	adrian, cy
Differential Revision: https://reviews.freebsd.org/D39192

(cherry picked from commit e091be417a)
2023-06-26 08:29:30 +00:00
Marko Zec fc17cf7615 Back out fb31ad53c4, which was committed
in error directly to stable/13 instead to main.
2023-06-15 07:18:23 +02:00
Kirk McKusick a4bea5c479 Fix a bug in fsck_ffs(8) triggered by corrupted filesystems.
Reported-by:  Robert Morris
PR:           271414
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit 6a71277c30)
2023-06-07 15:56:12 -07:00
Kirk McKusick 90532db778 Cleanups to fsck_ffs(8).
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit 5267120645)
2023-06-07 15:54:13 -07:00
Kirk McKusick da8749afdc Fix a bug in fsck_ffs(8) triggered by corrupted filesystems.
Reported-by:  Robert Morris
PR:           271383
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit b796bfce48)
2023-06-07 15:48:47 -07:00
Kirk McKusick 3035f98d56 Fix a bug in fsck_ffs(8) triggered by corrupted filesystems.
Reported-by:  Robert Morris
PR:           271378
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit 101a9ac071)
2023-06-07 15:46:53 -07:00
Kirk McKusick fbfbd0638a Fix a bug in fsck_ffs(8) triggered by corrupted filesystems.
The last valid inode in the filesystem is maxino - 1, not maxino.
Thus validity checks should ino < maxino, not ino <= maxino.

Reported-by:  Robert Morris
PR:           271312
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit 11ce203e05)
2023-06-07 15:44:12 -07:00
Kirk McKusick 52f50301aa Correct two bugs in fsck_ffs(8) triggered by corrupted filesystems.
Reported-by:  Robert Morris
PR:           271310
PR:           271354
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit 03a8680202)
2023-06-07 15:40:35 -07:00
Kirk McKusick 77cbed11b2 Do not try to adjust a directory depth when its reconnection is declined.
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 49943856eb)
2023-06-07 15:36:39 -07:00
Kirk McKusick 007322a94c Add the ability to adjust directory depths to background fsck_ffs(8).
Sponsored by: The FreeBSD Foundation

(cherry picked from commit e4a905d1e0)
2023-06-07 15:34:39 -07:00
Konstantin Belousov dcaa24cf30 setkey(8): document NAT-T and NAT-T MTU extensions syntax
(cherry picked from commit cf85818e05)
2023-06-05 11:35:00 +03:00
Konstantin Belousov 447af6361c setkey(8): NAT-T manual configuration support
(cherry picked from commit 2fa1b8617f)
2023-06-05 11:35:00 +03:00
Konstantin Belousov 256d03bc58 setkey(8): extract prefixlen calculation info helper
(cherry picked from commit 2c1296a3c5)
2023-06-05 11:35:00 +03:00
Konstantin Belousov 0957619bf5 setkey(8): ansify parser
(cherry picked from commit bef81bc0ae)
2023-06-05 11:35:00 +03:00
Konstantin Belousov 64d0e990f7 setkey(8): remove redundand returns
(cherry picked from commit 462c3d3cf4)
2023-06-05 11:35:00 +03:00
Chuck Silvers 89bd147dbf ffs: restore backward compatibility of newfs and makefs with older binaries
The previous change to CGSIZE had the unintended side-effect of allowing
newfs and makefs to create file systems that would fail validation when
examined by older commands and kernels, by allowing newfs/makefs to pack
slightly more blocks into a CG than those older binaries think is valid.
Fix this by having newfs/makefs artificially restrict the number of blocks
in a CG to the slightly smaller value that those older binaries will accept.
The validation code will continue to accept the slightly larger value
that the current newfs/makefs (before this change) could create.

Fixes:		0a6e34e950
Reviewed by:	mckusick
MFC after:	3 days
Sponsored by:	Netflix

(cherry picked from commit d464a7698d)
2023-06-04 04:00:22 -07:00
Alexander Motin 3ffa7eff22 nvmecontrol: Fix power subcommand output.
The returned value consists of two fields.  Report them separately.

MFC after:	2 weeks

(cherry picked from commit f409f11bc5)
2023-05-28 20:56:05 -04:00
Marko Zec fb31ad53c4 route.8: mention DXR in FIB_ALGO section
While here, add a sentence describing DPDK DIR24-8 principle of
operation.

MFC after:	7 days
2023-05-27 10:31:42 +02:00
Kirk McKusick 4a3834e31f Fix size differences between architectures of the UFS/FFS CGSIZE macro value.
Reported-by:  Tijl Coosemans
Tested-by:    Tijl Coosemans and Peter Holm
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit 0a6e34e950)
2023-05-26 14:25:50 -07:00
Rick Macklem a3bd034d3d mount_nfs.8: Update man page for the "syskrb5" option
Commit 896516e54a added a new NFS mount option
used for Kerberized NFSv4.1/4.2 mounts. It specifies that
AUTH_SYS be used for state maintenance (also called system)
operations. This allows the mount to be done without the
"gssname" option or a valid Kerberos TGT being held by the
user doing the mount (so it can be specified in fstab(5) for
example).

This is a content change.

(cherry picked from commit 61330e494f)
2023-05-25 18:10:45 -07:00
Kirk McKusick 8e0b31c791 Fix off-by-one error in fsck_ffs(8) chkrange() block-number check.
PR:           271289

(cherry picked from commit b3fe5d9322)
2023-05-19 16:02:21 -07:00
Mateusz Guzik 5188186cd4 newfs: fix up 32-bit compile
(cherry picked from commit a50ef47c0a)
2023-05-19 15:44:49 -07:00
Kirk McKusick 0fc13be847 Additional validity checking in newfs(8).
(cherry picked from commit 62dc21b107)
2023-05-19 15:43:37 -07:00
Kirk McKusick a6916c2bd0 Yet another try to fix printf format conflict.
(cherry picked from commit 2e7797cd9b)
2023-05-19 15:42:12 -07:00
Kirk McKusick 4921003d44 Fix printf format conflict
(cherry picked from commit 6995e6b323)
2023-05-19 15:37:40 -07:00
Kirk McKusick 7ad0e9f1e6 Additional output from dumpfs(8).
(cherry picked from commit 04997e19e2)
2023-05-19 15:36:31 -07:00
Mateusz Piotrowski c33f8c5952 geom.8: Fix typos and wordsmith
MFC after:	3 days

(cherry picked from commit 794f5122bb)
2023-05-12 12:10:59 +02:00
Chuck Silvers db1a4d9c45 fsck_ffs: fix the previous change that skipped pass 5 in some cases
The previous change involved calling check_cgmagic() twice in a row
for the same CG in order to differentiate when the CG was already ok vs.
when the CG was rebuilt, but that doesn't work because the second call
(which was supposed to rebuild the CG) returns 0 (indicating that
the CG was not rebuilt) due to the prevfailcg check causing an early
failure return.  Fix this by moving the rebuild part of check_cgmagic()
out into a separate function which is called by pass1() when it wants to
rebuild a CG.

Fixes: da86e7a20d
Reported by:	pho
Discussed with:	mckusick
Sponsored by:	Netflix

(cherry picked from commit 4064755812)
2023-05-08 10:57:16 -07:00
Kirk McKusick 0c6c748f78 Skip Pass 5 in fsck_ffs(8) when corrupt cylinder groups remain unfixed.
Sponsored by: FreeBSD Foundation

(cherry picked from commit da86e7a20d)
2023-04-29 11:12:12 -07:00
Kirk McKusick b180a0773b Bug fixes for fsck_ffs(8).
Sponsored by: Netflix

(cherry picked from commit 18746531a8)
2023-04-29 11:09:01 -07:00
Kirk McKusick 146ba7a1d6 Add `chdb' command to fsdb(8) to set direct block numbers.
(cherry picked from commit 7636973c68)
2023-04-29 11:04:53 -07:00
Kirk McKusick 427b3d970a Improvement in UFS/FFS directory placement when doing mkdir(2).
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39246

(cherry picked from commit fe5e6e2cc5)
2023-04-29 11:01:47 -07:00
Eugene Grosbein f1c5c9353c ipfw.8: MFC: improve description for interface matching
The manual describes "if*" form only while kernel uses fnmatch(3)
and allows use for more versatile shell-like patterns.
Note that explicitly and provide an example.

(cherry picked from commit 9f5dc374d0)
2023-04-28 12:52:15 +07:00
Gordon Bergling 6b5b4668ce mount_nfs.8: Fix a mandoc warning
- sections out of conventional order: Sh IMPLEMENTATION NOTES

(cherry picked from commit c2a9d23736)
2023-04-21 06:45:36 +02:00
Mina Galić b584a79fa7 veriexec(4): Fix a compiler error
When building WITH_BEARSSL=1 veriexec(4) failes to compile.
So update the function prototype so that veriexec(4)
compiles again.

Reported by:	gbe
Reviewed by:	mjg, gbe
Approved by:	mjg
Pull Request:	https://github.com/freebsd/freebsd-src/pull/657

(cherry picked from commit 7e2af4f90b)
2023-04-14 09:38:38 +02:00