Skip to content

Commit

Permalink
mount:set the EnableWriteback parameter according to the fuse option (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored Dec 12, 2024
1 parent 92e1db2 commit 62c964e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/fuse/fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ func GenFuseOpt(conf *vfs.Config, options string, mt int, noxattr, noacl bool) f
opt.AllowOther = true
} else if strings.HasPrefix(n, "fsname=") {
opt.FsName = n[len("fsname="):]
} else if n == "writeback_cache" {
opt.EnableWriteback = true
} else if n == "debug" {
opt.Debug = true
log.SetFlags(log.Ldate | log.Ltime | log.Lmicroseconds)
Expand Down

0 comments on commit 62c964e

Please sign in to comment.