mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
* 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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user