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

Add MountOptions to AutoUnionFsOptions.

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