path,
cluster,
osd_id,
+ fstype,
mount_options,
):
LOG.debug('Moving mount to final location...')
)
maybe_mkdir(osd_data)
+ # pick best-of-breed mount options based on fs type
+ if mount_options is None:
+ mount_options = MOUNT_OPTIONS.get(fstype, '')
+
# we really want to mount --move, but that is not supported when
# the parent mount is shared, as it is by default on RH, Fedora,
# and probably others. Also, --bind doesn't properly manipulate
path=path,
cluster=cluster,
osd_id=osd_id,
+ fstype=fstype,
mount_options=mount_options,
)
return (cluster, osd_id)