nullfsvfs icon indicating copy to clipboard operation
nullfsvfs copied to clipboard

opening files with o_direct fails on kernel versions >= 5.15

Open abbbi opened this issue 3 years ago • 0 comments

On kernels >= 5.15 module uses ram_aops instead of nullfs_aops structure:

https://github.com/abbbi/nullfsvfs/blob/master/nullfs.c#L342

which does not expose noop direct_io (notably becuase O_DIRECT does not make sense on a FS with memory backend). Newer kenerl versions do not expose simple_readpage etc.. so the only way would be to redefine them, not sure if thats worth the hassle.

abbbi avatar Sep 24 '22 18:09 abbbi