mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-02-04 00:54:33 +00:00
Converting from 2048/byte iso to mds/mdf fails due to ValidateSectorTags returning true for uselong #1026
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @HeroponRikiBestest on GitHub (Nov 12, 2025).
Version
Development commit
Commit hash
31dfcadab8Tested debug version?
Which operating systems have you used?
What is the architectural bit size you're using?
What processor are you using?
Image format
ISO (input), mds/mdf (output)
Application that created the image
aaru (created the original iso via converting with aaru)
What were you doing when it failed?
Destination image format
MDS/MDF
Filesystem
No response
Description
Trying to convert from a 2048/byte iso to an mds/mdf fails, as convert.cs relies on the return value of useLong to know if it needs to write long sectors or not, and it always returns true when converting from ISO to mds/mdf, seemingly because the foreach on the sector tag type returns nothing for the inputformat, and thus it can never return false.
(It also seems like even if it was fixed, it would still always return true unless you used --force?)
Exact command line used
aaru i convert test.iso test.mds
Expected behavior
I expected the iso to convert to mds/mdf
Actual behavior
Aaru created 0 byte mds and mdf files
Output of command execution with debug output enabled
Affected image
Any ISO.