fs: create Overlay feature flag to indicate backend wraps others

Set this automatically for any backend which implements UnWrap and
manually for combine and union which can't implement UnWrap but do
overlay other backends.
This commit is contained in:
Nick Craig-Wood
2023-05-12 11:42:22 +01:00
parent 43fa256d56
commit 09a408664d
4 changed files with 12 additions and 1 deletions

View File

@@ -299,6 +299,9 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (outFs fs
}
}
// show that we wrap other backends
features.Overlay = true
f.features = features
// Get common intersection of hashes