* DiscImageChef.Filesystems/Acorn.cs:

* DiscImageChef.Filesystems/DiscImageChef.Filesystems.csproj:
	  Added support for Acorn ADFS.

	* DiscImageChef.Partitions/Sun.cs:
	* DiscImageChef.Partitions/DiscImageChef.Partitions.csproj:
	  Added support for Sun disklabel.

	* DiscImageChef.Filesystems/FFS.cs:
	  Correct FFS information.

	* DiscImageChef/Commands/DumpMedia.cs:
	  Correct physical/logical block size in sidecar.

	* TODO:
	* README.md:
	  Added support for Sun disklabel.
	Added support for Acorn ADFS.
This commit is contained in:
2016-02-05 05:39:15 +00:00
parent ab24c63d4b
commit a090c8f46c
11 changed files with 662 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
2016-02-05 Natalia Portillo <claunia@claunia.com>
* Commands/DumpMedia.cs:
Correct physical/logical block size in sidecar.
2016-02-05 Natalia Portillo <claunia@claunia.com>
* Commands/Analyze.cs:

View File

@@ -142,6 +142,8 @@ namespace DiscImageChef.Commands
byte[] tmpBuf;
MediaType dskType = MediaType.Unknown;
bool opticalDisc = false;
uint logicalBlockSize = 0;
uint physicalBlockSize = 0;
if (dev.IsRemovable)
{
@@ -262,6 +264,9 @@ namespace DiscImageChef.Commands
DicConsole.WriteLine("Media has {0} blocks of {1} bytes/each. (for a total of {2} bytes)",
blocks, blockSize, blocks * (ulong)blockSize);
}
logicalBlockSize = blockSize;
physicalBlockSize = blockSize;
}
if (dev.SCSIType == DiscImageChef.Decoders.SCSI.PeripheralDeviceTypes.SequentialAccess)
@@ -545,6 +550,8 @@ namespace DiscImageChef.Commands
}
}
}
physicalBlockSize = 2448;
}
#endregion CompactDisc
else
@@ -1604,6 +1611,7 @@ namespace DiscImageChef.Commands
DicConsole.WriteLine("Reading {0} raw bytes ({1} cooked bytes) per sector.",
longBlockSize, blockSize);
blocksToRead = 1;
physicalBlockSize = longBlockSize;
blockSize = longBlockSize;
}
}
@@ -2235,7 +2243,8 @@ namespace DiscImageChef.Commands
sidecar.BlockMedia[0].Interface = "SCSI";
}
sidecar.BlockMedia[0].LogicalBlocks = (long)blocks;
sidecar.BlockMedia[0].LogicalBlockSize = (int)blockSize;
sidecar.BlockMedia[0].PhysicalBlockSize = (int)physicalBlockSize;
sidecar.BlockMedia[0].LogicalBlockSize = (int)logicalBlockSize;
sidecar.BlockMedia[0].Manufacturer = dev.Manufacturer;
sidecar.BlockMedia[0].Model = dev.Model;
sidecar.BlockMedia[0].Serial = dev.Serial;