VirtualBox

Changeset 33540 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Oct 28, 2010 9:27:05 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67140
Message:

*: spelling fixes, thanks Timeless!

Location:
trunk/src/VBox/Devices/Storage
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/ATAController.cpp

    r33486 r33540  
    15361536            do
    15371537            {
    1538                 /* don't log superflous errors */
     1538                /* don't log superfluous errors */
    15391539                if (    rc == VERR_DEV_IO_ERROR
    15401540                    && (   u8Cmd == SCSI_TEST_UNIT_READY
     
    16911691                ataH2BE_U16(pbBuf + 0, 6);
    16921692                pbBuf[2] = 0x04; /* media */
    1693                 pbBuf[3] = 0x5e; /* suppored = busy|media|external|power|operational */
     1693                pbBuf[3] = 0x5e; /* supported = busy|media|external|power|operational */
    16941694                pbBuf[4] = 0x02; /* new medium */
    16951695                pbBuf[5] = 0x02; /* medium present / door closed */
     
    17031703                ataH2BE_U16(pbBuf + 0, 6);
    17041704                pbBuf[2] = 0x04; /* media */
    1705                 pbBuf[3] = 0x5e; /* suppored = busy|media|external|power|operational */
     1705                pbBuf[3] = 0x5e; /* supported = busy|media|external|power|operational */
    17061706                pbBuf[4] = 0x03; /* media removal */
    17071707                pbBuf[5] = 0x00; /* medium absent / door closed */
     
    17261726                ataH2BE_U16(pbBuf + 0, 6);
    17271727                pbBuf[2] = 0x01; /* operational change request / notification */
    1728                 pbBuf[3] = 0x5e; /* suppored = busy|media|external|power|operational */
     1728                pbBuf[3] = 0x5e; /* supported = busy|media|external|power|operational */
    17291729                pbBuf[4] = 0x00;
    17301730                pbBuf[5] = 0x00;
     
    38823882
    38833883
    3884 /** Asynch I/O thread for an interface. Once upon a time this was readable
     3884/** Async I/O thread for an interface. Once upon a time this was readable
    38853885 * code with several loops and a different semaphore for each purpose. But
    38863886 * then came the "how can one save the state in the middle of a PIO transfer"
     
    45634563
    45644564/**
    4565  * Reset the controller to an intial state.
     4565 * Reset the controller to an initial state.
    45664566 *
    45674567 * @returns VBox status.
  • trunk/src/VBox/Devices/Storage/ATAController.h

    r29758 r33540  
    177177    RCPTRTYPE(uint8_t *) pbIOBufferRC;
    178178
    179     RTRCPTR Aligmnent1; /**< Align the statistics at an 8-byte boundrary. */
     179    RTRCPTR Aligmnent1; /**< Align the statistics at an 8-byte boundary. */
    180180
    181181    /*
     
    459459
    460460/**
    461  * Relocate neccessary pointers.
     461 * Relocate necessary pointers.
    462462 *
    463463 * @returns nothing.
  • trunk/src/VBox/Devices/Storage/DMGHDDCore.cpp

    r33534 r33540  
    11/* $Id$ */
    22/** @file
    3  * VBoxDMG - Intepreter for Apple Disk Images (DMG).
     3 * VBoxDMG - Interpreter for Apple Disk Images (DMG).
    44 */
    55
     
    151151 * BLKX data.
    152152 *
    153  * This contains the start offset and size of raw data sotred in the image.
     153 * This contains the start offset and size of raw data stored in the image.
    154154 *
    155155 * All fields are stored in big endian format.
     
    11621162
    11631163    /*
    1164      * Decend down to the 'resource-fork' dictionary.
     1164     * Descend down to the 'resource-fork' dictionary.
    11651165     * ASSUME it's the only top level dictionary.
    11661166     */
     
    11961196
    11971197        /*
    1198          * Decend into the array and add the elements to the resource entry.
     1198         * Descend into the array and add the elements to the resource entry.
    11991199         */
    12001200        /* <array> */
  • trunk/src/VBox/Devices/Storage/DevAHCI.cpp

    r33420 r33540  
    2828 * the hard disk and for guests which don't have an AHCI SATA driver.
    2929 *
    30  * The data is transfered in an asychronous way using one thread per implemented
     30 * The data is transferred in an asynchronous way using one thread per implemented
    3131 * port or using the new async completion interface which is still under
    3232 * development. [not quite up to date]
     
    268268    /** The command Fis for this task. */
    269269    uint8_t                    cmdFis[AHCI_CMDFIS_TYPE_H2D_SIZE];
    270     /** The ATAPI comnmand data. */
     270    /** The ATAPI command data. */
    271271    uint8_t                    aATAPICmd[ATAPI_PACKET_SIZE];
    272272    /** Size of one sector for the ATAPI transfer. */
     
    24982498 *
    24992499 * @returns nothing
    2500  * @param   pAhciPort   Poitner to the port the command header was read from.
     2500 * @param   pAhciPort   Pointer to the port the command header was read from.
    25012501 * @param   pCmdHdr     The command header to print info from.
    25022502 */
     
    25702570
    25712571/**
    2572  * Post the FIS in the memory area allocated by the guest and set interrupt if neccessary.
     2572 * Post the FIS in the memory area allocated by the guest and set interrupt if necessary.
    25732573 *
    25742574 * @returns VBox status code
     
    30823082                ataH2BE_U16(abBuf + 0, 6);
    30833083                abBuf[2] = 0x04; /* media */
    3084                 abBuf[3] = 0x5e; /* suppored = busy|media|external|power|operational */
     3084                abBuf[3] = 0x5e; /* supported = busy|media|external|power|operational */
    30853085                abBuf[4] = 0x02; /* new medium */
    30863086                abBuf[5] = 0x02; /* medium present / door closed */
     
    30943094                ataH2BE_U16(abBuf + 0, 6);
    30953095                abBuf[2] = 0x04; /* media */
    3096                 abBuf[3] = 0x5e; /* suppored = busy|media|external|power|operational */
     3096                abBuf[3] = 0x5e; /* supported = busy|media|external|power|operational */
    30973097                abBuf[4] = 0x03; /* media removal */
    30983098                abBuf[5] = 0x00; /* medium absent / door closed */
     
    31173117                ataH2BE_U16(abBuf + 0, 6);
    31183118                abBuf[2] = 0x01; /* operational change request / notification */
    3119                 abBuf[3] = 0x5e; /* suppored = busy|media|external|power|operational */
     3119                abBuf[3] = 0x5e; /* supported = busy|media|external|power|operational */
    31203120                abBuf[4] = 0x00;
    31213121                abBuf[5] = 0x00;
     
    36563656            do
    36573657            {
    3658                 /* don't log superflous errors */
     3658                /* don't log superfluous errors */
    36593659                if (    rc == VERR_DEV_IO_ERROR
    36603660                    && (   u8Cmd == SCSI_TEST_UNIT_READY
     
    48054805 * @param   pAhciPortTaskState     The task state which contains the S/G list entries.
    48064806 * @param   fReadonly              If the mappings should be readonly.
    4807  * @param   cSGEntriesProcessed    Number of entries the normal creator procecssed
     4807 * @param   cSGEntriesProcessed    Number of entries the normal creator processed
    48084808 *                                 before an error occurred. Used to free
    4809  *                                 any ressources allocated before.
     4809 *                                 any resources allocated before.
    48104810 * @thread  EMT
    48114811 */
     
    49264926    unsigned   cActualSGEntry;
    49274927    unsigned   cSGEntriesR3 = 0;               /* Needed scatter gather list entries in R3. */
    4928     unsigned   cSGEntriesProcessed = 0;        /* Number of SG entries procesed. */
     4928    unsigned   cSGEntriesProcessed = 0;        /* Number of SG entries processed. */
    49294929    SGLEntry   aSGLEntry[32];                  /* Holds read sg entries from guest. Biggest seen number of entries a guest set up. */
    49304930    unsigned   cSGLEntriesGCRead;
     
    54875487 * Copy the content of a buffer to a scatter gather list.
    54885488 *
    5489  * @returns Number of bytes transfered.
     5489 * @returns Number of bytes transferred.
    54905490 * @param   pAhciPortTaskState    The task state which contains the S/G list entries.
    54915491 * @param   pvBuf                 Pointer to the buffer which should be copied.
     
    55825582
    55835583/**
    5584  * Complete a data transfer task by freeing all occupied ressources
     5584 * Complete a data transfer task by freeing all occupied resources
    55855585 * and notifying the guest.
    55865586 *
     
    62846284        if (rc == VERR_TIMEOUT)
    62856285        {
    6286             /* No I/O requests inbetween. Reset statistics and wait again. */
     6286            /* No I/O requests in-between. Reset statistics and wait again. */
    62876287            pAhciPort->StatIORequestsPerSecond.c = 0;
    62886288            rc = RTSemEventWait(pAhciPort->AsyncIORequestSem, RT_INDEFINITE_WAIT);
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r33486 r33540  
    227227    RCPTRTYPE(uint8_t *) pbIOBufferRC;
    228228
    229     RTRCPTR Aligmnent1; /**< Align the statistics at an 8-byte boundrary. */
     229    RTRCPTR Aligmnent1; /**< Align the statistics at an 8-byte boundary. */
    230230
    231231    /*
     
    20732073            do
    20742074            {
    2075                 /* don't log superflous errors */
     2075                /* don't log superfluous errors */
    20762076                if (    rc == VERR_DEV_IO_ERROR
    20772077                    && (   u8Cmd == SCSI_TEST_UNIT_READY
     
    23872387                ataH2BE_U16(pbBuf + 0, 6);
    23882388                pbBuf[2] = 0x04; /* media */
    2389                 pbBuf[3] = 0x5e; /* suppored = busy|media|external|power|operational */
     2389                pbBuf[3] = 0x5e; /* supported = busy|media|external|power|operational */
    23902390                pbBuf[4] = 0x02; /* new medium */
    23912391                pbBuf[5] = 0x02; /* medium present / door closed */
     
    23992399                ataH2BE_U16(pbBuf + 0, 6);
    24002400                pbBuf[2] = 0x04; /* media */
    2401                 pbBuf[3] = 0x5e; /* suppored = busy|media|external|power|operational */
     2401                pbBuf[3] = 0x5e; /* supported = busy|media|external|power|operational */
    24022402                pbBuf[4] = 0x03; /* media removal */
    24032403                pbBuf[5] = 0x00; /* medium absent / door closed */
     
    24222422                ataH2BE_U16(pbBuf + 0, 6);
    24232423                pbBuf[2] = 0x01; /* operational change request / notification */
    2424                 pbBuf[3] = 0x5e; /* suppored = busy|media|external|power|operational */
     2424                pbBuf[3] = 0x5e; /* supported = busy|media|external|power|operational */
    24252425                pbBuf[4] = 0x00;
    24262426                pbBuf[5] = 0x00;
     
    46034603}
    46044604
    4605 /** Asynch I/O thread for an interface. Once upon a time this was readable
     4605/** Async I/O thread for an interface. Once upon a time this was readable
    46064606 * code with several loops and a different semaphore for each purpose. But
    46074607 * then came the "how can one save the state in the middle of a PIO transfer"
     
    61576157    {
    61586158        /*
    6159          * Setup asynchronous notification compmletion if the requests haven't
     6159         * Setup asynchronous notification completion if the requests haven't
    61606160         * completed yet.
    61616161         */
     
    70437043                {
    70447044                    case VERR_ACCESS_DENIED:
    7045                         /* Error already catched by DrvHostBase */
     7045                        /* Error already cached by DrvHostBase */
    70467046                        return rc;
    70477047                    default:
  • trunk/src/VBox/Devices/Storage/DevBusLogic.cpp

    r33274 r33540  
    8989#endif
    9090
    91     /** Our base interace. */
     91    /** Our base interface. */
    9292    PDMIBASE                      IBase;
    9393    /** SCSI port interface. */
     
    564564typedef struct Mailbox
    565565{
    566     /** Physical adress of the CCB structure in the guest memory. */
     566    /** Physical address of the CCB structure in the guest memory. */
    567567    uint32_t u32PhysAddrCCB;
    568568    /** Type specific data. */
     
    30343034                                N_("BusLogic: Failed to initialize task cache\n"));
    30353035
    3036     /* Intialize task queue. */
     3036    /* Initialize task queue. */
    30373037    rc = PDMDevHlpQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 5, 0,
    30383038                              buslogicNotifyQueueConsumer, true, "BugLogicTask", &pThis->pNotifierQueueR3);
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r33419 r33540  
    8585#endif
    8686
    87     /** Our base interace. */
     87    /** Our base interface. */
    8888    PDMIBASE                      IBase;
    8989    /** SCSI port interface. */
     
    324324
    325325/**
    326  * Task state object which holds all neccessary data while
     326 * Task state object which holds all necessary data while
    327327 * processing the request from the guest.
    328328 */
     
    433433/**
    434434 * Sets a given interrupt status bit in the status register and
    435  * updates the interupt status.
     435 * updates the interrupt status.
    436436 *
    437437 * @returns nothing.
     
    447447/**
    448448 * Clears a given interrupt status bit in the status register and
    449  * updates the interupt status.
     449 * updates the interrupt status.
    450450 *
    451451 * @returns nothing.
     
    634634
    635635/**
    636  * Takes neccessary steps to finish a reply frame.
     636 * Takes necessary steps to finish a reply frame.
    637637 *
    638638 * @returns nothing
     
    13781378
    13791379/**
    1380  * Copies a contigous buffer into the scatter gather list provided by the guest.
     1380 * Copies a contiguous buffer into the scatter gather list provided by the guest.
    13811381 *
    13821382 * @returns nothing
     
    31233123    pPages->pManufacturingPage7 = pManufacturingPage7;
    31243124
    3125     /* SAS I/O unit page 0 - Port specific informations. */
     3125    /* SAS I/O unit page 0 - Port specific information. */
    31263126    pPages->cbSASIOUnitPage0 = LSILOGICSCSI_SASIOUNIT0_GET_SIZE(pThis->cPorts);
    31273127    PMptConfigurationPageSASIOUnit0 pSASPage0 = (PMptConfigurationPageSASIOUnit0)RTMemAllocZ(pPages->cbSASIOUnitPage0);
     
    31473147    pPages->pSASIOUnitPage1 = pSASPage1;
    31483148
    3149     /* SAS I/O unit page 2 - Port specific informations. */
     3149    /* SAS I/O unit page 2 - Port specific information. */
    31503150    pPages->SASIOUnitPage2.u.fields.ExtHeader.u8PageType       =   MPT_CONFIGURATION_PAGE_ATTRIBUTE_READONLY
    31513151                                                                 | MPT_CONFIGURATION_PAGE_TYPE_EXTENDED;
     
    31543154    pPages->SASIOUnitPage2.u.fields.ExtHeader.u16ExtPageLength = sizeof(MptConfigurationPageSASIOUnit2) / 4;
    31553155
    3156     /* SAS I/O unit page 3 - Port specific informations. */
     3156    /* SAS I/O unit page 3 - Port specific information. */
    31573157    pPages->SASIOUnitPage3.u.fields.ExtHeader.u8PageType       =   MPT_CONFIGURATION_PAGE_ATTRIBUTE_READONLY
    31583158                                                                 | MPT_CONFIGURATION_PAGE_TYPE_EXTENDED;
     
    33653365                                              MPT_CONFIGURATION_PAGE_ATTRIBUTE_PERSISTENT_READONLY);
    33663366
    3367     /* Manufacturing Page 6 - Product sepcific settings. */
     3367    /* Manufacturing Page 6 - Product specific settings. */
    33683368    MPT_CONFIG_PAGE_HEADER_INIT_MANUFACTURING(&pPages->ManufacturingPage6,
    33693369                                              MptConfigurationPageManufacturing6, 6,
    33703370                                              MPT_CONFIGURATION_PAGE_ATTRIBUTE_CHANGEABLE);
    33713371
    3372     /* Manufacturing Page 8 -  Product sepcific settings. */
     3372    /* Manufacturing Page 8 -  Product specific settings. */
    33733373    MPT_CONFIG_PAGE_HEADER_INIT_MANUFACTURING(&pPages->ManufacturingPage8,
    33743374                                              MptConfigurationPageManufacturing8, 8,
    33753375                                              MPT_CONFIGURATION_PAGE_ATTRIBUTE_CHANGEABLE);
    33763376
    3377     /* Manufacturing Page 9 -  Product sepcific settings. */
     3377    /* Manufacturing Page 9 -  Product specific settings. */
    33783378    MPT_CONFIG_PAGE_HEADER_INIT_MANUFACTURING(&pPages->ManufacturingPage9,
    33793379                                              MptConfigurationPageManufacturing9, 9,
    33803380                                              MPT_CONFIGURATION_PAGE_ATTRIBUTE_CHANGEABLE);
    33813381
    3382     /* Manufacturing Page 10 -  Product sepcific settings. */
     3382    /* Manufacturing Page 10 -  Product specific settings. */
    33833383    MPT_CONFIG_PAGE_HEADER_INIT_MANUFACTURING(&pPages->ManufacturingPage10,
    33843384                                              MptConfigurationPageManufacturing10, 10,
     
    50865086        return rc;
    50875087
    5088     /* Intialize task queue. (Need two items to handle SMP guest concurrency.) */
     5088    /* Initialize task queue. (Need two items to handle SMP guest concurrency.) */
    50895089    rc = PDMDevHlpQueueCreate(pDevIns, sizeof(PDMQUEUEITEMCORE), 2, 0,
    50905090                              lsilogicNotifyQueueConsumer, true,
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.h

    r33115 r33540  
    9393
    9494/**
    95  * A simple SG element for a 64bit adress.
     95 * A simple SG element for a 64bit address.
    9696 */
    9797#pragma pack(1)
     
    104104    /** Flag whether the address is 32bit or 64bits wide. */
    105105    unsigned f64BitAddress:       1;
    106     /** Flag whether this buffer contains data to be transfered or is the destination. */
     106    /** Flag whether this buffer contains data to be transferred or is the destination. */
    107107    unsigned fBufferContainsData: 1;
    108108    /** Flag whether this is a local address or a system address. */
     
    123123
    124124/**
    125  * A simple SG element for a 32bit adress.
     125 * A simple SG element for a 32bit address.
    126126 */
    127127#pragma pack(1)
     
    134134    /** Flag whether the address is 32bit or 64bits wide. */
    135135    unsigned f64BitAddress:       1;
    136     /** Flag whether this buffer contains data to be transfered or is the destination. */
     136    /** Flag whether this buffer contains data to be transferred or is the destination. */
    137137    unsigned fBufferContainsData: 1;
    138138    /** Flag whether this is a local address or a system address. */
     
    497497    /** Protocol flags. */
    498498    uint16_t    u16ProtocolFlags;
    499     /** Maxmimum number of target command buffers which can be posted to this port at a time. */
     499    /** Maximum number of target command buffers which can be posted to this port at a time. */
    500500    uint16_t    u16MaxPostedCmdBuffers;
    501501    /** Maximum number of target IDs that remain persistent between power/reset cycles. */
     
    758758    /** Sense buffer length. */
    759759    uint8_t     u8SenseBufferLength;
    760     /** Rserved */
     760    /** Reserved */
    761761    uint8_t     u8Reserved;
    762762    /** Message flags. */
     
    829829
    830830/**
    831  * IOC status codes sepcific to the SCSI I/O error reply.
     831 * IOC status codes specific to the SCSI I/O error reply.
    832832 */
    833833#define MPT_SCSI_IO_ERROR_IOCSTATUS_INVALID_BUS      (0x0041)
     
    10391039    /** Page number to access. */
    10401040    uint8_t    u8PageNumber;
    1041     /** Type of the page beeing accessed. */
     1041    /** Type of the page being accessed. */
    10421042    uint8_t    u8PageType;
    10431043    /** Page type dependent address. */
     
    10991099    /** Page number to access. */
    11001100    uint8_t    u8PageNumber;
    1101     /** Type of the page beeing accessed. */
     1101    /** Type of the page being accessed. */
    11021102    uint8_t    u8PageType;
    11031103} MptConfigurationReply, *PMptConfigurationReply;
     
    14841484            /** Enclosure name */
    14851485            uint8_t                       szEnclosureName[16];
    1486             /** Nummber of PHYs */
     1486            /** Number of PHYs */
    14871487            uint8_t                       u8NumPhys;
    14881488            /** Reserved */
     
    17791779            /** The omnipresent header. */
    17801780            MptConfigurationPageHeader    Header;
    1781             /** Total ammount of NV memory in bytes. */
     1781            /** Total amount of NV memory in bytes. */
    17821782            uint32_t              u32TotalNVStore;
    17831783            /** Number of free bytes in the NV store. */
     
    22472247            /** The omnipresent header. */
    22482248            MptConfigurationPageHeader    Header;
    2249             /** Flag whether this port is information unit trnafsers capable. */
     2249            /** Flag whether this port is information unit transfers capable. */
    22502250            unsigned              fInformationUnitTransfersCapable: 1;
    22512251            /** Flag whether the port is DT (Dual Transfer) capable. */
     
    25112511            /** Reserved. */
    25122512            unsigned              fReserved:                       1;
    2513             /** Slew reate controler. */
     2513            /** Slew create controller. */
    25142514            unsigned              u3SlewRateControler:             3;
    2515             /** Primary drive strength controler. */
     2515            /** Primary drive strength controller. */
    25162516            unsigned              u3PrimaryDriveStrengthControl:   3;
    2517             /** Secondary drive strength controler. */
     2517            /** Secondary drive strength controller. */
    25182518            unsigned              u3SecondaryDriveStrengthControl: 3;
    25192519            /** Reserved. */
     
    26132613            /** Nvdata version default */
    26142614            uint16_t                              u16NvdataVersionDefault;
    2615             /** Nvdata version persisent */
     2615            /** Nvdata version persistent */
    26162616            uint16_t                              u16NvdataVersionPersistent;
    26172617            /** Number of physical ports */
  • trunk/src/VBox/Devices/Storage/DrvDiskIntegrity.cpp

    r30112 r33540  
    102102    /** Data for this segment */
    103103    uint8_t         *pbSeg;
    104     /** Numbner of entries in the I/O array. */
     104    /** Number of entries in the I/O array. */
    105105    unsigned         cIoLogEntries;
    106106    /** Array of I/O log references. */
  • trunk/src/VBox/Devices/Storage/DrvHostBase.cpp

    r33464 r33540  
    592592 * @param   Entry       The current I/O registry entry reference.
    593593 * @param   pszName     Where to store the name. 128 bytes.
    594  * @param   cRecursions Number of recursions. This is used as an precation
     594 * @param   cRecursions Number of recursions. This is used as an precaution
    595595 *                      just to limit the depth and avoid blowing the stack
    596596 *                      should we hit a bug or something.
     
    809809         *
    810810         * While there is a (weird 12 byte) GUID, it isn't persistent
    811          * accross boots. So, we have to use a combination of the
     811         * across boots. So, we have to use a combination of the
    812812         * vendor name and product name properties with an optional
    813813         * sequence number for identification.
     
    10331033 *
    10341034 * Solaris has to deal with two filehandles, a block and a raw one. Rather than messing
    1035  * with drvHostBaseOpen's function signature & body, having a seperate one is better.
     1035 * with drvHostBaseOpen's function signature & body, having a separate one is better.
    10361036 *
    10371037 * @returns VBox status code.
     
    11981198
    11991199    /* convert nt status code to VBox status code. */
    1200     /** @todo Make convertion function!. */
     1200    /** @todo Make conversion function!. */
    12011201    int rc = VERR_GENERAL_FAILURE;
    12021202    switch (rcNt)
     
    17451745#ifdef RT_OS_DARWIN
    17461746    /*
    1747      * The unclaiming doesn't seem to mean much, the DVD is actaully
     1747     * The unclaiming doesn't seem to mean much, the DVD is actually
    17481748     * remounted when we release exclusive access. I'm not quite sure
    17491749     * if I should put the unclaim first or not...
     
    18251825
    18261826    /* Leave the instance operational if this is just a cleanup of the state
    1827      * after an attach error happened. So don't destry the critsect then. */
     1827     * after an attach error happened. So don't destroy the critsect then. */
    18281828    if (!pThis->fKeepInstance && RTCritSectIsInitialized(&pThis->CritSect))
    18291829        RTCritSectDelete(&pThis->CritSect);
  • trunk/src/VBox/Devices/Storage/DrvHostBase.h

    r28800 r33540  
    120120    /** The disk arbitration session reference. NULL if we didn't have to claim & unmount the device. */
    121121    DASessionRef            pDASession;
    122     /** The disk arbritation disk reference. NULL if we didn't have to claim & unmount the device. */
     122    /** The disk arbitration disk reference. NULL if we didn't have to claim & unmount the device. */
    123123    DADiskRef               pDADisk;
    124124#endif
  • trunk/src/VBox/Devices/Storage/DrvHostDVD.cpp

    r32067 r33540  
    343343                 || (abSense[12] == 0x3f && abSense[13] == 0 /* target operating conditions have changed */)  //???
    344344                 || (abSense[12] == 0x3f && abSense[13] == 2 /* changed operating definition */)              //???
    345                  || (abSense[12] == 0x3f && abSense[13] == 3 /* inquery parameters changed */)
     345                 || (abSense[12] == 0x3f && abSense[13] == 3 /* inquiry parameters changed */)
    346346                 || (abSense[12] == 0x3f && abSense[13] == 5 /* device identifier changed */)
    347347                 )
     
    653653
    654654#ifdef VBOX_WITH_SUID_WRAPPER
    655 /* These functions would have to go into a seperate solaris binary with
     655/* These functions would have to go into a separate solaris binary with
    656656 * the setuid permission set, which would run the user-SCSI ioctl and
    657657 * return the value. BUT... this might be prohibitively slow.
     
    661661/**
    662662 * Checks if the current user is authorized using Solaris' role-based access control.
    663  * Made as a seperate function with so that it need not be invoked each time we need
     663 * Made as a separate function with so that it need not be invoked each time we need
    664664 * to gain root access.
    665665 *
  • trunk/src/VBox/Devices/Storage/DrvSCSI.cpp

    r33101 r33540  
    389389 * to complete prior to the device reset.
    390390 *
    391  * @param   pThis           Pointer to the instace data.
     391 * @param   pThis           Pointer to the instance data.
    392392 * @returns VINF_SUCCESS.
    393393 */
     
    402402 * Request function to wakeup the thread.
    403403 *
    404  * @param   pThis           Pointer to the instace data.
     404 * @param   pThis           Pointer to the instance data.
    405405 * @returns VWRN_STATE_CHANGED.
    406406 */
  • trunk/src/VBox/Devices/Storage/DrvSCSIHost.cpp

    r32983 r33540  
    5555    PDMISCSICONNECTOR       ISCSIConnector;
    5656
    57     /** PAth to the device file. */
     57    /** Path to the device file. */
    5858    char                   *pszDevicePath;
    5959    /** Handle to the device. */
     
    167167 *
    168168 * @returns transfer direction of the command.
    169  *          SCSIHOSTTXDIR_NONE if no data is transfered.
     169 *          SCSIHOSTTXDIR_NONE if no data is transferred.
    170170 *          SCSIHOSTTXDIR_FROM_DEVICE if the data is read from the device.
    171171 *          SCSIHOSTTXDIR_TO_DEVICE   if the data is written to the device.
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r33524 r33540  
    151151    VDINTERFACEIO      VDIIOCallbacks;
    152152
    153     /** Flag whether opened disk suppports async I/O operations. */
     153    /** Flag whether opened disk supports async I/O operations. */
    154154    bool               fAsyncIOSupported;
    155155    /** The async media interface. */
     
    17561756 *
    17571757 * This is called both for successful and failed load runs, we only care about
    1758  * successfull ones.
     1758 * successful ones.
    17591759 *
    17601760 * @returns VBox status code.
  • trunk/src/VBox/Devices/Storage/ISCSIHDDCore.cpp

    r33524 r33540  
    5656
    5757
    58 /** Minumum CHAP_MD5 challenge length in bytes. */
     58/** Minimum CHAP_MD5 challenge length in bytes. */
    5959#define CHAP_MD5_CHALLENGE_MIN 16
    6060/** Maximum CHAP_MD5 challenge length in bytes. */
     
    103103#define SCSI_DEVTYPE_MASK 0x1f
    104104
    105 /** Mask to extract the CmdQue bit out of the seventh byte of the INQUIRY resposne. */
     105/** Mask to extract the CmdQue bit out of the seventh byte of the INQUIRY response. */
    106106#define SCSI_INQUIRY_CMDQUE_MASK 0x02
    107107
     
    421421typedef struct ISCSICMDSYNC
    422422{
    423     /** Event sempahore to wakeup the waiting thread. */
     423    /** Event semaphore to wakeup the waiting thread. */
    424424    RTSEMEVENT EventSem;
    425425    /** Status code of the command. */
     
    23722372 * @return VBOX status code.
    23732373 * @param  pImage      The iSCSI connection state to be used.
    2374  * @param  paRes       Pointer to the array of iSCSI repsonse sections.
     2374 * @param  paRes       Pointer to the array of iSCSI response sections.
    23752375 * @param  cnRes       Number of valid iSCSI response sections in the array.
    23762376 */
  • trunk/src/VBox/Devices/Storage/UsbMsd.cpp

    r32983 r33540  
    11/* $Id$ */
    22/** @file
    3  * UsbMSD - USB Mass Stoage Device Emulation.
     3 * UsbMSD - USB Mass Storage Device Emulation.
    44 */
    55
     
    226226    RTSEMEVENTMULTI     hEvtReset;
    227227    /** The reset URB.
    228      * This is waiting for SCSI requestion completion before finishing the reset. */
     228     * This is waiting for SCSI request completion before finishing the reset. */
    229229    PVUSBURB            pResetUrb;
    230230
     
    10751075
    10761076            /*
    1077              * Make sure we've got a request and a sufficent buffer space.
     1077             * Make sure we've got a request and a sufficient buffer space.
    10781078             *
    10791079             * Note! This will make sure the buffer is ZERO as well, thus
  • trunk/src/VBox/Devices/Storage/VBoxHDD.cpp

    r33524 r33540  
    316316            /** Saved transfer size */
    317317            size_t                       cbTransferLeftSaved;
    318             /** Number of bytes transfered from the parent if this context completes. */
     318            /** Number of bytes transferred from the parent if this context completes. */
    319319            size_t                       cbTransferParent;
    320320            /** Number of bytes to pre read */
     
    373373        struct
    374374        {
    375             /** Number of bytes this task transfered. */
     375            /** Number of bytes this task transferred. */
    376376            uint32_t             cbTransfer;
    377377            /** Pointer to the I/O context the task belongs. */
     
    703703 *                   On success this indicates the number of bytes read from the cache.
    704704 *                   If VERR_VD_BLOCK_FREE is returned this gives the number of bytes
    705  *                   whih are not in the cache.
     705 *                   which are not in the cache.
    706706 *                   In both cases everything beyond this value
    707707 *                   might or might not be in the cache.
     
    14401440        else
    14411441            cbWriteCopy = 0;
    1442         /* Figure out how much we cannnot read from the image, because
     1442        /* Figure out how much we cannot read from the image, because
    14431443         * the last block to write might exceed the nominal size of the
    14441444         * image for technical reasons. */
     
    15021502    if (cbPostRead)
    15031503    {
    1504         /* Figure out how much we cannnot read from the image, because
     1504        /* Figure out how much we cannot read from the image, because
    15051505         * the last block to write might exceed the nominal size of the
    15061506         * image for technical reasons. */
     
    16731673        else
    16741674            cbWriteCopy = 0;
    1675         /* Figure out how much we cannnot read from the image, because
     1675        /* Figure out how much we cannot read from the image, because
    16761676         * the last block to write might exceed the nominal size of the
    16771677         * image for technical reasons. */
     
    18691869    if (cbPostRead)
    18701870    {
    1871         /* Figure out how much we cannnot read from the image, because
     1871        /* Figure out how much we cannot read from the image, because
    18721872         * the last block to write might exceed the nominal size of the
    18731873         * image for technical reasons. */
     
    35953595
    35963596/**
    3597  * Lists the capablities of a backend indentified by its name.
     3597 * Lists the capabilities of a backend identified by its name.
    35983598 *
    35993599 * @returns VBox status code.
     
    43364336        /*
    43374337         * Check that the modification UUID of the cache and last image
    4338          * match. If not the image was modified inbetween without the cache.
     4338         * match. If not the image was modified in-between without the cache.
    43394339         * The cache might contain stale data.
    43404340         */
     
    55225522         * Make sure the child is readonly
    55235523         * for the child -> parent merge direction
    5524          * if neccessary.
     5524         * if necessary.
    55255525        */
    55265526        if (   nImageFrom > nImageTo
     
    66956695 * @returns 0 if no image with specified number was not opened.
    66966696 * @param   pDisk           Pointer to HDD container.
    6697  * @param   nImage          Image number, counds from 0. 0 is always base image of container.
     6697 * @param   nImage          Image number, counts from 0. 0 is always base image of container.
    66986698 */
    66996699VBOXDDU_DECL(uint64_t) VDGetSize(PVBOXHDD pDisk, unsigned nImage)
  • trunk/src/VBox/Devices/Storage/VBoxHDDFormats/AppleDiskImage/VBoxDMG.cpp

    r33534 r33540  
    11/* $Id$ */
    22/** @file
    3  * VBoxDMG - Intepreter for Apple Disk Images (DMG).
     3 * VBoxDMG - Interpreter for Apple Disk Images (DMG).
    44 */
    55
     
    789789
    790790    /*
    791      * Decend down to the 'resource-fork' dictionary.
     791     * Descend down to the 'resource-fork' dictionary.
    792792     * ASSUME it's the only top level dictionary.
    793793     */
     
    823823
    824824        /*
    825          * Decend into the array and add the elements to the resource entry.
     825         * Descend into the array and add the elements to the resource entry.
    826826         */
    827827        /* <array> */
     
    906906 *
    907907 * This worker is really just a construct to avoid gotos and do-break-while-zero
    908  * uglyness.
     908 * ugliness.
    909909 *
    910910 * @returns VBox status code.
  • trunk/src/VBox/Devices/Storage/VBoxSCSI.cpp

    r33105 r33540  
    192192                pVBoxSCSI->iCDB++;
    193193
    194                 /* Check if we have all neccessary command data. */
     194                /* Check if we have all necessary command data. */
    195195                if (pVBoxSCSI->iCDB == pVBoxSCSI->cbCDB)
    196196                {
  • trunk/src/VBox/Devices/Storage/VCICacheCore.cpp

    r33534 r33540  
    7373    /** UUID of the image. */
    7474    RTUUID      uuidImage;
    75     /** Modifcation UUID for the cache. */
     75    /** Modification UUID for the cache. */
    7676    RTUUID      uuidModification;
    7777    /** Reserved for future use. */
     
    779779
    780780/**
    781  * Saves the block map in the cache image. All neccessary on disk structures
     781 * Saves the block map in the cache image. All necessary on disk structures
    782782 * are written.
    783783 *
  • trunk/src/VBox/Devices/Storage/VDICore.h

    r32553 r33540  
    140140    /** Image comment. (UTF-8) */
    141141    char            szComment[VDI_IMAGE_COMMENT_SIZE];
    142     /** Offset of Blocks array from the begining of image file.
     142    /** Offset of Blocks array from the beginning of image file.
    143143     * Should be sector-aligned for HDD access optimization. */
    144144    uint32_t        offBlocks;
    145     /** Offset of image data from the begining of image file.
     145    /** Offset of image data from the beginning of image file.
    146146     * Should be sector-aligned for HDD access optimization. */
    147147    uint32_t        offData;
     
    189189    /** Image comment. (UTF-8) */
    190190    char            szComment[VDI_IMAGE_COMMENT_SIZE];
    191     /** Offset of blocks array from the begining of image file.
     191    /** Offset of blocks array from the beginning of image file.
    192192     * Should be sector-aligned for HDD access optimization. */
    193193    uint32_t        offBlocks;
    194     /** Offset of image data from the begining of image file.
     194    /** Offset of image data from the beginning of image file.
    195195     * Should be sector-aligned for HDD access optimization. */
    196196    uint32_t        offData;
  • trunk/src/VBox/Devices/Storage/VDIHDDCore.cpp

    r33524 r33540  
    401401static int vdiValidateHeader(PVDIHEADER pHeader)
    402402{
    403     /* Check version-dependend header parameters. */
     403    /* Check version-dependent header parameters. */
    404404    switch (GET_MAJOR_HEADER_VERSION(pHeader))
    405405    {
     
    25222522                }
    25232523
    2524                 /* Allocate buffer for overwrting with zeroes. */
     2524                /* Allocate buffer for overwriting with zeroes. */
    25252525                pvZero = RTMemAllocZ(pImage->cbTotalBlockData);
    25262526                if (!pvZero)
  • trunk/src/VBox/Devices/Storage/VHDHDDCore.cpp

    r33524 r33540  
    6363#pragma pack()
    6464
     65/* this really is spelled with only one n */
    6566#define VHD_FOOTER_COOKIE "conectix"
    6667#define VHD_FOOTER_COOKIE_SIZE 8
     
    10381039    /*
    10391040     * The index of the bit in the byte of the data block bitmap.
    1040      * The most signifcant bit stands for a lower sector number.
     1041     * The most significant bit stands for a lower sector number.
    10411042     */
    10421043    uint8_t  iBitInByte = (8-1) - (cBlockBitmapEntry % 8);
     
    13301331                              ? RT_H2BE_U32(VHD_FOOTER_DISK_TYPE_DIFFERENCING)
    13311332                              : RT_H2BE_U32(VHD_FOOTER_DISK_TYPE_DYNAMIC);
    1332         /* We are half way thourgh with creation of image, let the caller know. */
     1333        /* We are half way thorough with creation of image, let the caller know. */
    13331334        if (pfnProgress)
    13341335            pfnProgress(pvUser, (uPercentStart + uPercentSpan) / 2);
     
    28682869        uint64_t offStartDataOld = ~0ULL;
    28692870
    2870         /* Go through the BAT and finde the data start offset. */
     2871        /* Go through the BAT and find the data start offset. */
    28712872        for (unsigned idxBlock = 0; idxBlock < pImage->cBlockAllocationTableEntries; idxBlock++)
    28722873        {
     
    29102911                }
    29112912
    2912                 /* Allocate buffer for overwrting with zeroes. */
     2913                /* Allocate buffer for overwriting with zeroes. */
    29132914                pvZero = RTMemAllocZ(cbBlock);
    29142915                if (!pvZero)
  • trunk/src/VBox/Devices/Storage/VSCSI/VSCSIInternal.h

    r32983 r33540  
    184184
    185185/**
    186  * Completesa SCSI request and calls the completion handler.
     186 * Completes a SCSI request and calls the completion handler.
    187187 *
    188188 * @returns nothing.
     
    261261 * Enqueues a new flush request
    262262 *
    263  * @retruns VBox status code.
     263 * @returns VBox status code.
    264264 * @param   pVScsiLun    The LUN instance which issued the request.
    265265 * @param   pVScsiReq    The virtual SCSI request associated with the flush.
  • trunk/src/VBox/Devices/Storage/VSCSI/VSCSILun.cpp

    r28800 r33540  
    8888 *
    8989 * @returns VBox status code.
    90  * @param   hVScsiLun               The virtal SCSI LUN handle to destroy.
     90 * @param   hVScsiLun               The virtual SCSI LUN handle to destroy.
    9191 */
    9292VBOXDDU_DECL(int) VSCSILunDestroy(VSCSILUN hVScsiLun)
  • trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp

    r33524 r33540  
    38133813    size_t cbBasenameSubstr = strlen(pszBasenameSubstr) + 1;
    38143814
    3815     /* Create searate descriptor file if necessary. */
     3815    /* Create separate descriptor file if necessary. */
    38163816    if (cExtents != 1 || (uImageFlags & VD_IMAGE_FLAGS_FIXED))
    38173817    {
     
    39663966                /* The spec says version is 1 for all VMDKs, but the vast
    39673967                 * majority of streamOptimized VMDKs actually contain
    3968                  * version 3 - so go with the majority. Both are acepted. */
     3968                 * version 3 - so go with the majority. Both are accepted. */
    39693969                pExtent->uVersion = 3;
    39703970                pExtent->uCompression = VMDK_COMPRESSION_DEFLATE;
     
    41104110    /* The spec says version is 1 for all VMDKs, but the vast
    41114111     * majority of streamOptimized VMDKs actually contain
    4112      * version 3 - so go with the majority. Both are acepted. */
     4112     * version 3 - so go with the majority. Both are accepted. */
    41134113    pExtent->uVersion = 3;
    41144114    pExtent->uCompression = VMDK_COMPRESSION_DEFLATE;
  • trunk/src/VBox/Devices/Storage/fdc.c

    r31128 r33540  
    22962296            cur_drv->last_sect = fdctrl->fifo[3];
    22972297#endif
    2298             /* Bochs BIOS is buggy and don't send format informations
     2298            /* Bochs BIOS is buggy and don't send format information
    22992299             * for each sector. So, pretend all's done right now...
    23002300             */
     
    26202620        switch (rc) {
    26212621        case VERR_ACCESS_DENIED:
    2622             /* Error already catched by DrvHostBase */
     2622            /* Error already cached by DrvHostBase */
    26232623            break;
    26242624        case VERR_PDM_NO_ATTACHED_DRIVER:
  • trunk/src/VBox/Devices/Storage/testcase/tstVDCopy.cpp

    r33524 r33540  
    145145            {
    146146                RTPrintf("tstVDCopy: Images differ uOffCurr=%llu\n", uOffCurr);
    147                 /* Do byte by byte comaprison. */
     147                /* Do byte by byte comparison. */
    148148                for (size_t i = 0; i < cbRead; i++)
    149149                {
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