]> xenbits.xensource.com Git - people/pauldu/xenbus.git/commitdiff
Make sure the FDOs do not appear in the eject list
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 19 Sep 2013 14:49:02 +0000 (15:49 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Thu, 19 Sep 2013 14:49:02 +0000 (15:49 +0100)
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenbus/fdo.c

index cb0db9d2b87c9ed9a0bcbc449f3d89c911436d49..25190b2c604c7761705d0146d56ad1932f545291 100644 (file)
@@ -2717,6 +2717,9 @@ FdoQueryCapabilities(
 
     Fdo->LowerDeviceCapabilities = *Capabilities;
 
+    // Make sure that the FDO is non-removable
+    Capabilities->Removable = 0;
+
     for (SystemPowerState = 0; SystemPowerState < PowerSystemMaximum; SystemPowerState++) {
         DEVICE_POWER_STATE  DevicePowerState;