Skip to content

Commit

Permalink
Add formatting of DOS4-7, but not tested. Update hst amiga with forma…
Browse files Browse the repository at this point in the history
…tting fixes. Fix rdb init disk size calculation.
  • Loading branch information
henrikstengaard committed Sep 30, 2022
1 parent 5d6d945 commit 4cfd5f1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/Hst.Imager.ConsoleApp/Hst.Imager.ConsoleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
<None Update="export_dh0_1gb_import_4gb.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="license.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Hst.Imager.Core/Commands/RdbInitCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public override async Task<Result> Execute(CancellationToken token)

diskGeometry = new DiskGeometry
{
DiskSize = cylinders * heads * sectors * 512,
DiskSize = (long)cylinders * heads * sectors * 512,
Cylinders = cylinders,
Heads = heads,
Sectors = sectors
Expand Down
4 changes: 4 additions & 0 deletions src/Hst.Imager.Core/Commands/RdbPartFormatCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public override async Task<Result> Execute(CancellationToken token)
switch (partitionBlock.DosTypeFormatted)
{
case "DOS\\3":
case "DOS\\4":
case "DOS\\5":
case "DOS\\6":
case "DOS\\7":
await FastFileSystemFormatter.FormatPartition(stream, partitionBlock, name);
break;
case "PDS\\3":
Expand Down
2 changes: 1 addition & 1 deletion src/Hst.Imager.Core/Hst.Imager.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PackageReference Include="DiscUtils.Containers" Version="0.16.15" />
<PackageReference Include="DiscUtils.FileSystems" Version="0.16.15" />
<PackageReference Include="DiscUtils.Vhd" Version="0.16.15" />
<PackageReference Include="Hst.Amiga" Version="0.2.31" />
<PackageReference Include="Hst.Amiga" Version="0.2.33" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" />
<PackageReference Include="plist-cil" Version="2.2.0" />
</ItemGroup>
Expand Down

0 comments on commit 4cfd5f1

Please sign in to comment.