Fixed a wrong test report in ntfsfix
When used with the "no-action" option, the test for self-located MFT still reported the partition to have been repaired. Adapt the report to only tell repairing is possible.pull/2/head
parent
4a4ec8c1c6
commit
94f8d2128e
|
@ -1118,9 +1118,10 @@ static int fix_selfloc_conditions(struct MFT_SELF_LOCATED *selfloc)
|
|||
*
|
||||
* Only low-level library functions can be used.
|
||||
*
|
||||
* Returns 0 if the conditions for the error were not met or
|
||||
* the error could be fixed,
|
||||
* -1 if some error was encountered
|
||||
* Returns 0 if the conditions for the error was met and
|
||||
* this error could be fixed,
|
||||
* -1 if the condition was not met or some error
|
||||
* which could not be fixed was encountered.
|
||||
*/
|
||||
|
||||
static int fix_self_located_mft(ntfs_volume *vol)
|
||||
|
@ -1147,7 +1148,7 @@ static int fix_self_located_mft(ntfs_volume *vol)
|
|||
ntfs_log_info(res ? FAILED : OK);
|
||||
} else {
|
||||
ntfs_log_info(OK);
|
||||
res = 0;
|
||||
res = -1;
|
||||
}
|
||||
free(selfloc.mft0);
|
||||
free(selfloc.mft1);
|
||||
|
@ -1378,6 +1379,8 @@ error_exit :
|
|||
*
|
||||
* This is a replay of the normal start up sequence with fixes when
|
||||
* some problem arise.
|
||||
*
|
||||
* Returns 0 if there was an error and a fix is available
|
||||
*/
|
||||
|
||||
static int fix_startup(struct ntfs_device *dev, unsigned long flags)
|
||||
|
|
Loading…
Reference in New Issue