Re: [PATCH] fuse: reject fuse_notify() pagecache ops on directories
From: Miklos Szeredi
Date: Tue May 19 2026 - 10:27:11 EST
On Tue, 19 May 2026 at 16:12, Jann Horn <jannh@xxxxxxxxxx> wrote:
> Should it be `!(S_ISREG() || S_ISBLK())` ?
> I think block devices are supposed to act roughly like regular files
> in terms of pagecache, but IDK how that works in the context of FUSE.
> Let me know which way you prefer and I'll send a v2.
Handling I/O on block devices (or any special files for that matter)
is completely out of fuse's control.
So definitely shouldn't allow manipulating the cache for those, though
I don't think it would actually do that since in the case of block
devices the page cache resides in struct block_device, not on the fs's
device node.
Thanks,
Miklos