[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XENVBD PATCH v2] Opt into forced unplug
Condition the opt-in to the FORCE_UNPLUG build variable. Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx> --- scripts/genfiles.ps1 | 2 ++ src/xenvbd.inf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/genfiles.ps1 b/scripts/genfiles.ps1 index 093b5ee..8b0b14b 100644 --- a/scripts/genfiles.ps1 +++ b/scripts/genfiles.ps1 @@ -68,6 +68,8 @@ $Replacements = [ordered]@{ 'MICRO_VERSION' = $Env:MICRO_VERSION; 'BUILD_NUMBER' = $Env:BUILD_NUMBER; + 'FORCE_UNPLUG' = $Env:FORCE_UNPLUG; + # generated values 'GIT_REVISION' = $GitRevision; diff --git a/src/xenvbd.inf b/src/xenvbd.inf index dfde613..0de71d1 100644 --- a/src/xenvbd.inf +++ b/src/xenvbd.inf @@ -106,6 +106,7 @@ HKR,"Parameters","multi-queue-max-queues",0x00010001,0x00000002 [XenVbd_Unplug] HKLM,%UnplugKey%,"DISKS",0x00010001,0 +HKLM,%ForceUnplugKey%,"DISKS",0x00010001,1 ; @FORCE_UNPLUG@ [XenVbd_Extras] HKLM,%PnpKey%,"DisableCDDB",0x00010001,0 @@ -120,6 +121,7 @@ DiskDesc = "@PRODUCT_NAME@ PV Storage Host Adapter Package" XenVbdName= "@PRODUCT_NAME@ PV Storage Host Adapter" XenDiskName= "@PRODUCT_NAME@ PV Storage Filter" UnplugKey="SYSTEM\CurrentControlSet\Services\XEN\Unplug" +ForceUnplugKey="SYSTEM\CurrentControlSet\Services\XEN\ForceUnplug" PnpKey="SYSTEM\CurrentControlSet\Control\Pnp" PartMgrKey="SYSTEM\CurrentControlSet\Services\PartMgr\Parameters" DiskKey="SYSTEM\CurrentControlSet\Services\Disk" -- 2.50.1.windows.1 Ngoc Tu Dinh | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |