Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.105
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
python3-llfuse /
html /
Delete
Unzip
Name
Size
Permission
Date
Action
.doctrees
[ DIR ]
drwxr-xr-x
2025-10-07 06:01
_sources
[ DIR ]
drwxr-xr-x
2025-10-07 06:01
_static
[ DIR ]
drwxr-xr-x
2025-10-07 06:01
about.html
7
KB
-rw-r--r--
2022-05-31 15:21
changes.html
29.98
KB
-rw-r--r--
2022-05-31 15:21
data.html
21.79
KB
-rw-r--r--
2022-05-31 15:21
example.html
178.83
KB
-rw-r--r--
2022-05-31 15:21
fuse_api.html
16.54
KB
-rw-r--r--
2022-05-31 15:21
general.html
12.63
KB
-rw-r--r--
2022-05-31 15:21
genindex.html
18.15
KB
-rw-r--r--
2022-05-31 15:21
gotchas.html
8.43
KB
-rw-r--r--
2022-05-31 15:21
index.html
6.37
KB
-rw-r--r--
2022-05-31 15:21
install.html
9.64
KB
-rw-r--r--
2022-05-31 15:21
lock.html
11.52
KB
-rw-r--r--
2022-05-31 15:21
objects.inv
1.08
KB
-rw-r--r--
2022-05-31 15:21
operations.html
56.18
KB
-rw-r--r--
2022-05-31 15:21
py-modindex.html
4.61
KB
-rw-r--r--
2022-05-31 15:21
search.html
4.41
KB
-rw-r--r--
2022-05-31 15:21
searchindex.js
17.98
KB
-rw-r--r--
2022-05-31 15:21
util.html
11.41
KB
-rw-r--r--
2022-05-31 15:21
Save
Rename
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>FUSE API Functions — Python-LLFUSE 1.4.2 documentation</title> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="_static/classic.css" type="text/css" /> <script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script> <script src="_static/jquery.js"></script> <script src="_static/underscore.js"></script> <script src="_static/doctools.js"></script> <link rel="author" title="About these documents" href="about.html" /> <link rel="index" title="Index" href="genindex.html" /> <link rel="search" title="Search" href="search.html" /> <link rel="next" title="Data Structures" href="data.html" /> <link rel="prev" title="General Information" href="general.html" /> </head><body> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="data.html" title="Data Structures" accesskey="N">next</a> |</li> <li class="right" > <a href="general.html" title="General Information" accesskey="P">previous</a> |</li> <li class="nav-item nav-item-0"><a href="index.html">Python-LLFUSE 1.4.2 documentation</a> »</li> <li class="nav-item nav-item-this"><a href="">FUSE API Functions</a></li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="fuse-api-functions"> <h1>FUSE API Functions<a class="headerlink" href="#fuse-api-functions" title="Permalink to this headline">¶</a></h1> <dl class="py function"> <dt id="llfuse.init"> <code class="sig-prename descclassname">llfuse.</code><code class="sig-name descname">init</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">ops</span></em>, <em class="sig-param"><span class="n">mountpoint</span></em>, <em class="sig-param"><span class="n">options</span><span class="o">=</span><span class="default_value">default_options</span></em><span class="sig-paren">)</span><a class="headerlink" href="#llfuse.init" title="Permalink to this definition">¶</a></dt> <dd><p>Initialize and mount FUSE file system</p> <p><em>ops</em> has to be an instance of the <a class="reference internal" href="operations.html#llfuse.Operations" title="llfuse.Operations"><code class="xref py py-obj docutils literal notranslate"><span class="pre">Operations</span></code></a> class (or another class defining the same methods).</p> <p><em>args</em> has to be a set of strings. <a class="reference internal" href="data.html#llfuse.default_options" title="llfuse.default_options"><code class="xref py py-obj docutils literal notranslate"><span class="pre">default_options</span></code></a> provides some reasonable defaults. It is recommended to use these options as a basis and add or remove options as necessary. For example:</p> <div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">my_opts</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">llfuse</span><span class="o">.</span><span class="n">default_options</span><span class="p">)</span> <span class="n">my_opts</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="s1">'allow_other'</span><span class="p">)</span> <span class="n">my_opts</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="s1">'default_permissions'</span><span class="p">)</span> <span class="n">llfuse</span><span class="o">.</span><span class="n">init</span><span class="p">(</span><span class="n">ops</span><span class="p">,</span> <span class="n">mountpoint</span><span class="p">,</span> <span class="n">my_opts</span><span class="p">)</span> </pre></div> </div> <p>Valid options are listed under <code class="docutils literal notranslate"><span class="pre">struct</span> <span class="pre">fuse_opt</span> <span class="pre">fuse_mount_opts[]</span></code> (<a class="reference external" href="https://github.com/libfuse/libfuse/blob/master/lib/mount.c#L82">mount.c:82</a>) and <code class="docutils literal notranslate"><span class="pre">struct</span> <span class="pre">fuse_opt</span> <span class="pre">fuse_ll_opts[]</span></code> (<a class="reference external" href="https://github.com/libfuse/libfuse/blob/master/lib/fuse_lowlevel.c#L2626">fuse_lowlevel_c:2626</a>).</p> </dd></dl> <dl class="py function"> <dt id="llfuse.main"> <code class="sig-prename descclassname">llfuse.</code><code class="sig-name descname">main</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">workers</span><span class="o">=</span><span class="default_value">None</span></em>, <em class="sig-param"><span class="n">handle_signals</span><span class="o">=</span><span class="default_value">True</span></em><span class="sig-paren">)</span><a class="headerlink" href="#llfuse.main" title="Permalink to this definition">¶</a></dt> <dd><p>Run FUSE main loop</p> <p><em>workers</em> specifies the number of threads that will process requests concurrently. If <em>workers</em> is <a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a>, llfuse will pick a reasonable number bigger than one. If <em>workers</em> is <code class="docutils literal notranslate"><span class="pre">1</span></code> all requests will be processed by the thread calling <a class="reference internal" href="#llfuse.main" title="llfuse.main"><code class="xref py py-obj docutils literal notranslate"><span class="pre">main</span></code></a>.</p> <p>This function will also start additional threads for internal purposes (even if <em>workers</em> is <code class="docutils literal notranslate"><span class="pre">1</span></code>). These (and all worker threads) are guaranteed to have terminated when <a class="reference internal" href="#llfuse.main" title="llfuse.main"><code class="xref py py-obj docutils literal notranslate"><span class="pre">main</span></code></a> returns.</p> <p>Unless <em>handle_signals</em> is <a class="reference external" href="https://docs.python.org/3/library/constants.html#False" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">False</span></code></a>, while this function is running, special signal handlers will be installed for the <em>SIGTERM</em>, <em>SIGINT</em> (Ctrl-C), <em>SIGHUP</em>, <em>SIGUSR1</em> and <em>SIGPIPE</em> signals. <em>SIGPIPE</em> will be ignored, while the other three signals will cause request processing to stop and the function to return. <em>SIGINT</em> (Ctrl-C) will thus <em>not</em> result in a <a class="reference external" href="https://docs.python.org/3/library/exceptions.html#KeyboardInterrupt" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">KeyboardInterrupt</span></code></a> exception while this function is runnning. Note setting <em>handle_signals</em> to <a class="reference external" href="https://docs.python.org/3/library/constants.html#False" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">False</span></code></a> means you must handle the signals by yourself and call <code class="xref py py-obj docutils literal notranslate"><span class="pre">stop</span></code> to make the <a class="reference internal" href="#llfuse.main" title="llfuse.main"><code class="xref py py-obj docutils literal notranslate"><span class="pre">main</span></code></a> returns.</p> <p>When the function returns because the file system has received an unmount request it will return <a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a>. If it returns because it has received a signal, it will return the signal number.</p> </dd></dl> <dl class="py function"> <dt id="llfuse.close"> <code class="sig-prename descclassname">llfuse.</code><code class="sig-name descname">close</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">unmount</span><span class="o">=</span><span class="default_value">True</span></em><span class="sig-paren">)</span><a class="headerlink" href="#llfuse.close" title="Permalink to this definition">¶</a></dt> <dd><p>Clean up and ensure filesystem is unmounted</p> <p>If <em>unmount</em> is False, only clean up operations are peformed, but the file system is not explicitly unmounted.</p> <p>Normally, the filesystem is unmounted by the user calling umount(8) or fusermount(1), which then terminates the FUSE main loop. However, the loop may also terminate as a result of an exception or a signal. In this case the filesystem remains mounted, but any attempt to access it will block (while the filesystem process is still running) or (after the filesystem process has terminated) return an error. If <em>unmount</em> is True, this function will ensure that the filesystem is properly unmounted.</p> <p>Note: if the connection to the kernel is terminated via the <code class="docutils literal notranslate"><span class="pre">/sys/fs/fuse/connections/</span></code> interface, this function will <em>not</em> unmount the filesystem even if <em>unmount</em> is True.</p> </dd></dl> <dl class="py function"> <dt id="llfuse.invalidate_inode"> <code class="sig-prename descclassname">llfuse.</code><code class="sig-name descname">invalidate_inode</code><span class="sig-paren">(</span><em class="sig-param">fuse_ino_t inode</em>, <em class="sig-param">attr_only=False</em><span class="sig-paren">)</span><a class="headerlink" href="#llfuse.invalidate_inode" title="Permalink to this definition">¶</a></dt> <dd><p>Invalidate cache for <em>inode</em></p> <p>Instructs the FUSE kernel module to forgot cached attributes and data (unless <em>attr_only</em> is True) for <em>inode</em>. This operation is carried out asynchronously, i.e. the method may return before the kernel has executed the request.</p> </dd></dl> <dl class="py function"> <dt id="llfuse.invalidate_entry"> <code class="sig-prename descclassname">llfuse.</code><code class="sig-name descname">invalidate_entry</code><span class="sig-paren">(</span><em class="sig-param">fuse_ino_t inode_p</em>, <em class="sig-param">name</em><span class="sig-paren">)</span><a class="headerlink" href="#llfuse.invalidate_entry" title="Permalink to this definition">¶</a></dt> <dd><p>Invalidate directory entry</p> <p>Instructs the FUSE kernel module to forget about the directory entry <em>name</em> in the directory with inode <em>inode_p</em>. This operation is carried out asynchronously, i.e. the method may return before the kernel has executed the request.</p> </dd></dl> <dl class="py function"> <dt id="llfuse.notify_store"> <code class="sig-prename descclassname">llfuse.</code><code class="sig-name descname">notify_store</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">inode</span></em>, <em class="sig-param"><span class="n">offset</span></em>, <em class="sig-param"><span class="n">data</span></em><span class="sig-paren">)</span><a class="headerlink" href="#llfuse.notify_store" title="Permalink to this definition">¶</a></dt> <dd><p>Store data in kernel page cache</p> <p>Sends <em>data</em> for the kernel to store it in the page cache for <em>inode</em> at <em>offset</em>. If this provides data beyond the current file size, the file is automatically extended.</p> <p>If this function raises an exception, the store may still have completed partially.</p> </dd></dl> <dl class="py function"> <dt id="llfuse.get_ino_t_bits"> <code class="sig-prename descclassname">llfuse.</code><code class="sig-name descname">get_ino_t_bits</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#llfuse.get_ino_t_bits" title="Permalink to this definition">¶</a></dt> <dd><p>Return number of bits available for inode numbers</p> <p>Attempts to use inode values that need more bytes will result in <a class="reference external" href="https://docs.python.org/3/library/exceptions.html#OverflowError" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">OverflowError</span></code></a>.</p> </dd></dl> <dl class="py function"> <dt id="llfuse.get_off_t_bits"> <code class="sig-prename descclassname">llfuse.</code><code class="sig-name descname">get_off_t_bits</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#llfuse.get_off_t_bits" title="Permalink to this definition">¶</a></dt> <dd><p>Return number of bytes available for file offsets</p> <p>Attempts to use values whose representation needs more bytes will result in <a class="reference external" href="https://docs.python.org/3/library/exceptions.html#OverflowError" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">OverflowError</span></code></a>.</p> </dd></dl> </div> <div class="clearer"></div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"><h3><a href="index.html">Table Of Contents</a></h3> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="about.html">About</a></li> <li class="toctree-l1"><a class="reference internal" href="install.html">Installation</a></li> <li class="toctree-l1"><a class="reference internal" href="general.html">General Information</a></li> <li class="toctree-l1 current"><a class="current reference internal" href="#">FUSE API Functions</a></li> <li class="toctree-l1"><a class="reference internal" href="data.html">Data Structures</a></li> <li class="toctree-l1"><a class="reference internal" href="lock.html">The global lock</a></li> <li class="toctree-l1"><a class="reference internal" href="operations.html">Request Handlers</a></li> <li class="toctree-l1"><a class="reference internal" href="util.html">Utility Functions</a></li> <li class="toctree-l1"><a class="reference internal" href="gotchas.html">Common Gotchas</a></li> <li class="toctree-l1"><a class="reference internal" href="example.html">Example File Systems</a></li> <li class="toctree-l1"><a class="reference internal" href="changes.html">Changelog</a></li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="general.html" title="previous chapter">General Information</a></p> <h4>Next topic</h4> <p class="topless"><a href="data.html" title="next chapter">Data Structures</a></p> <div id="searchbox" style="display: none" role="search"> <h3 id="searchlabel">Quick search</h3> <div class="searchformwrapper"> <form class="search" action="search.html" method="get"> <input type="text" name="q" aria-labelledby="searchlabel" /> <input type="submit" value="Go" /> </form> </div> </div> <script>$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related" role="navigation" aria-label="related navigation"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="data.html" title="Data Structures" >next</a> |</li> <li class="right" > <a href="general.html" title="General Information" >previous</a> |</li> <li class="nav-item nav-item-0"><a href="index.html">Python-LLFUSE 1.4.2 documentation</a> »</li> <li class="nav-item nav-item-this"><a href="">FUSE API Functions</a></li> </ul> </div> <div class="footer" role="contentinfo"> © Copyright 2010-2015, Nikolaus Rath. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.4.3. </div> </body> </html>