summaryrefslogtreecommitdiff
path: root/hurd/translator
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-10-03 15:19:00 +0200
committerThomas Schwinge <tschwinge@gnu.org>2007-10-03 15:30:14 +0200
commitcb158c34a866326658f54011e8fe77e0ef1bce23 (patch)
tree2cbfab0dccb9c2c04a871955485d2afcf745bce5 /hurd/translator
parent342cc08ad50562f13ec16c52cb7b7579caf2ca47 (diff)
Move the examples from `hurd/libstore' into `hurd/translator/storeio' and apply formatting foo to all of the text.
Diffstat (limited to 'hurd/translator')
-rw-r--r--hurd/translator/storeio.mdwn17
1 files changed, 17 insertions, 0 deletions
diff --git a/hurd/translator/storeio.mdwn b/hurd/translator/storeio.mdwn
index d8c6db6c..4493fad1 100644
--- a/hurd/translator/storeio.mdwn
+++ b/hurd/translator/storeio.mdwn
@@ -9,3 +9,20 @@ is included in the section entitled
`storeio` is a *translator for devices and other stores*.
It relies heavily on [[libstore]].
+
+
+# Examples
+
+You can make a file's content available as some block device (where `foo` is
+the name of the file to map):
+
+ settrans -ca node /hurd/storeio -T file foo
+
+You can even `ungzip` files on the fly (`bunzip2` is available as well):
+
+ settrans -ca node /hurd/storeio -T gunzip foo.gz
+
+You can use the *typed store*, to create filter chains (of course this example
+is kind of useless since you could use the `gunzip` store directly):
+
+ settrans -ca node /hurd/storeio -T type gunzip:file:foo.gz