aboutsummaryrefslogtreecommitdiffstats
path: root/lib/isodumper.py
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageialinux-online.org>2015-10-08 07:52:27 +0200
committerPapoteur <papoteur@mageialinux-online.org>2015-10-08 07:52:27 +0200
commit3b5ba7abdd809aff5285598c40fafa2162c6ef6b (patch)
treef0780081b9e95e802ff852a873db96461e278d5a /lib/isodumper.py
parent02487085107fc3055ee73ad61f3bd1a9e1ab052a (diff)
downloadisodumper-3b5ba7abdd809aff5285598c40fafa2162c6ef6b.tar
isodumper-3b5ba7abdd809aff5285598c40fafa2162c6ef6b.tar.gz
isodumper-3b5ba7abdd809aff5285598c40fafa2162c6ef6b.tar.bz2
isodumper-3b5ba7abdd809aff5285598c40fafa2162c6ef6b.tar.xz
isodumper-3b5ba7abdd809aff5285598c40fafa2162c6ef6b.zip
Clean code, suppress unused mount function
Diffstat (limited to 'lib/isodumper.py')
-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},