Skip to content

Commit

Permalink
CA-172263: Hide base-vdi post SXM between FileSR's and LVHDSR's
Browse files Browse the repository at this point in the history
Signed-off-by: Germano Percossi <germano.percossi@citrix.com>
  • Loading branch information
germanop authored and siddharthv committed Jul 15, 2015
1 parent 08d4951 commit ddc36a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/FileSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ def compose(self, sr_uuid, vdi1, vdi2):
assert(util.pathexists(parent_path))
vhdutil.setParent(self.path, parent_path, False)
vhdutil.setHidden(parent_path)
self.sr.session.xenapi.VDI.set_managed(self.sr.srcmd.params['args'][0], False)
util.pread2([vhdutil.VHD_UTIL, "modify", "-p", parent_path,
"-n", self.path])
# Tell tapdisk the chain has changed
Expand Down
1 change: 1 addition & 0 deletions drivers/LVHDSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -1572,6 +1572,7 @@ def compose(self, sr_uuid, vdi1, vdi2):

vhdutil.setParent(self.path, parent_path, False)
vhdutil.setHidden(parent_path)
self.sr.session.xenapi.VDI.set_managed(self.sr.srcmd.params['args'][0], False)

if not blktap2.VDI.tap_refresh(self.session, self.sr.uuid, self.uuid,
True):
Expand Down

0 comments on commit ddc36a9

Please sign in to comment.