diff options
Diffstat (limited to 'cmd/mbf/cache.go')
| -rw-r--r-- | cmd/mbf/cache.go | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/cmd/mbf/cache.go b/cmd/mbf/cache.go index aea54546..7134e5d2 100644 --- a/cmd/mbf/cache.go +++ b/cmd/mbf/cache.go @@ -21,7 +21,7 @@ type cache struct { // Should generally not be used directly. c *pkg.Cache - cures, jobs int + attr pkg.CacheAttr // Primarily to work around missing landlock LSM. hostAbstract bool // Set SCHED_IDLE. @@ -49,18 +49,17 @@ func (cache *cache) open() (err error) { return } - var flags int if cache.idle { - flags |= pkg.CSchedIdle + cache.attr.Flags |= pkg.CSchedIdle } if cache.hostAbstract { - flags |= pkg.CHostAbstract + cache.attr.Flags |= pkg.CHostAbstract } if !cache.verboseInit { - flags |= pkg.CSuppressInit + cache.attr.Flags |= pkg.CSuppressInit } if !cache.deep { - flags |= pkg.CExternShallow + cache.attr.Flags |= pkg.CExternShallow } done := make(chan struct{}) @@ -82,10 +81,8 @@ func (cache *cache) open() (err error) { cache.c, err = pkg.Open( cache.ctx, cache.msg, - flags, - cache.cures, - cache.jobs, base, + &cache.attr, ) if err != nil { return |
