Changeset 66248 in vbox
- Timestamp:
- Mar 26, 2017 9:38:33 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114169
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VD.cpp
r66209 r66248 53 53 #endif 54 54 55 #define VBOXHDDDISK_SIGNATURE 0x6f0e2a7d 55 /** Magic number contained in the VDISK instance data, used for checking that the passed 56 * pointer contains a valid instance in debug builds. */ 57 #define VDISK_SIGNATURE 0x6f0e2a7d 56 58 57 59 /** Buffer size used for merging images. */ … … 222 224 struct VBOXHDD 223 225 { 224 /** Structure signature (V BOXHDDDISK_SIGNATURE). */226 /** Structure signature (VDISK_SIGNATURE). */ 225 227 uint32_t u32Signature; 226 228 … … 6156 6158 if (pDisk) 6157 6159 { 6158 pDisk->u32Signature = V BOXHDDDISK_SIGNATURE;6160 pDisk->u32Signature = VDISK_SIGNATURE; 6159 6161 pDisk->enmType = enmType; 6160 6162 pDisk->cImages = 0; … … 6231 6233 /* sanity check */ 6232 6234 AssertPtrBreak(pDisk); 6233 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));6235 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 6234 6236 Assert(!pDisk->fLocked); 6235 6237 … … 6425 6427 /* sanity check */ 6426 6428 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 6427 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));6429 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 6428 6430 6429 6431 /* Check arguments. */ … … 6752 6754 /* sanity check */ 6753 6755 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 6754 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));6756 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 6755 6757 6756 6758 /* Check arguments. */ … … 6923 6925 /* sanity check */ 6924 6926 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 6925 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));6927 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 6926 6928 6927 6929 /* Check arguments. */ … … 7047 7049 /* sanity check */ 7048 7050 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 7049 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));7051 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 7050 7052 7051 7053 /* Check arguments. */ … … 7338 7340 /* sanity check */ 7339 7341 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 7340 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));7342 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 7341 7343 7342 7344 /* Check arguments. */ … … 7612 7614 /* sanity check */ 7613 7615 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 7614 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));7616 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 7615 7617 7616 7618 /* Check arguments. */ … … 7823 7825 /* sanity check */ 7824 7826 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 7825 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));7827 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 7826 7828 7827 7829 /* For simplicity reasons lock for writing as the image reopen below … … 8280 8282 AssertMsgBreakStmt(VALID_PTR(pDiskFrom), ("pDiskFrom=%#p\n", pDiskFrom), 8281 8283 rc = VERR_INVALID_PARAMETER); 8282 AssertMsg(pDiskFrom->u32Signature == V BOXHDDDISK_SIGNATURE,8284 AssertMsg(pDiskFrom->u32Signature == VDISK_SIGNATURE, 8283 8285 ("u32Signature=%08x\n", pDiskFrom->u32Signature)); 8284 8286 … … 8290 8292 AssertMsgBreakStmt(VALID_PTR(pDiskTo), ("pDiskTo=%#p\n", pDiskTo), 8291 8293 rc = VERR_INVALID_PARAMETER); 8292 AssertMsg(pDiskTo->u32Signature == V BOXHDDDISK_SIGNATURE,8294 AssertMsg(pDiskTo->u32Signature == VDISK_SIGNATURE, 8293 8295 ("u32Signature=%08x\n", pDiskTo->u32Signature)); 8294 8296 AssertMsgBreakStmt( (nImageFromSame < nImage || nImageFromSame == VD_IMAGE_CONTENT_UNKNOWN) … … 8635 8637 AssertMsgBreakStmt(VALID_PTR(pDisk), ("pDisk=%#p\n", pDisk), 8636 8638 rc = VERR_INVALID_PARAMETER); 8637 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE,8639 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, 8638 8640 ("u32Signature=%08x\n", pDisk->u32Signature)); 8639 8641 … … 8744 8746 AssertMsgBreakStmt(VALID_PTR(pDisk), ("pDisk=%#p\n", pDisk), 8745 8747 rc = VERR_INVALID_PARAMETER); 8746 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE,8748 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, 8747 8749 ("u32Signature=%08x\n", pDisk->u32Signature)); 8748 8750 … … 8858 8860 AssertMsgBreakStmt(VALID_PTR(pDisk), ("pDisk=%#p\n", pDisk), 8859 8861 rc = VERR_INVALID_PARAMETER); 8860 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE,8862 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, 8861 8863 ("u32Signature=%08x\n", pDisk->u32Signature)); 8862 8864 … … 9057 9059 /* sanity check */ 9058 9060 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 9059 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9061 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9060 9062 9061 9063 /* Not worth splitting this up into a read lock phase and write … … 9169 9171 /* sanity check */ 9170 9172 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 9171 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9173 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9172 9174 9173 9175 rc2 = vdThreadStartWrite(pDisk); … … 9209 9211 /* sanity check */ 9210 9212 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 9211 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9213 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9212 9214 9213 9215 AssertMsgBreakStmt(!(fFlags & ~VD_FILTER_FLAGS_MASK), … … 9265 9267 /* sanity check */ 9266 9268 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 9267 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9269 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9268 9270 9269 9271 /* Lock the entire operation. */ … … 9329 9331 /* sanity check */ 9330 9332 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 9331 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9333 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9332 9334 9333 9335 /* Lock the entire operation. */ … … 9385 9387 /* sanity check */ 9386 9388 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 9387 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9389 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9388 9390 9389 9391 /* Check arguments. */ … … 9454 9456 /* sanity check */ 9455 9457 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 9456 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9458 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9457 9459 9458 9460 /* Check arguments. */ … … 9523 9525 /* sanity check */ 9524 9526 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 9525 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9527 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9526 9528 9527 9529 rc2 = vdThreadStartWrite(pDisk); … … 9577 9579 /* sanity check */ 9578 9580 AssertPtrBreakStmt(pDisk, cImages = 0); 9579 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9581 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9580 9582 9581 9583 rc2 = vdThreadStartRead(pDisk); … … 9614 9616 /* sanity check */ 9615 9617 AssertPtrBreakStmt(pDisk, fReadOnly = false); 9616 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9618 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9617 9619 9618 9620 rc2 = vdThreadStartRead(pDisk); … … 9657 9659 /* sanity check */ 9658 9660 AssertPtrBreakStmt(pDisk, cbSector = 0); 9659 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9661 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9660 9662 9661 9663 rc2 = vdThreadStartRead(pDisk); … … 9697 9699 /* sanity check */ 9698 9700 AssertPtrBreakStmt(pDisk, cbSize = 0); 9699 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9701 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9700 9702 9701 9703 rc2 = vdThreadStartRead(pDisk); … … 9737 9739 /* sanity check */ 9738 9740 AssertPtrBreakStmt(pDisk, cbSize = 0); 9739 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9741 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9740 9742 9741 9743 rc2 = vdThreadStartRead(pDisk); … … 9781 9783 /* sanity check */ 9782 9784 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 9783 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9785 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9784 9786 9785 9787 /* Check arguments. */ … … 9846 9848 /* sanity check */ 9847 9849 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 9848 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9850 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9849 9851 9850 9852 /* Check arguments. */ … … 9949 9951 /* sanity check */ 9950 9952 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 9951 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));9953 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 9952 9954 9953 9955 /* Check arguments. */ … … 10014 10016 /* sanity check */ 10015 10017 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10016 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10018 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10017 10019 10018 10020 /* Check arguments. */ … … 10119 10121 /* sanity check */ 10120 10122 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10121 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10123 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10122 10124 10123 10125 /* Check arguments. */ … … 10230 10232 /* sanity check */ 10231 10233 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10232 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10234 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10233 10235 10234 10236 /* Check arguments. */ … … 10279 10281 /* sanity check */ 10280 10282 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10281 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10283 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10282 10284 10283 10285 /* Check arguments. */ … … 10331 10333 /* sanity check */ 10332 10334 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10333 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10335 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10334 10336 10335 10337 /* Check arguments. */ … … 10380 10382 /* sanity check */ 10381 10383 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10382 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10384 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10383 10385 10384 10386 /* Check arguments. */ … … 10430 10432 /* sanity check */ 10431 10433 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10432 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10434 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10433 10435 10434 10436 /* Check arguments. */ … … 10491 10493 /* sanity check */ 10492 10494 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10493 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10495 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10494 10496 10495 10497 /* Check arguments. */ … … 10556 10558 /* sanity check */ 10557 10559 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10558 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10560 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10559 10561 10560 10562 /* Check arguments. */ … … 10609 10611 /* sanity check */ 10610 10612 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10611 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10613 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10612 10614 10613 10615 /* Check arguments. */ … … 10657 10659 /* sanity check */ 10658 10660 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10659 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10661 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10660 10662 10661 10663 /* Check arguments. */ … … 10705 10707 /* sanity check */ 10706 10708 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10707 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10709 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10708 10710 10709 10711 AssertMsgBreakStmt(VALID_PTR(pUuid) || pUuid == NULL, … … 10757 10759 /* sanity check */ 10758 10760 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10759 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10761 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10760 10762 10761 10763 /* Check arguments. */ … … 10806 10808 /* sanity check */ 10807 10809 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10808 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10810 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10809 10811 10810 10812 /* Check arguments. */ … … 10861 10863 /* sanity check */ 10862 10864 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10863 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10865 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10864 10866 10865 10867 /* Check arguments. */ … … 10909 10911 /* sanity check */ 10910 10912 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10911 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10913 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10912 10914 10913 10915 /* Check arguments. */ … … 10957 10959 /* sanity check */ 10958 10960 AssertPtrBreak(pDisk); 10959 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10961 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10960 10962 10961 10963 if (!pDisk->pInterfaceError || !VALID_PTR(pDisk->pInterfaceError->pfnMessage)) … … 10995 10997 /* sanity check */ 10996 10998 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 10997 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));10999 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 10998 11000 10999 11001 /* Check arguments. */ … … 11058 11060 /* sanity check */ 11059 11061 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 11060 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));11062 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 11061 11063 11062 11064 /* Check arguments. */ … … 11129 11131 /* sanity check */ 11130 11132 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 11131 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));11133 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 11132 11134 11133 11135 /* Check arguments. */ … … 11197 11199 /* sanity check */ 11198 11200 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 11199 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));11201 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 11200 11202 11201 11203 rc2 = vdThreadStartWrite(pDisk); … … 11253 11255 /* sanity check */ 11254 11256 AssertPtrBreakStmt(pDisk, rc = VERR_INVALID_PARAMETER); 11255 AssertMsg(pDisk->u32Signature == V BOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));11257 AssertMsg(pDisk->u32Signature == VDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature)); 11256 11258 11257 11259 rc2 = vdThreadStartWrite(pDisk);
Note:
See TracChangeset
for help on using the changeset viewer.