ext filesystem requires 512 bytes/sector.

This commit is contained in:
2017-09-28 15:44:48 +01:00
parent 2a6e929c67
commit 8e15e863d5

View File

@@ -61,6 +61,9 @@ namespace DiscImageChef.Filesystems
public override bool Identify(ImagePlugins.ImagePlugin imagePlugin, Partition partition) public override bool Identify(ImagePlugins.ImagePlugin imagePlugin, Partition partition)
{ {
if(imagePlugin.GetSectorSize() < 512)
return false;
ulong sbSector = sbPos / imagePlugin.GetSectorSize(); ulong sbSector = sbPos / imagePlugin.GetSectorSize();
uint sbOff = sbPos % imagePlugin.GetSectorSize(); uint sbOff = sbPos % imagePlugin.GetSectorSize();
@@ -82,6 +85,9 @@ namespace DiscImageChef.Filesystems
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
if(imagePlugin.GetSectorSize() < 512)
return;
ulong sbSector = sbPos / imagePlugin.GetSectorSize(); ulong sbSector = sbPos / imagePlugin.GetSectorSize();
uint sbOff = sbPos % imagePlugin.GetSectorSize(); uint sbOff = sbPos % imagePlugin.GetSectorSize();