[vbox-dev] [PATCH] nonrotational storageattach flag persistence

Zítek Martin Martin.Zitek at i.cz
Thu Nov 15 15:44:33 PST 2012


The nonrotational flag set either by calling "VBoxManage storageattach ... --nonrotational on"
or by checking the "Solid-state drive" checkbox in the VM VirtualBox Manager
is not persisted in the Virtual Machine config file *.vbox.

The following path fixes this bug.
This patch is contributed under the MIT license.

Index: src/VBox/Main/src-server/MachineImpl.cpp
--- src/VBox/Main/src-server/MachineImpl.cpp	(revision 43868)
+++ src/VBox/Main/src-server/MachineImpl.cpp	(working copy)
@@ -9984,6 +9984,7 @@
                 dev.uuid = pMedium->getId();
             dev.fPassThrough = pAttach->getPassthrough();
             dev.fTempEject = pAttach->getTempEject();
+            dev.fNonRotational = pAttach->getNonRotational();
             dev.fDiscard = pAttach->getDiscard();

Kind regards,
Martin Zitek

More information about the vbox-dev mailing list