Skip to content

Commit e054691

Browse files
Tim SmithTimSmithCtx
Tim Smith
authored andcommitted
CA-400789 Do not exclude parentless VDIs from cacheing
Though a VDI might be parentless when it is first attached, a snapshot might be taken at any time and that should be allowed cacheing for the read-only parts of the chain at once, instead of being forced to wait until the guest is restarted. Signed-off-by: Tim Smith <[email protected]>
1 parent b5e86fe commit e054691

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: drivers/blktap2.py

-4
Original file line numberDiff line numberDiff line change
@@ -1010,10 +1010,6 @@ def get_o_direct_capability(self, options):
10101010
elif not ((self.target.vdi.sr.handles("nfs") or self.target.vdi.sr.handles("ext") or self.target.vdi.sr.handles("smb"))):
10111011
self.__o_direct = True
10121012
self.__o_direct_reason = "SR_NOT_SUPPORTED"
1013-
elif not (options.get("rdonly") or self.target.vdi.parent):
1014-
util.SMlog(self.target.vdi)
1015-
self.__o_direct = True
1016-
self.__o_direct_reason = "NO_RO_IMAGE"
10171013
elif options.get("rdonly") and not self.target.vdi.parent:
10181014
self.__o_direct = True
10191015
self.__o_direct_reason = "RO_WITH_NO_PARENT"

0 commit comments

Comments
 (0)