Re: [PATCH 1/6] fs: Add flag to file_system_type to indicate content is generated

From
Greg KH <gregkh@linuxfoundation.org>
Date
2021-02-12 07:48:55
Also in
lkml
Reply to
Nicolas Boichat, 2021-02-12
On Fri, Feb 12, 2021 at 12:44:00PM +0800, Nicolas Boichat wrote:
Filesystems such as procfs and sysfs generate their content at
runtime. This implies the file sizes do not usually match the
amount of data that can be read from the file, and that seeking
may not work as intended.

This will be useful to disallow copy_file_range with input files
from such filesystems.

Signed-off-by: Nicolas Boichat <redacted>
---
I first thought of adding a new field to struct file_operations,
but that doesn't quite scale as every single file creation
operation would need to be modified.
Even so, you missed a load of filesystems in the kernel with this patch
series, what makes the ones you did mark here different from the
"internal" filesystems that you did not?

This feels wrong, why is userspace suddenly breaking?  What changed in
the kernel that caused this?  Procfs has been around for a _very_ long
time :)

thanks,

greg k-h
Thread (29 messages) 29 messages, 7 authors, last reply 2021-02-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help