summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorjbranso@dismail.de <jbranso@dismail.de>2024-01-14 21:33:46 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-01-15 20:02:30 +0100
commit9caea6e1b74471c20dcca08efe0534df3f71b0dc (patch)
treed5e9692aaea78db648168d79ffdc8ff06ed06689 /hurd
parent99f17f532f1ed1322f93ea1dd495e7d332ec4926 (diff)
edits to the tmpfs page
* hurd/translator/tmpfs.mdwn: removed "tmpfs requires root permissions", and I added a short tmpfs example. Message-ID: <20240115023446.6431-4-jbranso@dismail.de>
Diffstat (limited to 'hurd')
-rw-r--r--hurd/translator/tmpfs.mdwn18
1 files changed, 15 insertions, 3 deletions
diff --git a/hurd/translator/tmpfs.mdwn b/hurd/translator/tmpfs.mdwn
index 3d5cb74e..4db6542b 100644
--- a/hurd/translator/tmpfs.mdwn
+++ b/hurd/translator/tmpfs.mdwn
@@ -20,6 +20,18 @@ 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, although it requires root permissions for file content;
-see the [[discussion]] sub-pages for the past and current issues.
-There is a [[!FF_project 271]][[!tag bounty]] on this task.
+`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!
+ $ \ No newline at end of file