Commit 88ab347f authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Add MountOptions to AutoUnionFsOptions.

parent a72ea3ac
...@@ -30,6 +30,11 @@ func main() { ...@@ -30,6 +30,11 @@ func main() {
} }
options := unionfs.AutoUnionFsOptions{ options := unionfs.AutoUnionFsOptions{
UnionFsOptions: ufsOptions, UnionFsOptions: ufsOptions,
MountOptions: fuse.MountOptions{
EntryTimeout: 1.0,
AttrTimeout: 1.0,
NegativeTimeout: 1.0,
},
} }
gofs := unionfs.NewAutoUnionFs(flag.Arg(1), options) gofs := unionfs.NewAutoUnionFs(flag.Arg(1), options)
......
...@@ -31,6 +31,7 @@ type AutoUnionFs struct { ...@@ -31,6 +31,7 @@ type AutoUnionFs struct {
type AutoUnionFsOptions struct { type AutoUnionFsOptions struct {
UnionFsOptions UnionFsOptions
fuse.MountOptions
} }
const ( const (
...@@ -74,7 +75,7 @@ func (me *AutoUnionFs) addFs(roots []string) { ...@@ -74,7 +75,7 @@ func (me *AutoUnionFs) addFs(roots []string) {
me.lock.Unlock() me.lock.Unlock()
if gofs != nil { if gofs != nil {
me.connector.Mount("/"+name, gofs, nil) me.connector.Mount("/"+name, gofs, &me.options.MountOptions)
} }
} }
......
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