]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "Fix for bug #6700"
authorSage Weil <sage@redhat.com>
Mon, 11 Aug 2014 22:58:15 +0000 (15:58 -0700)
committerSage Weil <sage@redhat.com>
Mon, 11 Aug 2014 22:58:15 +0000 (15:58 -0700)
This reverts commit 673394702b725ff3f26d13b54d909208daa56d89.

This appears to break things when the journal and data disk are *not* the same.
And I can't seem to reproduce the original failure...

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-disk

index 51860d8de824b29f4a735e776da8de369c5702e9..689c2bc13184f3ef5a3f7d0d0bcd1acc54dd1480 100755 (executable)
@@ -1224,9 +1224,6 @@ def prepare_dev(
         LOG.debug('OSD data device %s is a partition', data)
         rawdev = data
     else:
-        if journal_dmcrypt is not None:
-            dmcrypt_unmap(journal)
-
         LOG.debug('Creating osd partition on %s', data)
         try:
             command_check_call(
@@ -1308,8 +1305,6 @@ def prepare_dev(
     finally:
         if rawdev != dev:
             dmcrypt_unmap(osd_uuid)
-        if journal_dmcrypt is not None:
-            dmcrypt_unmap(journal)
 
     if not is_partition(data):
         try: