Skip to content

Commit acf1160

Browse files
committed
Revert "[wip][feature] Add :memory: support for --write-overlay"
This reverts commit 986ce83.
1 parent e811d84 commit acf1160

6 files changed

Lines changed: 94 additions & 441 deletions

File tree

core/ratarmountcore/mountsource/formats/zip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from typing import IO, Optional, Union
99

1010
from ratarmountcore.mountsource import FileInfo, MountSource
11-
from ratarmountcore.mountsource.SQLiteIndexMountSource import SQLiteIndexMountSource, SQLiteIndexMountSourceOptions
11+
from ratarmountcore.mountsource.SQLiteIndexMountSource import SQLiteIndexMountSource
1212
from ratarmountcore.SQLiteIndex import SQLiteIndex
1313
from ratarmountcore.utils import overrides
1414

ratarmount/FuseMount.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ def __init__(self, pathToMount: Union[str, list[str]], mountPoint: str, **option
169169
self._temporaryOverlayFolder = tempfile.TemporaryDirectory(prefix="ratarmount-write-overlay.")
170170
self.overlayPath = self._temporaryOverlayFolder.name
171171
logger.info("Created temporary overlay directory: %s", self.overlayPath)
172-
elif options['writeOverlay'] == ':memory:':
173-
# For :memory: overlay, we'll create a special in-memory storage
174-
self.overlayPath = ':memory:'
175172
else:
176173
self.overlayPath = os.path.realpath(options['writeOverlay'])
177174
if not os.path.exists(self.overlayPath):
@@ -268,10 +265,8 @@ def _get_log(_buffering: int = 0) -> IO[bytes]:
268265
ignoredPrefixes: list[str] = []
269266
if self._enableControlInterface:
270267
ignoredPrefixes.append(self._controlLayerPrefix)
271-
# Pass memory_overlay parameter for :memory: overlay
272-
memory_overlay = self.overlayPath == ':memory:'
273268
self.writeOverlay = WritableFolderMountSource(
274-
self.overlayPath, self.mountSource, ignoredPrefixes=ignoredPrefixes, memory_overlay=memory_overlay
269+
self.overlayPath, self.mountSource, ignoredPrefixes=ignoredPrefixes
275270
)
276271

277272
self.chmod = self.writeOverlay.chmod

0 commit comments

Comments
 (0)