Skip to content

Commit

Permalink
Fix filter to reject other device types
Browse files Browse the repository at this point in the history
Signed-off-by: Damien Thenot <[email protected]>
  • Loading branch information
Nambrok committed Jan 8, 2025
1 parent fab39d8 commit b6994a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/LargeBlockSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def _redo_vg_connection(self):
util.SMlog("Reconnecting VG {} to use emulated device".format(self.vgname))
try:
lvutil.setActiveVG(self.vgname, False)
lvutil.setActiveVG(self.vgname, True, config="devices{ global_filter = [ \"r|^/dev/nvme.*|\", \"a|/dev/loop.*|\" ] }")
lvutil.setActiveVG(self.vgname, True, config="devices{ global_filter = [ \"a|/dev/loop.*|\", \"r|.*|\" ] }")
except util.CommandException as e:
xs_errors.XenError("LargeBlockVGReconnectFailed", opterr="Failed to reconnect the VolumeGroup {}, error: {}".format(self.vgname, e))

Expand Down

0 comments on commit b6994a7

Please sign in to comment.