freebsd-dev/sys/fs/fuse
Conrad Meyer 852c303b61 copystr(9): Move to deprecate (attempt #2)
This reapplies logical r360944 and r360946 (reverting r360955), with fixed
copystr() stand-in replacement macro.  Eventually the goal is to convert
consumers and kill the macro, but for a first step it helps if the macro is
correct.

Prior commit message:

Unlike the other copy*() functions, it does not serve to copy from one
address space to another or protect against potential faults.  It's just
an older incarnation of the now-more-common strlcpy().

Add a coccinelle script to tools/ which can be used to mechanically
convert existing instances where replacement with strlcpy is trivial.
In the two cases which matched, fuse_vfsops.c and union_vfsops.c, the
code was further refactored manually to simplify.

Replace the declaration of copystr() in systm.h with a small macro
wrapper around strlcpy (with correction from brooks@ -- thanks).

Remove N redundant MI implementations of copystr.  For MIPS, this
entailed inlining the assembler copystr into the only consumer,
copyinstr, and making the latter a leaf function.

Reviewed by:		jhb (earlier version)
Discussed with:		brooks (thanks!)
Differential Revision:	https://reviews.freebsd.org/D24672
2020-05-25 16:40:48 +00:00
..
fuse_device.c
fuse_file.c fusefs: remove superfluous counter_u64_zero 2019-08-06 00:50:25 +00:00
fuse_file.h
fuse_internal.c Fix issues with FUSE_ACCESS when default_permissions is disabled 2020-05-22 18:11:17 +00:00
fuse_internal.h fusefs: fix the build after r350446 2019-07-31 21:48:35 +00:00
fuse_io.c vfs: introduce v_irflag and make v_type smaller 2019-12-08 21:30:04 +00:00
fuse_io.h
fuse_ipc.c fusefs: remove superfluous counter_u64_zero 2019-08-06 00:50:25 +00:00
fuse_ipc.h fusefs: add a intr/nointr mount option 2019-07-18 17:55:13 +00:00
fuse_kernel.h
fuse_main.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (8 of many) 2020-02-24 10:33:51 +00:00
fuse_node.c fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
fuse_node.h fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
fuse_vfsops.c copystr(9): Move to deprecate (attempt #2) 2020-05-25 16:40:48 +00:00
fuse_vnops.c Fix issues with FUSE_ACCESS when default_permissions is disabled 2020-05-22 18:11:17 +00:00
fuse.h