From 8b8ba5632232118ccc745c894abab6b4bdad54bc Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 15 Jul 2017 01:36:40 +0100 Subject: [PATCH] On optical disks consider each track a separate partition for sidecar creation. --- DiscImageChef.Core/Sidecar.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DiscImageChef.Core/Sidecar.cs b/DiscImageChef.Core/Sidecar.cs index 5a04eccb..685ba3c5 100644 --- a/DiscImageChef.Core/Sidecar.cs +++ b/DiscImageChef.Core/Sidecar.cs @@ -547,6 +547,10 @@ namespace DiscImageChef.Core xmlTrk.FileSystemInformation = new PartitionType[1]; if(partitions.Count > 0) { + partitions.Add(new Partition { + PartitionStartSector = (ulong)xmlTrk.StartSector, + PartitionSectors = (ulong)((xmlTrk.EndSector - xmlTrk.StartSector) + 1) + }); xmlTrk.FileSystemInformation = new PartitionType[partitions.Count]; for(int i = 0; i < partitions.Count; i++) {