nullfs: add an empty immutable regular file

Add nullfs_new_file() to allocate an empty immutable regular file on a
nullfs instance as a dentry of its own. It is never hashed under the
root and so can't be found by lookup. Reads return nothing, changes are
refused, file locks, leases and delegations are refused as.

Link: https://patch.msgid.link/20261002-work-mount-cover-v1-1-232a8f52b43c@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2026-10-02 16:14:27 +02:00
commit 54867884fe
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
3 changed files with 114 additions and 0 deletions