Skip to content

Is “tmpdir support” feature on the way? #1032

@fpemud

Description

@fpemud

From bcachefs roadmap:

tmpdir support
Add a directory option for using it as a tmpdir - the contents will be deleted on every mount.
Since the contents won't be needed after an unclean shutdown, there's no need for fsync() to do anything - this option will also turn > fsync() into a noop, and without the fsync buffered IO will only be flushed on memory reclaim - meaning, tmpdir directories should perform just as well as a tmpfs.

This is a very appealing feature.
With it, we could eliminate the need for the size= parameter when mounting tmpfs and effectively have an unlimited-size tmpfs backed by disk.
The size limit of tmpfs has always been an annoyance.

Is this feature currently under development? I'm very keen on this functionality and would be happy to help test patches if needed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions