summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-19 22:02:49 +0100
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-19 22:02:49 +0100
commitea26ea0d81a23aa76076ad5441c3b1aadfba3b44 (patch)
tree8fc37a4b6daaec035ff68b96f1e76e50182374a1
parentc57daa3c6e03e8974e133d3a2d9bc3d6f06f4faf (diff)
downloadceph-ea26ea0d81a23aa76076ad5441c3b1aadfba3b44.tar.gz
ceph-disk: remove twice defined function mount
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rwxr-xr-xsrc/ceph-disk34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/ceph-disk b/src/ceph-disk
index 4d006eb3870..66fedca7b33 100755
--- a/src/ceph-disk
+++ b/src/ceph-disk
@@ -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,
):