Added support for LisaFS v2.

This commit is contained in:
2016-07-28 04:12:49 +01:00
parent 0484d66c14
commit 99c567d3b3
5 changed files with 95 additions and 17 deletions

View File

@@ -62,7 +62,7 @@ namespace DiscImageChef.Filesystems.LisaFS
if(!mounted)
return Errno.AccessDenied;
if(fileId < 5)
if(fileId < 4 || (fileId == 4 && mddf.fsversion != LisaFSv2))
return Errno.InvalidArgument;
if(extentCache.TryGetValue(fileId, out file))