Commit e083e29c authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Set negative timeouts for loopback example.

parent 86b0092e
...@@ -10,6 +10,7 @@ import ( ...@@ -10,6 +10,7 @@ import (
"expvar" "expvar"
"flag" "flag"
"strings" "strings"
"runtime"
) )
func main() { func main() {
...@@ -25,6 +26,15 @@ func main() { ...@@ -25,6 +26,15 @@ func main() {
orig := flag.Arg(0) orig := flag.Arg(0)
fs := fuse.NewLoopbackFileSystem(orig) fs := fuse.NewLoopbackFileSystem(orig)
var opts fuse.PathFileSystemConnectorOptions
opts.AttrTimeout = 1.0
opts.EntryTimeout = 1.0
opts.NegativeTimeout = 1.0
fs.SetOptions(&opts)
conn := fuse.NewPathFileSystemConnector(fs) conn := fuse.NewPathFileSystemConnector(fs)
state := fuse.NewMountState(conn) state := fuse.NewMountState(conn)
state.Debug = *debug state.Debug = *debug
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment