Changeset 30324 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Jun 21, 2010 11:50:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.