Reports correct filesystem version on Statfs();

This commit is contained in:
2016-07-31 20:56:15 +01:00
parent a14027f2d7
commit 8de5e47b3b
2 changed files with 16 additions and 1 deletions

View File

@@ -368,7 +368,18 @@ namespace DiscImageChef.Filesystems.LisaFS
stat.Id.Serial64 = mddf.volid;
stat.Id.IsLong = true;
stat.PluginId = PluginUUID;
stat.Type = "LisaFS v3";
switch(mddf.fsversion)
{
case LisaFSv1:
stat.Type = "LisaFS v1";
break;
case LisaFSv2:
stat.Type = "LisaFS v2";
break;
case LisaFSv3:
stat.Type = "LisaFS v3";
break;
}
return Errno.NoError;
}