Home

overlay @main - refs - log -
-
https://git.jolheiser.com/overlay.git
Overlay FS
tree log patch
feat: cache by default Signed-off-by: jolheiser <git@jolheiser.com>
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQNHyx7DB+byV0di9a1qMyupF0GiZVSxDyqH9mjvf8SHKUr8bQDyNaUX6XozWAzjQSZ Mq5gGohQKGIu71FAhKDQk= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
5 months ago
1 changed files, 4 additions(+), 3 deletions(-)
M overlay.go -> overlay.go
diff --git a/overlay.go b/overlay.go
index 2c14fc35805bfe0b128a2d164e5beaafb71e28f2..886386732ca91903dfa04b62367d18f4125771e5 100644
--- a/overlay.go
+++ b/overlay.go
@@ -68,9 +68,10 @@
 // New returns a new FS
 func New(root string, fs fs.FS, opts ...Option) (*FS, error) {
 	x := &FS{
-		fs:    fs,
+		fs:      fs,
-		root:  root,
+		root:    root,
+		doCache: true,
-		cache: make(map[string]bool),
+		cache:   make(map[string]bool),
 	}
 
 	for _, opt := range opts {