Self-cleaning RAM filesystem
C Shell Python Makefile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pkg
test
LICENSE.GPLv3+
LICENSE.ISC
Makefile
README.md
TESTERS
deferred.c
deferred.h
inode.c
inode.h
os.h
runfs.c
runfs.h
util.h
wq.c
wq.h

README.md

runfs

Runfs is a self-cleaning in-RAM filesystem where data shares fate with the process that creates it. Once the process exits, the files it created in runfs are automatically unlinked, as well as its directories and all of their descendents.

Example Use-Cases

  • Store daemon PID files while guaranteeing that they always disappear when the daemon stops, even if it crashes.
  • Give cryptographic tools the use of the filesystem while guaranteeing that sensitive data becomes inaccessible once the tool exits.
  • Give your favorite build system a place to store its subprocess' temporary files while ensuring that a failed or interrupted build always starts clean.

Dependencies

Building

To build:

    $ make

Installing

To install:

    $ sudo make install

By default, runfs will be installed to /usr/local/bin. You may set PREFIX to control the installation directory, and DESTDIR to set an alternate installation root.

Running

To run:

    $ ./runfs /path/to/mountpoint

It takes FUSE arguments like -f for "foreground", etc. See fuse(8).