Skip to content

Commit 1f39b32

Browse files
committed
Fix vdi_type and image_format for udevSR
Add `vdi_type` on udevVDI Add `image_format` for udevVDI Signed-off-by: Damien Thenot <damien.thenot@vates.tech>
1 parent 276e1e4 commit 1f39b32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/udevSR.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ def load(self, location) -> None:
153153
self.utilisation = 0
154154
self.label = self.path
155155
self.sm_config = {}
156+
self.vdi_type = "phy" # We give phy but there is a special case in blktap2.py:VDI.tap_wanted() for udevSR
157+
self.image_format = "raw"
158+
self.sm_config["image-format"] = self.image_format
159+
156160
try:
157161
s = os.stat(self.path)
158162
self.deleted = False

0 commit comments

Comments
 (0)