summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Deza <alfredo@deza.pe>2013-08-08 16:09:26 -0700
committerSage Weil <sage@inktank.com>2013-08-08 22:48:03 -0700
commit1243c9749ed27850c5d041023780efcdf7b31a68 (patch)
tree3416fa48824d1adf19da4efaa5bc0f73718a268e
parenta9a370be2d8155b696ebe2866febb0571da5740f (diff)
downloadceph-1243c9749ed27850c5d041023780efcdf7b31a68.tar.gz
make sure we are using the mount options
Signed-off-by: Alfredo Deza <alfredo@deza.pe> (cherry picked from commit 34831d0989d4bcec4920068b6ee09ab6b3234c91)
-rwxr-xr-xsrc/ceph-disk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ceph-disk b/src/ceph-disk
index b4a9e68dad7..683553ae467 100755
--- a/src/ceph-disk
+++ b/src/ceph-disk
@@ -1326,6 +1326,7 @@ def move_mount(
path,
cluster,
osd_id,
+ mount_options,
):
LOG.debug('Moving mount to final location...')
parent = '/var/lib/ceph/osd'
@@ -1344,6 +1345,8 @@ def move_mount(
subprocess.check_call(
args=[
'/bin/mount',
+ '-o',
+ mount_options,
'--',
dev,
osd_data,
@@ -1506,6 +1509,7 @@ def mount_activate(
path=path,
cluster=cluster,
osd_id=osd_id,
+ mount_options=mount_options,
)
return (cluster, osd_id)