You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
【Background】:
I reset board and run the dosfsck command once. then, The user cannot access a file directory.
The operations of "cd ***" and "rm ***" was failed.
I checked the FSCK logs and found that a large number of file corruption check records were recorded.
I re-do the dosfsck command,the directory will be deleted. and the system will be ok ,The fsck logs are as follows:
【question】:
The error information is in the following code segment in check_file():
if (!curEntry.value || bad_cluster(fs, curr)) {
printf("%s\n Contains a %s cluster (%lu). Assuming EOF.\n",
path_name(file), curEntry.value ? "bad" : "free", (unsigned long)curr);
if (prev)
set_fat(fs, prev, -1);
else if (!file->offset)
die("FAT32 root dir starts with a bad cluster!");
else
MODIFY_START(file, 0, fs);
break;
}
In the else branch,why not modify the file name[0] as DELETED_FLAG ? or I shoud run dosfsck with the operation of "V"?
The text was updated successfully, but these errors were encountered:
【Background】:
I reset board and run the dosfsck command once. then, The user cannot access a file directory.
The operations of "cd ***" and "rm ***" was failed.
【question】:
The error information is in the following code segment in check_file():
In the else branch,why not modify the file name[0] as DELETED_FLAG ? or I shoud run dosfsck with the operation of "V"?
The text was updated successfully, but these errors were encountered: