aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/isodumper.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 953ff25..aa5c581 100644
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -155,26 +155,6 @@ class UDisks2(object):
list.append(item)
return list
- def mount(self, device_node_path):
- try:
- d = self.device(device_node_path)
- mount_options = ['rw', 'noexec', 'nosuid',
- 'nodev', 'uid=%d'%os.geteuid(), 'gid=%d'%os.getegid()]
- r=d.Mount(
- {
- 'auth.no_user_interaction':True,
- 'options':','.join(mount_options)
- },
- dbus_interface=self.FILESYSTEM)
- return str(r)
- except:
- # May be already mounted, check
- mp = self.node_mountpoint(str(device_node_path))
- print(mp, sys.exc_info()[0])
- if mp is None:
- raise ValueError(sys.exc_info()[0])
- return mp
-
def unmount(self, device_node_path):
d = self.device(device_node_path)
d.Unmount({'force':True, 'auth.no_user_interaction':True},