From ea26ea0d81a23aa76076ad5441c3b1aadfba3b44 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 19 Mar 2013 22:02:49 +0100 Subject: [PATCH] ceph-disk: remove twice defined function mount Signed-off-by: Danny Al-Gaaf --- src/ceph-disk | 34 ---------------------------------- 1 file changed, 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, ):