fix: preserve mapped native paths and retain probe ownership guards

This commit is contained in:
阿白叔 committed 2026-11-02 21:48:40 +08:00
1 parent dd1fcea7e2
commit 46c3e72364
7 files changed
+365 -36

No files matched your search

+3 -1
View File
@@ -306,7 +306,9 @@ class MainWindow(QWidget):
return
def request(name, partition):
return ManagementRequest(operation, Path(self.mentor_lmc_path or self.loaded_path), name,
partition, evidence_dir=self.data_root/'management', timeout_seconds=self.timeout_spin.value())
partition, evidence_dir=self.data_root/'management', timeout_seconds=self.timeout_spin.value(),
mapped_drive=getattr(self.library_lease, 'drive', ''),
mapped_remote_root=getattr(self.library_lease, 'remote_root', ''))
requests = ([request('', 'Logical-Physical')] if operation == 'add' else
[request(record.name, 'Logical-Physical' if record.logical_type == 'LP'
and record.partition_name in ('Reusable Blocks', 'LP') else record.partition_name)