From cb158c34a866326658f54011e8fe77e0ef1bce23 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 3 Oct 2007 15:19:00 +0200 Subject: Move the examples from `hurd/libstore' into `hurd/translator/storeio' and apply formatting foo to all of the text. --- hurd/translator/storeio.mdwn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'hurd/translator') 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 -- cgit v1.2.3