mirror of
https://github.com/ceph/ceph
synced 2025-01-30 23:13:44 +00:00
Merge pull request #3424 from dachary/wip-reuse-dmcrypt
ceph-disk: do not reuse partition if encryption required Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
dd3ebf38d9
@ -1051,6 +1051,9 @@ def prepare_journal_dev(
|
||||
reusing_partition = False
|
||||
|
||||
if is_partition(journal):
|
||||
if journal_dm_keypath:
|
||||
raise Error(journal + ' partition already exists'
|
||||
' and --dmcrypt specified')
|
||||
LOG.debug('Journal %s is a partition', journal)
|
||||
LOG.warning('OSD will not be hot-swappable if journal is not the same device as the osd data')
|
||||
if get_partition_type(journal) == JOURNAL_UUID:
|
||||
|
Loading…
Reference in New Issue
Block a user