File: example.rst

package info (click to toggle)
pyfuse3 3.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,776 kB
  • sloc: javascript: 16,150; python: 2,822; ansic: 363; sh: 27; makefile: 15
file content (37 lines) | stat: -rw-r--r-- 809 bytes parent folder | download | duplicates (6)
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
.. _example file system:

======================
 Example File Systems
======================

pyfuse3 comes with several example file systems in the
:file:`examples` directory of the release tarball. For completeness,
these examples are also included here.

Single-file, Read-only File System
==================================

(shipped as :file:`examples/lltest.py`)

.. literalinclude:: ../examples/hello.py
   :linenos:
   :language: python

In-memory File System
=====================

(shipped as :file:`examples/tmpfs.py`)

.. literalinclude:: ../examples/tmpfs.py
   :linenos:
   :language: python


Passthrough / Overlay File System
=================================

(shipped as :file:`examples/passthroughfs.py`)

.. literalinclude:: ../examples/passthroughfs.py
   :linenos:
   :language: python