VirtualBox

Ignore:
Timestamp:
Jul 26, 2010 7:08:45 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64092
Message:

Main/Console,Storage/DrvVD+fdc: Allow readonly floppy images (suppress runtime error on VM start for readonly media), and take this as the signal to make the floppy medium readonly. Never attempt to write to such images, and signal the appropriate error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r31118 r31128  
    29232923                InsertConfigString(pCfg, "Format", bstr);
    29242924
    2925                 /* DVDs are always readonly */
     2925                /* DVDs are always readonly, floppies may be readonly */
    29262926                if (enmType == DeviceType_DVD)
    29272927                {
    29282928                    InsertConfigInteger(pCfg, "ReadOnly", 1);
     2929                }
     2930                else if (enmType == DeviceType_Floppy)
     2931                {
     2932                    InsertConfigInteger(pCfg, "MaybeReadOnly", 1);
    29292933                }
    29302934
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette