* 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

@@ -206,6 +206,12 @@ namespace DiscImageChef.Filesystems.LisaFS
Errno error;
mounted = true;
this.debug = debug;
if(debug)
{
printedExtents = new List<short>();
}
List<CatalogEntry> tempCat;
error = ReadCatalog((short)FILEID_DIRECTORY, out tempCat);
@@ -217,8 +223,6 @@ namespace DiscImageChef.Filesystems.LisaFS
return error;
}
this.debug = debug;
if(debug)
{
byte[] temp;
@@ -286,11 +290,6 @@ namespace DiscImageChef.Filesystems.LisaFS
xmlFSType.VolumeName = mddf.volname;
xmlFSType.VolumeSerial = String.Format("{0:X16}", mddf.volid);
if(debug)
{
printedExtents = new List<short>();
}
return Errno.NoError;
}
}