Changeset 30324 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 21, 2010 11:50:02 AM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r30300 r30324 475 475 , mVMPoweredOff(false) 476 476 , mVMIsAlreadyPoweringOff(false) 477 , mfSnapshotFolderWarningShown(false) 477 , mfSnapshotFolderSizeWarningShown(false) 478 , mfSnapshotFolderExt4WarningShown(false) 478 479 , mVMMDev(NULL) 479 480 , mAudioSniffer(NULL) -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r30290 r30324 2488 2488 if ( typeSnap == RTFS_FS_TYPE_FAT 2489 2489 && u64Size >= _4G 2490 && !mfSnapshotFolder WarningShown)2490 && !mfSnapshotFolderSizeWarningShown) 2491 2491 { 2492 2492 const char *pszUnit; … … 2511 2511 strSnap.raw(), strFile.raw(), u64Print, pszUnit); 2512 2512 /* Show this particular warning only once */ 2513 mfSnapshotFolder WarningShown = true;2513 mfSnapshotFolderSizeWarningShown = true; 2514 2514 } 2515 2515 … … 2518 2518 * Ext4 bug: Check if the host I/O cache is disabled and the disk image is located 2519 2519 * on an ext4 partition. Later we have to check the Linux kernel version! 2520 * This bug apparently applies to the XFS file system as well. 2520 2521 */ 2521 2522 if ( (uCaps & MediumFormatCapabilities_Asynchronous) 2522 2523 && !fUseHostIOCache 2523 2524 && ( typeFile == RTFS_FS_TYPE_EXT4 2524 || type Snap == RTFS_FS_TYPE_EXT4))2525 || typeFile == RTFS_FS_TYPE_XFS)) 2525 2526 { 2526 2527 setVMRuntimeErrorCallbackF(pVM, this, 0, 2527 2528 "Ext4PartitionDetected", 2528 2529 N_("The host I/O cache for at least one controller is disabled " 2529 " but the medium '%ls' or the snapshot folderfor this VM "2530 "is located on an ext4partition. There is a known Linux "2530 "and the medium '%ls' for this VM " 2531 "is located on an %s partition. There is a known Linux " 2531 2532 "kernel bug which can lead to the corruption of the virtual " 2532 2533 "disk image under these conditions.\n" … … 2535 2536 "onto a different file system.\n" 2536 2537 "The host I/O cache will now be enabled for this medium"), 2537 strFile.raw() );2538 strFile.raw(), typeFile == RTFS_FS_TYPE_EXT4 ? "ext4" : "xfs"); 2538 2539 fUseHostIOCache = true; 2540 } 2541 else if ( (uCaps & MediumFormatCapabilities_Asynchronous) 2542 && !fUseHostIOCache 2543 && ( typeSnap == RTFS_FS_TYPE_EXT4 2544 || typeSnap == RTFS_FS_TYPE_XFS) 2545 && !mfSnapshotFolderExt4WarningShown) 2546 { 2547 setVMRuntimeErrorCallbackF(pVM, this, 0, 2548 "Ext4PartitionDetected", 2549 N_("The host I/O cache for at least one controller is disabled " 2550 "and the snapshot folder for this VM " 2551 "is located on an %s partition. There is a known Linux " 2552 "kernel bug which can lead to the corruption of the virtual " 2553 "disk image under these conditions.\n" 2554 "Either enable the host I/O cache permanently in the VM " 2555 "settings or put the disk image and the snapshot folder " 2556 "onto a different file system.\n" 2557 "The host I/O cache will now be enabled for this medium"), 2558 typeSnap == RTFS_FS_TYPE_EXT4 ? "ext4" : "xfs"); 2559 fUseHostIOCache = true; 2560 mfSnapshotFolderExt4WarningShown = true; 2539 2561 } 2540 2562 #endif -
trunk/src/VBox/Main/include/ConsoleImpl.h
r30289 r30324 630 630 /** true when vmstateChangeCallback shouldn't initiate a power down. */ 631 631 bool mVMIsAlreadyPoweringOff : 1; 632 /** true if we already showed the snapshot folder warning. */ 633 bool mfSnapshotFolderWarningShown : 1; 632 /** true if we already showed the snapshot folder size warning. */ 633 bool mfSnapshotFolderSizeWarningShown : 1; 634 /** true if we already showed the snapshot folder ext4/xfs bug warning. */ 635 bool mfSnapshotFolderExt4WarningShown : 1; 634 636 635 637 /** The current network attachment type in the VM.
Note:
See TracChangeset
for help on using the changeset viewer.