Fix ticket #770: Re-parse filesystems list after mounting

ticket-769
Vadim vtroshchinskiy 2024-09-27 12:46:12 +02:00
parent ce662e07bd
commit 284e760e5a
1 changed files with 6 additions and 0 deletions

View File

@ -122,6 +122,7 @@ class NTFSLibrary:
subprocess.run(["/usr/sbin/mkntfs", device, "-Q", "-L", label])
def mount_filesystem(self, device, mountpoint):
"""
Mounts a filesystem on the specified mountpoint using the specified NTFS implementation.
@ -142,6 +143,11 @@ class NTFSLibrary:
else:
raise ValueError("Unknown NTFS implementation: {self.implementation}")
# We've mounted a new filesystem, update our filesystems list
self.mounts = self._parse_mounts()
def _hex_to_bin(self, hex_str):
while len(hex_str) != 16: