Add extra mounts update
parent
3b19b2014a
commit
ad021122a9
|
@ -4,6 +4,7 @@ import subprocess
|
||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
import blkid
|
import blkid
|
||||||
|
import time
|
||||||
|
|
||||||
from ntfs import *
|
from ntfs import *
|
||||||
|
|
||||||
|
@ -112,6 +113,7 @@ class FilesystemLibrary:
|
||||||
str or None: The device corresponding to the mount point if found,
|
str or None: The device corresponding to the mount point if found,
|
||||||
otherwise None.
|
otherwise None.
|
||||||
"""
|
"""
|
||||||
|
self.update_mounts()
|
||||||
self.logger.debug("Finding device corresponding to mount point %s", mountpoint)
|
self.logger.debug("Finding device corresponding to mount point %s", mountpoint)
|
||||||
if mountpoint in self.mounts:
|
if mountpoint in self.mounts:
|
||||||
return self.mounts[mountpoint]['device']
|
return self.mounts[mountpoint]['device']
|
||||||
|
|
Loading…
Reference in New Issue