Commit graph

275613 commits

Author SHA1 Message Date
Warner Losh 023fc80ee3 Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d0b2dbfa0e)
2023-08-23 11:43:30 -06:00
Warner Losh 5510f79042 sys: Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in current:
(cherry picked from commit 031beb4e23)
2023-08-23 11:43:27 -06:00
Warner Losh d103702541 Remove $FreeBSD$: one-line .S pattern
Remove /^\s\.(asciz|ident)\s+\"\$FreeBSD\$\".*\n/

Similar commit in main:
(cherry picked from commit b1cfcffa89)
2023-08-23 11:43:27 -06:00
Warner Losh 7398741291 sys: Remove $FreeBSD$: one-line .S pattern
Remove /^\s\.(asciz|ident)\s+\"\$FreeBSD\$\".*\n/

Similar commit in current:
(cherry picked from commit d4bf8003ee)
2023-08-23 11:43:27 -06:00
Warner Losh e63c5c73c1 Remove $FreeBSD$: alt one-line .c pattern
Remove /^\s*__RCSID\("\$FreeBSD\$"\);\n/

Similar commit in main:
(cherry picked from commit c857356409)
2023-08-23 11:43:26 -06:00
Warner Losh 9a298a1247 Remove $FreeBSD$: alt two-line .c pattern
Remove /^\s*__RCSID\("\$FreeBSD\$"\);\n\n/

Similar commit in main:
(cherry picked from commit da5432eda8)
2023-08-23 11:43:26 -06:00
Warner Losh 3d497e17eb Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in main:
(cherry picked from commit 1d386b48a5)
2023-08-23 11:43:26 -06:00
Warner Losh 3bc8099697 sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/

Similar commit in current:
(cherry picked from commit 685dc743dc)
2023-08-23 11:43:25 -06:00
Warner Losh 0d349c19be Remove $FreeBSD$: two-line .c pattern
Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/

Similar commit in main:
(cherry picked from commit e5d258c9e5)
2023-08-23 11:43:23 -06:00
Warner Losh ecf688348b sys: Remove $FreeBSD$: two-line .c pattern
Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/

Similar commit in current:
(cherry picked from commit dfc016587a)
2023-08-23 11:43:23 -06:00
Warner Losh 8ad303d68c Remove $FreeBSD$: one-line .c comment pattern
Remove /^/[*/]\s*\$FreeBSD\$.*\n/

Similar commit in main:
(cherry picked from commit 2a63c3be15)
2023-08-23 11:43:23 -06:00
Warner Losh 4fbf14e22d sys: Remove $FreeBSD$: one-line .c comment pattern
Remove /^/[*/]\s*\$FreeBSD\$.*\n/

Similar commit in current:
(cherry picked from commit 71625ec9ad)
2023-08-23 11:43:22 -06:00
Warner Losh 34041aac83 Remove $FreeBSD$: one-line .h pattern
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit 42b388439b)
2023-08-23 11:43:22 -06:00
Warner Losh 4b40a16f0d sys: Remove $FreeBSD$: one-line .h pattern
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/

Similar commit in current:
(cherry picked from commit 2ff63af9b8)
2023-08-23 11:43:22 -06:00
Warner Losh 17da660ad5 Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

Similar commit in main:
(cherry picked from commit b3e7694832)
2023-08-23 11:43:21 -06:00
Warner Losh f8167e0404 sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

Similar commit in current:
(cherry picked from commit 95ee2897e9)
2023-08-23 11:43:20 -06:00
Warner Losh f1b1fb19f0 Remove $FreeBSD$: one-line m4 tag
Remove /^dnl\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d54a7d3373)
2023-08-23 11:43:19 -06:00
Warner Losh da268f445c sys: Remove $FreeBSD$: sound driver version
Remove /SND_DECLARE_FILE\("\$FreeBSD\$"\);/

Similar commit in current:
(cherry picked from commit )
2023-08-23 11:43:19 -06:00
Warner Losh e39c9231e9 powerpc/ata: Remove non-standard __FBSDID()
This one has an extra '* ' at the front, so isn't picked up by the
scripts

Sponsored by:		Netflix

(cherry picked from commit 77a999ef2f)
2023-08-23 11:43:19 -06:00
Warner Losh 65dd4fceb3 glob.h: Remove $FreeBSD$
This likely documented where this file was copied, but the $FreeBSD$
tag was lost as soon as it was committed. Just remove it. Also remove
the one that looked like it was intended to track versions. That will
simplify the MFC.

Sponsored by:		Netflix

(cherry picked from commit c251557621)
2023-08-23 11:43:19 -06:00
Warner Losh b99859430c mpool: Remove $FreeBSD$ comment
Remove non-standard $FreeBSD$ comment. It's not useful

Sponsored by:		Netflix

(cherry picked from commit be6151e43c)
2023-08-23 11:43:18 -06:00
Warner Losh 94fc46aae3 cursor.bdf: Remove $FreeBSD$ tag
Remove $FreeBSD$ tag COMMENT

Sponsored by:		Netflix

(cherry picked from commit 19fae0f660)
2023-08-23 11:43:18 -06:00
Warner Losh 470fa20479 ps3: Don't add $FreeBSD$ to generated file
Sponsored by:		Netflix

(cherry picked from commit fba400ef51)
2023-08-23 11:43:18 -06:00
Warner Losh 58bc4f0c2f generate-hfs.sh: don't embed $FreeBSD$ in generated code
Sponsored by:		Netflix

(cherry picked from commit bed13771a3)
2023-08-23 11:43:18 -06:00
Warner Losh e63ec086a7 vnode_if: Don't add $FreeBSD$ to the output
Sponsored by:		Netflix

(cherry picked from commit 750a49b606)
2023-08-23 11:43:18 -06:00
Warner Losh 2fd33c5001 fw_stub: Don't add $FreeBSD$ to generated file
Sponsored by:		Netflix

(cherry picked from commit fa12e8fe51)
2023-08-23 11:43:18 -06:00
Warner Losh 5b375162de pccard: Don't include version information.
$FreeBSD$ is about to be removed, so don't include the next line.

Sponsored by:		Netflix
2023-08-23 11:43:18 -06:00
Warner Losh 5197a1c132 miidevs2h: Ignore the first line
The first line hasn't contained version information in years. Ignore it
entirely.

Sponsored by:		Netflix

(cherry picked from commit 021c4fa6b0)
2023-08-23 11:43:18 -06:00
Warner Losh 1ddda65e6f usbdevs2h: Ignore First Line and stop generating $FreeBSD$
Just ignore the first line of the usbdevs file. And stop recording what
the usbdevs* files were generated from. It's said '$FreeBSD$' for years
now...

Sponsored by:		Netflix

(cherry picked from commit 94b73d30ef)
2023-08-23 11:43:17 -06:00
Warner Losh c32a5d6e6e systat: Remove obsolete copyright string
This is unused, so remove it. We don't put a copyright string in most of
the other binaries. This one doesn't need one either.

Sponsored by:		Netflix

(cherry picked from commit bf46512a54)
2023-08-23 11:43:17 -06:00
Dmitry Chagin cb1883b032 linux(4): Fix linker warning about undefined vdso symbols
Pointed out by:		bz
MFC after:		3 days

(cherry picked from commit a129642ced)
2023-08-22 12:18:48 +03:00
Dmitry Chagin 74614fa93a linux(4): Fix MSG_CTRUNC handling in recvmsg()
The MSG_CTRUNC flag of the msg_flags member of the message header is
set uppon successful completition if the control data was truncated.
Upon return from a successful call msg_controllen should contain the
length of the control message sequence.

Fixes:		0eda2cea
MFC after:	1 week

(cherry picked from commit 2467ccddc0)
2023-08-21 13:39:05 +03:00
Dmitry Chagin 1b1cf17660 linux(4): Add a comment explaining udata freeing on error
MFC after:	1 week

(cherry picked from commit 9d0c9b6d6a)
2023-08-21 13:39:05 +03:00
Dmitry Chagin b67a012e7c linux(4): Refactor recvmsg
As the amount of handled anxiliary messages grows move they handlers
into a separate functions.

MFC after:	1 week

(cherry picked from commit de20eb26d0)
2023-08-21 13:39:04 +03:00
Dmitry Chagin d238be002e linux(4): Skip unsupported anxiliary message
Instead of returning error, skip unsupported anxiliary messages and
fail if no one handled.

MFC after:	1 week

(cherry picked from commit bbaa5523c0)
2023-08-21 13:39:04 +03:00
Dmitry Chagin 2b5f7b77a8 linux(4): Improve readability of recvmsg control buffer copyout code
MFC after:	1 week

(cherry picked from commit a21238d843)
2023-08-21 13:39:04 +03:00
Dmitry Chagin 57b34aaee2 linux(4): Drop bogus empty line in linux_socket.c
MFC after:	1 week

(cherry picked from commit 43c3beb741)
2023-08-21 13:39:04 +03:00
Dmitry Chagin 1cb6dc1627 linux(4): Fix control message size calculation again
It looks Linux recvmsg allows msg_controllen size less then CMSG_SPACE
buffer, at least for case with one cmsghdr. Glibc misc/tst-scm_rights
test succed on Ubuntu 23.04

Fixes:	 	67116c69 "linux(4): Fix control message size calculation"
MFC after:	1 week

(cherry picked from commit 7d561928e6)
2023-08-21 13:39:04 +03:00
Ed Maste 9a92ce22df pci: return 0 for pci_remap_intr_method MSI-X non-error case
When remapping a MSI-X vector, we would always return ENOENT, even if
successful.  This didn't really matter, as the sole caller of
BUS_REMAP_INTR also didn't check for errors.

Return 0 if there's no error, so that we can start handling (or at least
warning about) actual failures.

Reviewed by:	jhb
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D41449

(cherry picked from commit 43e545e8e0)
2023-08-20 20:35:45 -04:00
Kirk McKusick 47048a611d Set UFS/FFS file type to snapshot before changing its block pointers.
Reported-by:  Peter Holm
Tested-by:    Peter Holm
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit 220427da0e)
2023-08-19 21:27:38 -07:00
Kirk McKusick 817bac9a63 Optimize operations on UFS/FFS filesystems with bad cylinder group(s).
Reported-by:  Peter Holm
Tested-by:    Peter Holm
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit c3046779b2)
2023-08-19 21:27:38 -07:00
Kirk McKusick 7f65ff3d88 Cleanups to UFS/FFS ffs_checkblk().
No functional change intended.

Sponsored-by: The FreeBSD Foundation

(cherry picked from commit 677023529d)
2023-08-19 21:27:38 -07:00
Kirk McKusick c1854e43b3 Clean up and document UFS/FFS error returns.
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit 886fd36e1a)
2023-08-19 21:27:38 -07:00
Kirk McKusick 2d20a3178a Remove a partial UFS/FFS snapshot if it fails to build successfully.
Reported-by:  Peter Holm
Tested-by:    Peter Holm
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit c52b5d16cc)
2023-08-19 21:27:38 -07:00
Kirk McKusick a11c97bb79 Rate limit kernel UFS/FFS cylinder group check-hash error messages.
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit 6dff61a1d1)
2023-08-19 21:27:38 -07:00
Kirk McKusick 3085e04892 Handle UFS/FFS file deletion from cylinder groups with check-hash failure.
Reported-by:  Peter Holm
Tested-by:    Peter Holm
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit d4a8f5bf13)
2023-08-19 21:27:37 -07:00
Kirk McKusick 6412782800 Support background fsck_ffs(8) on filesystems using journaled soft updates
Tested-by:    Peter Holm
Sponsored-by: The FreeBSD Foundation

(cherry picked from commit 344b5bf825)
2023-08-19 21:27:37 -07:00
Kirk McKusick 2e025e4107 Update newfs(8) and tunefs(8) manual pages.
Sponsored-by: The FreeBSD Foundation
(cherry picked from commit 4ce2a2db41)
2023-08-19 21:27:37 -07:00
Eugene Grosbein 9397112d89 tftpd: fix wrong conflict resolution
This is direct commit to stable/13 after wrong previous one.

Fixes:	b71dde1aeb
2023-08-19 13:43:08 +07:00
Eugene Grosbein b71dde1aeb tftpd: introduce new option -S
Historically, tftpd disallowed write requests to existing files
that are not publicly writable. Such requirement is questionable at least.
Let us make it possible to run tftpd in chrooted environment
keeping files non-world writable.

New option -S enables write requests to existing files
for chrooted run according to generic file permissions.
It is ignored unless tftpd runs chrooted.

Requested by:	marck
Differential:	https://reviews.freebsd.org/D41090 (based on)

(cherry picked from commit 273a307d0b)
(cherry picked from commit 03c2616dc5)
2023-08-19 13:35:58 +07:00