| #
a2f08d0d
|
| 04-Sep-2025 |
Kyle Evans <kevans@FreeBSD.org> |
pseudofs: return errors from pfs_create_*()
In D52038, we kind of guess at the reason that pfs_create_dir() failed, which isn't great: it could be EEXISTS, or it could even be ENOMEM.
Change the pf
pseudofs: return errors from pfs_create_*()
In D52038, we kind of guess at the reason that pfs_create_dir() failed, which isn't great: it could be EEXISTS, or it could even be ENOMEM.
Change the pfs_create_*() interfaces to return an error and use a double pointer to return the new node as requested. Outside of the changes in sys/fs/pseudofs, this diff is the result of running the added coccinelle script against in-tree pseudofs and fixing all of the style(9) violations that spatch added.
We set *opn to NULL in the failure cases to avoid breaking callers that did actually error-check their results, since the cocci patch does not attempt to handle that in any way.
Reviewed by: des (previous version), kib Differential Revision: https://reviews.freebsd.org/D52157
show more ...
|
| #
b75fa3a2
|
| 03-Feb-2024 |
Ricardo Branco <rbranco@suse.de> |
procfs: Add self & exe symlinks like NetBSD does
NetBSD calls "curproc" "self" and "exe" "file" for proc. Reduce gratuitous differnces by including them as well.
Reviewed by: imp Pull Request: http
procfs: Add self & exe symlinks like NetBSD does
NetBSD calls "curproc" "self" and "exe" "file" for proc. Reduce gratuitous differnces by including them as well.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/976
show more ...
|
| #
29363fb4
|
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl s
sys: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
| #
95ee2897
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
15bd9fa3
|
| 04-Nov-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
procfs_doprocfile(): simplify
Now that proc_get_binpath() does not return NULL in fullpath on success, directly use sbuf_cat() over the value.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
|
| #
e5248548
|
| 29-Oct-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
procfs: return right hardlink from /proc/curproc/file
Use proc_get_binpath() to get the hardlink right.
PR: 248184 Reviewed by: emaste, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week
procfs: return right hardlink from /proc/curproc/file
Use proc_get_binpath() to get the hardlink right.
PR: 248184 Reviewed by: emaste, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32738
show more ...
|
| #
586ee69f
|
| 01-Sep-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
fs: clean up empty lines in .c and .h files
|
| #
e2515283
|
| 27-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
| #
feabaaf9
|
| 24-Aug-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
cache: drop the always curthread argument from reverse lookup routines
Note VOP_VPTOCNP keeps getting it as temporary compatibility for zfs.
Tested by: pho
|
| #
59838c1a
|
| 01-Apr-2020 |
John Baldwin <jhb@FreeBSD.org> |
Retire procfs-based process debugging.
Modern debuggers and process tracers use ptrace() rather than procfs for debugging. ptrace() has a supserset of functionality available via procfs and new deb
Retire procfs-based process debugging.
Modern debuggers and process tracers use ptrace() rather than procfs for debugging. ptrace() has a supserset of functionality available via procfs and new debugging features are only added to ptrace(). While the two debugging services share some fields in struct proc, they each use dedicated fields and separate code. This results in extra complexity to support a feature that hasn't been enabled in the default install for several years.
PR: 244939 (exp-run) Reviewed by: kib, mjg (earlier version) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D23837
show more ...
|
| #
a2f08d0d
|
| 04-Sep-2025 |
Kyle Evans <kevans@FreeBSD.org> |
pseudofs: return errors from pfs_create_*()
In D52038, we kind of guess at the reason that pfs_create_dir() failed, which isn't great: it could be EEXISTS, or it could even be ENOMEM.
Change the pf
pseudofs: return errors from pfs_create_*()
In D52038, we kind of guess at the reason that pfs_create_dir() failed, which isn't great: it could be EEXISTS, or it could even be ENOMEM.
Change the pfs_create_*() interfaces to return an error and use a double pointer to return the new node as requested. Outside of the changes in sys/fs/pseudofs, this diff is the result of running the added coccinelle script against in-tree pseudofs and fixing all of the style(9) violations that spatch added.
We set *opn to NULL in the failure cases to avoid breaking callers that did actually error-check their results, since the cocci patch does not attempt to handle that in any way.
Reviewed by: des (previous version), kib Differential Revision: https://reviews.freebsd.org/D52157
show more ...
|
| #
b75fa3a2
|
| 03-Feb-2024 |
Ricardo Branco <rbranco@suse.de> |
procfs: Add self & exe symlinks like NetBSD does
NetBSD calls "curproc" "self" and "exe" "file" for proc. Reduce gratuitous differnces by including them as well.
Reviewed by: imp Pull Request: http
procfs: Add self & exe symlinks like NetBSD does
NetBSD calls "curproc" "self" and "exe" "file" for proc. Reduce gratuitous differnces by including them as well.
Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/976
show more ...
|
| #
29363fb4
|
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl s
sys: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
| #
95ee2897
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: two-line .h pattern
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
| #
15bd9fa3
|
| 04-Nov-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
procfs_doprocfile(): simplify
Now that proc_get_binpath() does not return NULL in fullpath on success, directly use sbuf_cat() over the value.
Sponsored by: The FreeBSD Foundation MFC after: 3 days
|
| #
e5248548
|
| 29-Oct-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
procfs: return right hardlink from /proc/curproc/file
Use proc_get_binpath() to get the hardlink right.
PR: 248184 Reviewed by: emaste, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week
procfs: return right hardlink from /proc/curproc/file
Use proc_get_binpath() to get the hardlink right.
PR: 248184 Reviewed by: emaste, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D32738
show more ...
|
| #
586ee69f
|
| 01-Sep-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
fs: clean up empty lines in .c and .h files
|
| #
e2515283
|
| 27-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
| #
feabaaf9
|
| 24-Aug-2020 |
Mateusz Guzik <mjg@FreeBSD.org> |
cache: drop the always curthread argument from reverse lookup routines
Note VOP_VPTOCNP keeps getting it as temporary compatibility for zfs.
Tested by: pho
|
| #
59838c1a
|
| 01-Apr-2020 |
John Baldwin <jhb@FreeBSD.org> |
Retire procfs-based process debugging.
Modern debuggers and process tracers use ptrace() rather than procfs for debugging. ptrace() has a supserset of functionality available via procfs and new deb
Retire procfs-based process debugging.
Modern debuggers and process tracers use ptrace() rather than procfs for debugging. ptrace() has a supserset of functionality available via procfs and new debugging features are only added to ptrace(). While the two debugging services share some fields in struct proc, they each use dedicated fields and separate code. This results in extra complexity to support a feature that hasn't been enabled in the default install for several years.
PR: 244939 (exp-run) Reviewed by: kib, mjg (earlier version) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D23837
show more ...
|
| #
0e5c6bd4
|
| 04-May-2018 |
Jamie Gritton <jamie@FreeBSD.org> |
Make it easier for filesystems to count themselves as jail-enabled, by doing most of the work in a new function prison_add_vfs in kern_jail.c Now a jail-enabled filesystem need only mark itself with
Make it easier for filesystems to count themselves as jail-enabled, by doing most of the work in a new function prison_add_vfs in kern_jail.c Now a jail-enabled filesystem need only mark itself with VFCF_JAIL, and the rest is taken care of. This includes adding a jail parameter like allow.mount.foofs, and a sysctl like security.jail.mount_foofs_allowed. Both of these used to be a static list of known filesystems, with predefined permission bits.
Reviewed by: kib Differential Revision: D14681
show more ...
|
| #
e07db022
|
| 24-Apr-2018 |
Eitan Adler <eadler@FreeBSD.org> |
[procfs] Split procfs_attr into multiple functions
Reviewed by: des, kib Discussed with: mmacy Differential Revision: https://reviews.freebsd.org/D15150
|
| #
4b49587c
|
| 06-Jan-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r327341 through r327623.
|
| #
9ae9a3d4
|
| 05-Jan-2018 |
John Baldwin <jhb@FreeBSD.org> |
Correct comment. procfs_doprocfile implements 'file', not 'self'.
|
| #
937d37fc
|
| 19-Nov-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r325842 through r325998.
|