mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
* FileSystemIDandChk/ImagePlugins/CDRWin.cs:
* FileSystemIDandChk/ImagePlugins/DiskCopy42.cs: No need to call them "handler"s. * FileSystemIDandChk/Main.cs: DEBUG lines should only appear while on debug mode * FileSystemIDandChk/PartPlugins/MBR.cs: Do not check MBR presence on less than 512 bytes/sector disks * FileSystemIDandChk/Plugins/FAT.cs: Get cleaner output, add newline. * FileSystemIDandChk/Plugins/ODS.cs: Do not check FILES-11 (ODS) presence on less than 512 bytes/sector disks
This commit is contained in:
@@ -61,6 +61,9 @@ namespace FileSystemIDandChk.PartPlugins
|
||||
|
||||
partitions = new List<Partition>();
|
||||
|
||||
if (imagePlugin.GetSectorSize() < 512)
|
||||
return false;
|
||||
|
||||
byte[] sector = imagePlugin.ReadSector(0);
|
||||
|
||||
signature = BitConverter.ToUInt16(sector, 0x1FE);
|
||||
|
||||
Reference in New Issue
Block a user