Skip to content

Commit

Permalink
Fix for #19 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rposudnevskiy committed Nov 8, 2016
1 parent 2607a7d commit a12e7c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cephutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def _setup_mirror (self, vdi_uuid, size):
self._map_SXM(vdi_uuid)

util.pread2(["dmsetup", "create", self.DM_ZERO_NAME, "--table", "0 %s zero" % str(int(size) / 512)])
util.pread2(["dmsetup", "create", slef.DM_MIRROR_NAME, "--table", "0 %s snapshot %s %s P 1" % (str(int(size) / 512), self.DM_ZERO_DEV, self.RBD_SXM_MIRROR_DEV)])
util.pread2(["dmsetup", "create", self.DM_MIRROR_NAME, "--table", "0 %s snapshot %s %s P 1" % (str(int(size) / 512), self.DM_ZERO_DEV, self.RBD_SXM_MIRROR_DEV)])
util.pread2(["ln", "-s", self.DM_MIRROR_DEV, self.RBD_VDI_MIRROR_DEV])

def _setup_base (self, vdi_uuid, size):
Expand Down

0 comments on commit a12e7c5

Please sign in to comment.