Skip to content

Commit af36b73

Browse files
committed
CP-52620: enable read-through cache on persistent leaf
Signed-off-by: Mark Syms <[email protected]>
1 parent 2ef2f75 commit af36b73

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/blktap2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,7 @@ def _setup_cache(self, session, sr_uuid, vdi_uuid, local_sr_uuid,
19701970
blktap = Blktap.allocate()
19711971
child_options = copy.deepcopy(options)
19721972
child_options["rdonly"] = False
1973-
child_options["lcache"] = False
1973+
child_options["lcache"] = (not scratch_mode)
19741974
child_options["existing_prt"] = prt_tapdisk.minor
19751975
child_options["secondary"] = secondary
19761976
child_options["standby"] = scratch_mode

mk/sm.spec.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Requires: xenserver-multipath
2424
Requires: python3-bitarray
2525
Requires: python3-future
2626
Conflicts: kernel < 4.19.19-5.0.0
27+
Conflicts: blktap < 3.55.3
2728

2829
%description
2930
This package contains storage backends used in XCP

0 commit comments

Comments
 (0)