summaryrefslogtreecommitdiff
path: root/hurd/translator/tmpfs.mdwn
blob: 4db6542b0e8d6cb1b7f66720d209379151db5499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[[!meta copyright="Copyright © 2007, 2008, 2009, 2011, 2013 Free Software
Foundation, Inc."]]

[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts.  A copy of the license
is included in the section entitled [[GNU Free Documentation
License|/fdl]]."]]"""]]

`tmpfs` is a file system server for temporary data storage without using a real
(permanent) [[backing_store]].

It is based on [[libdiskfs]].

Even though there are other possibilities of creating a
[[libstore/examples/ramdisk]] and running a regular, for example, [[`ext2` file
system|ext2fs]] on it, having a real `tmpfs` is better, as it need not deal
with the additional block-level indirection layer that `ext2` (or any other
disk-based file system) imposes.

`tmpfs` generally works.  See the [[discussion]] sub-pages for the
past and current issues.  There is a [[!FF_project 271]][[!tag
bounty]] on this task.

## How to use tmpfs

    $ settrans -ac tmp /hurd/tmpfs 1MB
    $ cd tmp
    $ touch file
    $ cat file

    $ echo "tmpfs rocks!" > ./file
    $ cat file
      tmpfs rocks!
    $