This file is indexed.

/usr/share/doc/libghc-hfuse-doc/html/System-Fuse.html is in libghc-hfuse-doc 0.2.4.1-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>System.Fuse</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_System-Fuse.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/System-Fuse.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">HFuse-0.2.4.1: HFuse is a binding for the Linux FUSE library.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>GHC 6.4-6.12</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>taruti@taruti.net, jeremy.bobbio@etu.upmc.fr</td></tr><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">System.Fuse</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Using FUSE
</a></li><li><a href="#g:2">Operations datatypes
</a></li><li><a href="#g:3">FUSE Context
</a></li><li><a href="#g:4">File modes
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A binding for the FUSE (Filesystem in USErspace) library
 (<a href="http://fuse.sourceforge.net/">http://fuse.sourceforge.net/</a>), which allows filesystems to be implemented
 as userspace processes.
</p><p>The binding tries to follow as much as possible current Haskell POSIX
 interface in <a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html">System.Posix.Files</a> and <a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Directory.html">System.Posix.Directory</a>.
</p><p>FUSE uses POSIX threads, so any Haskell application using this library must
 be linked against a threaded runtime system (eg. using the <code>threaded</code> GHC
 option).
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short">module <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html">Foreign.C.Error</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:FuseOperations">FuseOperations</a> fh = <a href="#v:FuseOperations">FuseOperations</a> {<ul class="subs"><li><a href="#v:fuseGetFileStat">fuseGetFileStat</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> <a href="System-Fuse.html#t:FileStat">FileStat</a>)</li><li><a href="#v:fuseReadSymbolicLink">fuseReadSymbolicLink</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>)</li><li><a href="#v:fuseCreateDevice">fuseCreateDevice</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="System-Fuse.html#t:EntryType">EntryType</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:DeviceID">DeviceID</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseCreateDirectory">fuseCreateDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseRemoveLink">fuseRemoveLink</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseRemoveDirectory">fuseRemoveDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseCreateSymbolicLink">fuseCreateSymbolicLink</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseRename">fuseRename</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseCreateLink">fuseCreateLink</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseSetFileMode">fuseSetFileMode</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseSetOwnerAndGroup">fuseSetOwnerAndGroup</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:UserID">UserID</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:GroupID">GroupID</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseSetFileSize">fuseSetFileSize</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileOffset">FileOffset</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseSetFileTimes">fuseSetFileTimes</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:EpochTime">EpochTime</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:EpochTime">EpochTime</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseOpen">fuseOpen</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="System-Fuse.html#t:OpenMode">OpenMode</a> -&gt; <a href="System-Fuse.html#t:OpenFileFlags">OpenFileFlags</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> fh)</li><li><a href="#v:fuseRead">fuseRead</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; fh -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:ByteCount">ByteCount</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileOffset">FileOffset</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a>)</li><li><a href="#v:fuseWrite">fuseWrite</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; fh -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileOffset">FileOffset</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:ByteCount">ByteCount</a>)</li><li><a href="#v:fuseGetFileSystemStats">fuseGetFileSystemStats</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> <a href="System-Fuse.html#t:FileSystemStats">FileSystemStats</a>)</li><li><a href="#v:fuseFlush">fuseFlush</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; fh -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseRelease">fuseRelease</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; fh -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:fuseSynchronizeFile">fuseSynchronizeFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="System-Fuse.html#t:SyncType">SyncType</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseOpenDirectory">fuseOpenDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseReadDirectory">fuseReadDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>, <a href="System-Fuse.html#t:FileStat">FileStat</a>)])</li><li><a href="#v:fuseReleaseDirectory">fuseReleaseDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseSynchronizeDirectory">fuseSynchronizeDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="System-Fuse.html#t:SyncType">SyncType</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseAccess">fuseAccess</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li><a href="#v:fuseInit">fuseInit</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:fuseDestroy">fuseDestroy</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li></ul>}</li><li class="src short"><a href="#v:defaultFuseOps">defaultFuseOps</a> ::  <a href="System-Fuse.html#t:FuseOperations">FuseOperations</a> fh</li><li class="src short"><a href="#v:fuseMain">fuseMain</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:Exception">Exception</a> e =&gt; <a href="System-Fuse.html#t:FuseOperations">FuseOperations</a> fh -&gt; (e -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a>) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:fuseRun">fuseRun</a> ::  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>] -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:Exception">Exception</a> e =&gt; <a href="System-Fuse.html#t:FuseOperations">FuseOperations</a> fh -&gt; (e -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a>) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:defaultExceptionHandler">defaultExceptionHandler</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:SomeException">SomeException</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:FileStat">FileStat</a>  = <a href="#v:FileStat">FileStat</a> {<ul class="subs"><li><a href="#v:statEntryType">statEntryType</a> :: <a href="System-Fuse.html#t:EntryType">EntryType</a></li><li><a href="#v:statFileMode">statFileMode</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a></li><li><a href="#v:statLinkCount">statLinkCount</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:LinkCount">LinkCount</a></li><li><a href="#v:statFileOwner">statFileOwner</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:UserID">UserID</a></li><li><a href="#v:statFileGroup">statFileGroup</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:GroupID">GroupID</a></li><li><a href="#v:statSpecialDeviceID">statSpecialDeviceID</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:DeviceID">DeviceID</a></li><li><a href="#v:statFileSize">statFileSize</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileOffset">FileOffset</a></li><li><a href="#v:statBlocks">statBlocks</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:statAccessTime">statAccessTime</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:EpochTime">EpochTime</a></li><li><a href="#v:statModificationTime">statModificationTime</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:EpochTime">EpochTime</a></li><li><a href="#v:statStatusChangeTime">statStatusChangeTime</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:EpochTime">EpochTime</a></li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:EntryType">EntryType</a> <ul class="subs"><li>= <a href="#v:Unknown">Unknown</a>  </li><li>| <a href="#v:NamedPipe">NamedPipe</a>  </li><li>| <a href="#v:CharacterSpecial">CharacterSpecial</a>  </li><li>| <a href="#v:Directory">Directory</a>  </li><li>| <a href="#v:BlockSpecial">BlockSpecial</a>  </li><li>| <a href="#v:RegularFile">RegularFile</a>  </li><li>| <a href="#v:SymbolicLink">SymbolicLink</a>  </li><li>| <a href="#v:Socket">Socket</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:FileSystemStats">FileSystemStats</a>  = <a href="#v:FileSystemStats">FileSystemStats</a> {<ul class="subs"><li><a href="#v:fsStatBlockSize">fsStatBlockSize</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:fsStatBlockCount">fsStatBlockCount</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:fsStatBlocksFree">fsStatBlocksFree</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:fsStatBlocksAvailable">fsStatBlocksAvailable</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:fsStatFileCount">fsStatFileCount</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:fsStatFilesFree">fsStatFilesFree</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:fsStatMaxNameLength">fsStatMaxNameLength</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:SyncType">SyncType</a> <ul class="subs"><li>= <a href="#v:FullSync">FullSync</a>  </li><li>| <a href="#v:DataSync">DataSync</a>  </li></ul></li><li class="src short"><a href="#v:getFuseContext">getFuseContext</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="System-Fuse.html#t:FuseContext">FuseContext</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:FuseContext">FuseContext</a> </li><li class="src short"><a href="#v:entryTypeToFileMode">entryTypeToFileMode</a> :: <a href="System-Fuse.html#t:EntryType">EntryType</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a></li><li class="src short"><a href="#v:fileModeToEntryType">fileModeToEntryType</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="System-Fuse.html#t:EntryType">EntryType</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:OpenMode">OpenMode</a> <ul class="subs"><li>= <a href="#v:ReadOnly">ReadOnly</a>  </li><li>| <a href="#v:WriteOnly">WriteOnly</a>  </li><li>| <a href="#v:ReadWrite">ReadWrite</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:OpenFileFlags">OpenFileFlags</a>  = <a href="#v:OpenFileFlags">OpenFileFlags</a> {<ul class="subs"><li><a href="#v:append">append</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:exclusive">exclusive</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:noctty">noctty</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:nonBlock">nonBlock</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li><a href="#v:trunc">trunc</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li></ul>}</li><li class="src short"><a href="#v:intersectFileModes">intersectFileModes</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a></li><li class="src short"><a href="#v:unionFileModes">unionFileModes</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a></li></ul></div><div id="interface"><h1 id="g:1">Using FUSE
</h1><div class="doc"><p><code><a href="System-Fuse.html#t:FuseOperations">FuseOperations</a></code> contains a field for each filesystem operations that can be called
by FUSE. Think like if you were implementing a file system inside the Linux kernel.
</p><p>Each actions must return a POSIX error code, also called <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></code> reflecting
operation result. For actions not using <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a></code>, you should return <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#v:eOK">eOK</a></code> in case
of success.
</p><p>Read and writes are done with Haskell <code>ByteString</code> type.
</p></div><div class="top"><p class="src">module <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html">Foreign.C.Error</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:FuseOperations" class="def">FuseOperations</a> fh <a href="src/System-Fuse.html#FuseOperations" class="link">Source</a></p><div class="doc"><p>This record, given to <code><a href="System-Fuse.html#v:fuseMain">fuseMain</a></code>, binds each required file system
   operations.
</p><p>Each field is named against <code><a href="System.html#t:Posix">Posix</a></code> names. Matching Linux system
   calls are also given as a reference.
</p><p><code>fh</code> is the file handle type returned by <code><a href="System-Fuse.html#v:fuseOpen">fuseOpen</a></code> and subsequently passed
   to all other file operations.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:FuseOperations" class="def">FuseOperations</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:fuseGetFileStat" class="def">fuseGetFileStat</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> <a href="System-Fuse.html#t:FileStat">FileStat</a>)</dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:getSymbolicLinkStatus">getSymbolicLinkStatus</a></code> operation
   (POSIX <code>lstat(2)</code>).
</p></dd><dt class="src"><a name="v:fuseReadSymbolicLink" class="def">fuseReadSymbolicLink</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>)</dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:readSymbolicLink">readSymbolicLink</a></code> operation (POSIX
   <code>readlink(2)</code>).  The returned <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></code> might be truncated
   depending on caller buffer size.
</p></dd><dt class="src"><a name="v:fuseCreateDevice" class="def">fuseCreateDevice</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="System-Fuse.html#t:EntryType">EntryType</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:DeviceID">DeviceID</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:createDevice">createDevice</a></code> (POSIX <code>mknod(2)</code>).
   This function will also be called for regular file creation.
</p></dd><dt class="src"><a name="v:fuseCreateDirectory" class="def">fuseCreateDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Directory.html#t:createDirectory">createDirectory</a></code> (POSIX
   <code>mkdir(2)</code>).
</p></dd><dt class="src"><a name="v:fuseRemoveLink" class="def">fuseRemoveLink</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:removeLink">removeLink</a></code> (POSIX <code>unlink(2)</code>).
</p></dd><dt class="src"><a name="v:fuseRemoveDirectory" class="def">fuseRemoveDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Directory.html#t:removeDirectory">removeDirectory</a></code> (POSIX
   <code>rmdir(2)</code>).
</p></dd><dt class="src"><a name="v:fuseCreateSymbolicLink" class="def">fuseCreateSymbolicLink</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:createSymbolicLink">createSymbolicLink</a></code> (POSIX
   <code>symlink(2)</code>).
</p></dd><dt class="src"><a name="v:fuseRename" class="def">fuseRename</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:rename">rename</a></code> (POSIX <code>rename(2)</code>).
</p></dd><dt class="src"><a name="v:fuseCreateLink" class="def">fuseCreateLink</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:createLink">createLink</a></code> (POSIX <code>link(2)</code>).
</p></dd><dt class="src"><a name="v:fuseSetFileMode" class="def">fuseSetFileMode</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:setFileMode">setFileMode</a></code> (POSIX <code>chmod(2)</code>).
</p></dd><dt class="src"><a name="v:fuseSetOwnerAndGroup" class="def">fuseSetOwnerAndGroup</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:UserID">UserID</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:GroupID">GroupID</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:setOwnerAndGroup">setOwnerAndGroup</a></code> (POSIX
   <code>chown(2)</code>).
</p></dd><dt class="src"><a name="v:fuseSetFileSize" class="def">fuseSetFileSize</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileOffset">FileOffset</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:setFileSize">setFileSize</a></code> (POSIX <code>truncate(2)</code>).
</p></dd><dt class="src"><a name="v:fuseSetFileTimes" class="def">fuseSetFileTimes</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:EpochTime">EpochTime</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:EpochTime">EpochTime</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:setFileTimes">setFileTimes</a></code>
   (POSIX <code>utime(2)</code>).
</p></dd><dt class="src"><a name="v:fuseOpen" class="def">fuseOpen</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="System-Fuse.html#t:OpenMode">OpenMode</a> -&gt; <a href="System-Fuse.html#t:OpenFileFlags">OpenFileFlags</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> fh)</dt><dd class="doc"><p>Implements <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:openFd">openFd</a></code> (POSIX <code>open(2)</code>).  On
   success, returns <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#v:Right">Right</a></code> of a filehandle-like value that will be
   passed to future file operations; on failure, returns <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#v:Left">Left</a></code> of the
   appropriate <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></code>.
</p><p>No creation, exclusive access or truncating flags will be passed.
   This should check that the operation is permitted for the given
   flags.
</p></dd><dt class="src"><a name="v:fuseRead" class="def">fuseRead</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; fh -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:ByteCount">ByteCount</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileOffset">FileOffset</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a>)</dt><dd class="doc"><p>Implements Unix98 <code>pread(2)</code>. It differs from
   <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:fdRead">fdRead</a></code> by the explicit <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileOffset">FileOffset</a></code> argument.
   The <code>fuse.h</code> documentation stipulates that this &quot;should return
   exactly the number of bytes requested except on EOF or error,
   otherwise the rest of the data will be substituted with zeroes.&quot;
</p></dd><dt class="src"><a name="v:fuseWrite" class="def">fuseWrite</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; fh -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileOffset">FileOffset</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:ByteCount">ByteCount</a>)</dt><dd class="doc"><p>Implements Unix98 <code>pwrite(2)</code>. It differs
   from <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Files.html#t:fdWrite">fdWrite</a></code> by the explicit <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileOffset">FileOffset</a></code> argument.
</p></dd><dt class="src"><a name="v:fuseGetFileSystemStats" class="def">fuseGetFileSystemStats</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> <a href="System-Fuse.html#t:FileSystemStats">FileSystemStats</a>)</dt><dd class="doc"><p>Implements <code>statfs(2)</code>.
</p></dd><dt class="src"><a name="v:fuseFlush" class="def">fuseFlush</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; fh -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Called when <code>close(2)</code> has been called on an open file.
   Note: this does not mean that the file is released.  This function may be
   called more than once for each <code>open(2)</code>.  The return value is passed on
   to the <code>close(2)</code> system call.
</p></dd><dt class="src"><a name="v:fuseRelease" class="def">fuseRelease</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; fh -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</dt><dd class="doc"><p>Called when an open file has all file descriptors closed and all
 memory mappings unmapped.  For every <code>open</code> call there will be
 exactly one <code>release</code> call with the same flags.  It is possible to
 have a file opened more than once, in which case only the last
 release will mean that no more reads or writes will happen on the
 file.
</p></dd><dt class="src"><a name="v:fuseSynchronizeFile" class="def">fuseSynchronizeFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="System-Fuse.html#t:SyncType">SyncType</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code>fsync(2)</code>.
</p></dd><dt class="src"><a name="v:fuseOpenDirectory" class="def">fuseOpenDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code>opendir(3)</code>.  This method should check if the open
   operation is permitted for this directory.
</p></dd><dt class="src"><a name="v:fuseReadDirectory" class="def">fuseReadDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a>, <a href="System-Fuse.html#t:FileStat">FileStat</a>)])</dt><dd class="doc"><p>Implements <code>readdir(3)</code>.  The entire contents of the directory
   should be returned as a list of tuples (corresponding to the first
   mode of operation documented in <code>fuse.h</code>).
</p></dd><dt class="src"><a name="v:fuseReleaseDirectory" class="def">fuseReleaseDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Implements <code>closedir(3)</code>.
</p></dd><dt class="src"><a name="v:fuseSynchronizeDirectory" class="def">fuseSynchronizeDirectory</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="System-Fuse.html#t:SyncType">SyncType</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Synchronize the directory's contents; analogous to
   <code><a href="System-Fuse.html#v:fuseSynchronizeFile">fuseSynchronizeFile</a></code>.
</p></dd><dt class="src"><a name="v:fuseAccess" class="def">fuseAccess</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></dt><dd class="doc"><p>Check file access permissions; this will be called for the
   access() system call.  If the <code>default_permissions</code> mount option
   is given, this method is not called.  This method is also not
   called under Linux kernel versions 2.4.x
</p></dd><dt class="src"><a name="v:fuseInit" class="def">fuseInit</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</dt><dd class="doc"><p>Initializes the filesystem.  This is called before all other
   operations.
</p></dd><dt class="src"><a name="v:fuseDestroy" class="def">fuseDestroy</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</dt><dd class="doc"><p>Called on filesystem exit to allow cleanup.
</p></dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><a name="v:defaultFuseOps" class="def">defaultFuseOps</a> ::  <a href="System-Fuse.html#t:FuseOperations">FuseOperations</a> fh<a href="src/System-Fuse.html#defaultFuseOps" class="link">Source</a></p><div class="doc"><p>Empty / default versions of the FUSE operations.
</p></div></div><div class="top"><p class="src"><a name="v:fuseMain" class="def">fuseMain</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:Exception">Exception</a> e =&gt; <a href="System-Fuse.html#t:FuseOperations">FuseOperations</a> fh -&gt; (e -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a>) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/System-Fuse.html#fuseMain" class="link">Source</a></p><div class="doc"><p>Main function of FUSE.
 This is all that has to be called from the <code>main</code> function. On top of
 the <code><a href="System-Fuse.html#t:FuseOperations">FuseOperations</a></code> record with filesystem implementation, you must give
 an exception handler converting Haskell exceptions to <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a></code>.
</p><p>This function does the following:
</p><ul><li> parses command line options (<code>-d</code>, <code>-s</code> and <code>-h</code>) ;
</li><li> passes all options after <code>--</code> to the fusermount program ;
</li><li> mounts the filesystem by calling <code>fusermount</code> ;
</li><li> installs signal handlers for <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Signals.html#t:keyboardSignal">keyboardSignal</a></code>,
     <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Signals.html#t:lostConnection">lostConnection</a></code>,
     <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Signals.html#t:softwareTermination">softwareTermination</a></code> and
     <code><a href="/usr/share/doc/ghc-doc/html/libraries/unix-2.6.0.1/System-Posix-Signals.html#t:openEndedPipe">openEndedPipe</a></code> ;
</li><li> registers an exit handler to unmount the filesystem on program exit ;
</li><li> registers the operations ;
</li><li> calls FUSE event loop.
</li></ul></div></div><div class="top"><p class="src"><a name="v:fuseRun" class="def">fuseRun</a> ::  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a> -&gt; [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>] -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:Exception">Exception</a> e =&gt; <a href="System-Fuse.html#t:FuseOperations">FuseOperations</a> fh -&gt; (e -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a>) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/System-Fuse.html#fuseRun" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:defaultExceptionHandler" class="def">defaultExceptionHandler</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:SomeException">SomeException</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#t:Errno">Errno</a><a href="src/System-Fuse.html#defaultExceptionHandler" class="link">Source</a></p><div class="doc"><p>Default exception handler.
 Print the exception on error output and returns <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Error.html#v:eFAULT">eFAULT</a></code>.
</p></div></div><h1 id="g:2">Operations datatypes
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:FileStat" class="def">FileStat</a>  <a href="src/System-Fuse.html#FileStat" class="link">Source</a></p><div class="doc"><p>Used by <code><a href="System-Fuse.html#v:fuseGetFileStat">fuseGetFileStat</a></code>.  Corresponds to <code>struct stat</code> from <code>stat.h</code>;
     <code>st_dev</code>, <code>st_ino</code> and <code>st_blksize</code> are omitted, since (from the libfuse
     documentation): &quot;the <code>st_dev</code> and <code>st_blksize</code> fields are ignored.  The
     <code>st_ino</code> field is ignored except if the use_ino mount option is given.&quot;
</p><p><em>TODO: at some point the inode field will probably be needed.</em>
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:FileStat" class="def">FileStat</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:statEntryType" class="def">statEntryType</a> :: <a href="System-Fuse.html#t:EntryType">EntryType</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:statFileMode" class="def">statFileMode</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:statLinkCount" class="def">statLinkCount</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:LinkCount">LinkCount</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:statFileOwner" class="def">statFileOwner</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:UserID">UserID</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:statFileGroup" class="def">statFileGroup</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:GroupID">GroupID</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:statSpecialDeviceID" class="def">statSpecialDeviceID</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:DeviceID">DeviceID</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:statFileSize" class="def">statFileSize</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileOffset">FileOffset</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:statBlocks" class="def">statBlocks</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:statAccessTime" class="def">statAccessTime</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:EpochTime">EpochTime</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:statModificationTime" class="def">statModificationTime</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:EpochTime">EpochTime</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:statStatusChangeTime" class="def">statStatusChangeTime</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:EpochTime">EpochTime</a></dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:FileStat" class="caption collapser" onclick="toggleSection('i:FileStat')">Instances</p><div id="section.i:FileStat" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="System-Fuse.html#t:FileStat">FileStat</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:EntryType" class="def">EntryType</a>  <a href="src/System-Fuse.html#EntryType" class="link">Source</a></p><div class="doc"><p>The Unix type of a node in the filesystem.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Unknown" class="def">Unknown</a></td><td class="doc"><p>Unknown entry type
</p></td></tr><tr><td class="src"><a name="v:NamedPipe" class="def">NamedPipe</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:CharacterSpecial" class="def">CharacterSpecial</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:Directory" class="def">Directory</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:BlockSpecial" class="def">BlockSpecial</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:RegularFile" class="def">RegularFile</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:SymbolicLink" class="def">SymbolicLink</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:Socket" class="def">Socket</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:EntryType" class="caption collapser" onclick="toggleSection('i:EntryType')">Instances</p><div id="section.i:EntryType" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="System-Fuse.html#t:EntryType">EntryType</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:FileSystemStats" class="def">FileSystemStats</a>  <a href="src/System-Fuse.html#FileSystemStats" class="link">Source</a></p><div class="doc"><p>Type used by the <code><a href="System-Fuse.html#v:fuseGetFileSystemStats">fuseGetFileSystemStats</a></code>.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:FileSystemStats" class="def">FileSystemStats</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:fsStatBlockSize" class="def">fsStatBlockSize</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>Optimal transfer block size. FUSE default is 512.
</p></dd><dt class="src"><a name="v:fsStatBlockCount" class="def">fsStatBlockCount</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>Total data blocks in file system.
</p></dd><dt class="src"><a name="v:fsStatBlocksFree" class="def">fsStatBlocksFree</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>Free blocks in file system.
</p></dd><dt class="src"><a name="v:fsStatBlocksAvailable" class="def">fsStatBlocksAvailable</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>Free blocks available to non-superusers.
</p></dd><dt class="src"><a name="v:fsStatFileCount" class="def">fsStatFileCount</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>Total file nodes in file system.
</p></dd><dt class="src"><a name="v:fsStatFilesFree" class="def">fsStatFilesFree</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>Free file nodes in file system.
</p></dd><dt class="src"><a name="v:fsStatMaxNameLength" class="def">fsStatMaxNameLength</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>Maximum length of filenames. FUSE default is 255.
</p></dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:SyncType" class="def">SyncType</a>  <a href="src/System-Fuse.html#SyncType" class="link">Source</a></p><div class="doc"><p>Used by <code><a href="System-Fuse.html#v:fuseSynchronizeFile">fuseSynchronizeFile</a></code> and <code><a href="System-Fuse.html#v:fuseSynchronizeDirectory">fuseSynchronizeDirectory</a></code>.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:FullSync" class="def">FullSync</a></td><td class="doc"><p>Synchronize all in-core parts of a file to disk: file content and
 metadata.
</p></td></tr><tr><td class="src"><a name="v:DataSync" class="def">DataSync</a></td><td class="doc"><p>Synchronize only the file content.
</p></td></tr></table></div><div class="subs instances"><p id="control.i:SyncType" class="caption collapser" onclick="toggleSection('i:SyncType')">Instances</p><div id="section.i:SyncType" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Enum">Enum</a> <a href="System-Fuse.html#t:SyncType">SyncType</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="System-Fuse.html#t:SyncType">SyncType</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><h1 id="g:3">FUSE Context
</h1><div class="top"><p class="src"><a name="v:getFuseContext" class="def">getFuseContext</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="System-Fuse.html#t:FuseContext">FuseContext</a><a href="src/System-Fuse.html#getFuseContext" class="link">Source</a></p><div class="doc"><p>Returns the context of the program doing the current FUSE call.
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:FuseContext" class="def">FuseContext</a>  <a href="src/System-Fuse.html#FuseContext" class="link">Source</a></p><div class="doc"><p>Returned by <code><a href="System-Fuse.html#v:getFuseContext">getFuseContext</a></code>.
</p></div></div><h1 id="g:4">File modes
</h1><div class="top"><p class="src"><a name="v:entryTypeToFileMode" class="def">entryTypeToFileMode</a> :: <a href="System-Fuse.html#t:EntryType">EntryType</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a><a href="src/System-Fuse.html#entryTypeToFileMode" class="link">Source</a></p><div class="doc"><p>Converts an <code><a href="System-Fuse.html#t:EntryType">EntryType</a></code> into the corresponding POSIX <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:fileModeToEntryType" class="def">fileModeToEntryType</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="System-Fuse.html#t:EntryType">EntryType</a><a href="src/System-Fuse.html#fileModeToEntryType" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:OpenMode" class="def">OpenMode</a>  </p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ReadOnly" class="def">ReadOnly</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:WriteOnly" class="def">WriteOnly</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ReadWrite" class="def">ReadWrite</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:OpenFileFlags" class="def">OpenFileFlags</a>  </p><div class="doc"><p>Correspond to some of the int flags from C's fcntl.h.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:OpenFileFlags" class="def">OpenFileFlags</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:append" class="def">append</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc"><p>O_APPEND
</p></dd><dt class="src"><a name="v:exclusive" class="def">exclusive</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc"><p>O_EXCL
</p></dd><dt class="src"><a name="v:noctty" class="def">noctty</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc"><p>O_NOCTTY
</p></dd><dt class="src"><a name="v:nonBlock" class="def">nonBlock</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc"><p>O_NONBLOCK
</p></dd><dt class="src"><a name="v:trunc" class="def">trunc</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></dt><dd class="doc"><p>O_TRUNC
</p></dd></dl><div class="clear"></div></div></td></tr></table></div></div><div class="top"><p class="src"><a name="v:intersectFileModes" class="def">intersectFileModes</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a></p><div class="doc"><p>Combines two file modes into one that only contains modes that appear in
 both.
</p></div></div><div class="top"><p class="src"><a name="v:unionFileModes" class="def">unionFileModes</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-Posix-Types.html#t:FileMode">FileMode</a></p><div class="doc"><p>Combines the two file modes into one that contains modes that appear in
 either.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>