Commit mft extensions right away. Don't wait for a clean unmount, or you may face data loss.

edge.strict_endians
uvman 2006-07-21 23:03:59 +00:00
parent 9efb57918f
commit a1a13da74a
1 changed files with 5 additions and 2 deletions

View File

@ -1356,8 +1356,11 @@ found_free_rec:
if (mft_na->data_size > mft_na->allocated_size ||
mft_na->initialized_size > mft_na->data_size)
NTFS_BUG("mft_na sanity checks failed");
// BUG_ON(mft_na->initialized_size > mft_na->data_size);
// BUG_ON(mft_na->data_size > mft_na->allocated_size);
/* Sync MFT to disk now in order to minimize data-loss. */
if (ntfs_inode_sync(mft_na->ni)) {
ntfs_log_debug("mft sync after extension failed. rolling back.");
goto undo_data_init;
}
mft_rec_already_initialized:
/*
* We now have allocated and initialized the mft record. Need to read