* DiscImageChef.Filesystems/LisaFS/Super.cs:

Initialize debug structures before the root catalog is
	  cached.

	* DiscImageChef.Filesystems/LisaFS/File.cs:
	  Detect truncated files (errors in the filesystem).
This commit is contained in:
2016-07-27 14:34:29 +01:00
parent 763f747072
commit 5915185f70
2 changed files with 9 additions and 11 deletions

View File

@@ -412,11 +412,10 @@ namespace DiscImageChef.Filesystems.LisaFS
int realSize;
if(fileSizeCache.TryGetValue(fileId, out realSize))
{
buf = new byte[realSize];
Array.Copy(temp, 0, buf, 0, realSize);
if(realSize > temp.Length)
DicConsole.ErrorWriteLine("File {0} gets truncated.", fileId);
}
else
buf = temp;
buf = temp;
fileCache.Add(fileId, buf);
}