We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8781329 commit b9f2e48Copy full SHA for b9f2e48
1 file changed
snapshots/overlay/plugin/plugin.go
@@ -31,6 +31,7 @@ type Config struct {
31
// Root directory for the plugin
32
RootPath string `toml:"root_path"`
33
UpperdirLabel bool `toml:"upperdir_label"`
34
+ SyncRemove bool `toml:"sync_remove"`
35
}
36
37
func init() {
@@ -55,9 +56,12 @@ func init() {
55
56
if config.UpperdirLabel {
57
oOpts = append(oOpts, overlay.WithUpperdirLabel)
58
59
+ if !config.SyncRemove {
60
+ oOpts = append(oOpts, overlay.AsynchronousRemove)
61
+ }
62
63
ic.Meta.Exports["root"] = root
- return overlay.NewSnapshotter(root, append(oOpts, overlay.AsynchronousRemove)...)
64
+ return overlay.NewSnapshotter(root, oOpts...)
65
},
66
})
67
0 commit comments