]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: remove twice defined function mount
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 19 Mar 2013 21:02:49 +0000 (22:02 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 19 Mar 2013 21:02:49 +0000 (22:02 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/ceph-disk

index 4d006eb38702f6742b50004e8f8c22c0d419f13a..66fedca7b33a51a0fcae6c5288f2551e95ffda04 100755 (executable)
@@ -1210,40 +1210,6 @@ def detect_fstype(
     return fstype
 
 
-def mount(
-    dev,
-    fstype,
-    options,
-    ):
-    # pick best-of-breed mount options based on fs type
-    if options is None:
-        options = MOUNT_OPTIONS.get(fstype, '')
-
-    # mount
-    path = tempfile.mkdtemp(
-        prefix='mnt.',
-        dir='/var/lib/ceph/tmp',
-        )
-    try:
-        subprocess.check_call(
-            args=[
-                '/bin/mount',
-                '-o', options,
-                '--',
-                dev,
-                path,
-                ],
-            )
-    except subprocess.CalledProcessError as e:
-        try:
-            os.rmdir(path)
-        except (OSError, IOError):
-            pass
-        raise MountError(e)
-
-    return path
-
-
 def unmount(
     path,
     ):