[UnitTest] [SGI Volume Header] Expected 14 partitions but found 15. #947

Closed
opened 2026-01-29 15:34:08 +00:00 by claunia · 0 comments
Owner

Originally created by @claunia on GitHub (Dec 9, 2022).

Version

Development commit

Commit hash

HEAD

Tested debug version?

  • Yes

Which operating systems have you used?

  • Windows
  • Linux
  • macOS
  • Other

What is the architectural bit size you're using?

  • 32-bit
  • 64-bit
  • Unsure or unknown

What processor are you using?

  • An Intel or AMD
  • An ARM or Apple Silicon
  • Unsure or unknown

Description

Expected 14 partitions but found 15.

Exact command line used

Unit test

Expected behavior

14 partitions.

Actual behavior

15 partitions.

Output of command execution with debug output enabled

Expected partitions to be a collection with 14 item(s) because Partitions: linux.aif, but {
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 1012094UL, 
        Length = 1012095UL, 
        Name = <null>, 
        Offset = 0UL, 
        Scheme = "SGI Disk Volume Header", 
        Sequence = 0UL, 
        Size = 518192640UL, 
        Start = 0UL, 
        Type = "Unknown partition type"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 57025UL, 
        Length = 40961UL, 
        Name = <null>, 
        Offset = 8225280UL, 
        Scheme = "SGI Disk Volume Header", 
        Sequence = 1UL, 
        Size = 20972032UL, 
        Start = 16065UL, 
        Type = "Unknown partition type"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 125700UL, 
        Length = 61441UL, 
        Name = <null>, 
        Offset = 32901120UL, 
        Scheme = "SGI Disk Volume Header", 
        Sequence = 2UL, 
        Size = 31457792UL, 
        Start = 64260UL, 
        Type = "Unknown partition type"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 210440UL, 
        Length = 81921UL, 
        Name = <null>, 
        Offset = 65802240UL, 
        Scheme = "SGI Disk Volume Header", 
        Sequence = 3UL, 
        Size = 41943552UL, 
        Start = 128520UL, 
        Type = "Unknown partition type"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 317070UL, 
        Length = 92161UL, 
        Name = <null>, 
        Offset = 115153920UL, 
        Scheme = "SGI Disk Volume Header", 
        Sequence = 4UL, 
        Size = 47186432UL, 
        Start = 224910UL, 
        Type = "Unknown partition type"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 423700UL, 
        Length = 102401UL, 
        Name = <null>, 
        Offset = 164505600UL, 
        Scheme = "SGI Disk Volume Header", 
        Sequence = 5UL, 
        Size = 52429312UL, 
        Start = 321300UL, 
        Type = "Unknown partition type"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 464475UL, 
        Length = 30721UL, 
        Name = <null>, 
        Offset = 222082560UL, 
        Scheme = "SGI Disk Volume Header", 
        Sequence = 6UL, 
        Size = 15729152UL, 
        Start = 433755UL, 
        Type = "Unknown partition type"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 537565UL, 
        Length = 71681UL, 
        Name = <null>, 
        Offset = 238533120UL, 
        Scheme = "SGI Disk Volume Header", 

(Output has exceeded the maximum of 100 lines. Increase FormattingOptions.MaxLines on AssertionScope or AssertionOptions to include more lines.)
        Sequence = 7UL, "
"contains 1 item(s) more than"
"{
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 57025UL, 
        Length = 40961UL, 
        Name = <null>, 
        Offset = 0UL, 
        Scheme = <null>, 
        Sequence = 0UL, 
        Size = 0UL, 
        Start = 16065UL, 
        Type = "XFS"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 125700UL, 
        Length = 61441UL, 
        Name = <null>, 
        Offset = 0UL, 
        Scheme = <null>, 
        Sequence = 1UL, 
        Size = 0UL, 
        Start = 64260UL, 
        Type = "Linux RAID"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 210440UL, 
        Length = 81921UL, 
        Name = <null>, 
        Offset = 0UL, 
        Scheme = <null>, 
        Sequence = 2UL, 
        Size = 0UL, 
        Start = 128520UL, 
        Type = "Track replacements"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 317070UL, 
        Length = 92161UL, 
        Name = <null>, 
        Offset = 0UL, 
        Scheme = <null>, 
        Sequence = 3UL, 
        Size = 0UL, 
        Start = 224910UL, 
        Type = "Sector replacements"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 423700UL, 
        Length = 102401UL, 
        Name = <null>, 
        Offset = 0UL, 
        Scheme = <null>, 
        Sequence = 4UL, 
        Size = 0UL, 
        Start = 321300UL, 
        Type = "Raw data (swap)"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 464475UL, 
        Length = 30721UL, 
        Name = <null>, 
        Offset = 0UL, 
        Scheme = <null>, 
        Sequence = 5UL, 
        Size = 0UL, 
        Start = 433755UL, 
        Type = "4.2BSD Fast File System"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 537565UL, 
        Length = 71681UL, 
        Name = <null>, 
        Offset = 0UL, 
        Scheme = <null>, 
        Sequence = 6UL, 
        Size = 0UL, 
        Start = 465885UL, 
        Type = "UNIX System V"
    }, 
    Aaru.CommonTypes.Partition
    {
        Description = <null>, 
        End = 556450UL,
Originally created by @claunia on GitHub (Dec 9, 2022). ### Version Development commit ### Commit hash HEAD ### Tested debug version? - [X] Yes ### Which operating systems have you used? - [ ] Windows - [ ] Linux - [X] macOS - [ ] Other ### What is the architectural bit size you're using? - [ ] 32-bit - [X] 64-bit - [ ] Unsure or unknown ### What processor are you using? - [ ] An Intel or AMD - [X] An ARM or Apple Silicon - [ ] Unsure or unknown ### Description Expected 14 partitions but found 15. ### Exact command line used Unit test ### Expected behavior 14 partitions. ### Actual behavior 15 partitions. ### Output of command execution with debug output enabled ```shell Expected partitions to be a collection with 14 item(s) because Partitions: linux.aif, but { Aaru.CommonTypes.Partition { Description = <null>, End = 1012094UL, Length = 1012095UL, Name = <null>, Offset = 0UL, Scheme = "SGI Disk Volume Header", Sequence = 0UL, Size = 518192640UL, Start = 0UL, Type = "Unknown partition type" }, Aaru.CommonTypes.Partition { Description = <null>, End = 57025UL, Length = 40961UL, Name = <null>, Offset = 8225280UL, Scheme = "SGI Disk Volume Header", Sequence = 1UL, Size = 20972032UL, Start = 16065UL, Type = "Unknown partition type" }, Aaru.CommonTypes.Partition { Description = <null>, End = 125700UL, Length = 61441UL, Name = <null>, Offset = 32901120UL, Scheme = "SGI Disk Volume Header", Sequence = 2UL, Size = 31457792UL, Start = 64260UL, Type = "Unknown partition type" }, Aaru.CommonTypes.Partition { Description = <null>, End = 210440UL, Length = 81921UL, Name = <null>, Offset = 65802240UL, Scheme = "SGI Disk Volume Header", Sequence = 3UL, Size = 41943552UL, Start = 128520UL, Type = "Unknown partition type" }, Aaru.CommonTypes.Partition { Description = <null>, End = 317070UL, Length = 92161UL, Name = <null>, Offset = 115153920UL, Scheme = "SGI Disk Volume Header", Sequence = 4UL, Size = 47186432UL, Start = 224910UL, Type = "Unknown partition type" }, Aaru.CommonTypes.Partition { Description = <null>, End = 423700UL, Length = 102401UL, Name = <null>, Offset = 164505600UL, Scheme = "SGI Disk Volume Header", Sequence = 5UL, Size = 52429312UL, Start = 321300UL, Type = "Unknown partition type" }, Aaru.CommonTypes.Partition { Description = <null>, End = 464475UL, Length = 30721UL, Name = <null>, Offset = 222082560UL, Scheme = "SGI Disk Volume Header", Sequence = 6UL, Size = 15729152UL, Start = 433755UL, Type = "Unknown partition type" }, Aaru.CommonTypes.Partition { Description = <null>, End = 537565UL, Length = 71681UL, Name = <null>, Offset = 238533120UL, Scheme = "SGI Disk Volume Header", (Output has exceeded the maximum of 100 lines. Increase FormattingOptions.MaxLines on AssertionScope or AssertionOptions to include more lines.) Sequence = 7UL, " "contains 1 item(s) more than" "{ Aaru.CommonTypes.Partition { Description = <null>, End = 57025UL, Length = 40961UL, Name = <null>, Offset = 0UL, Scheme = <null>, Sequence = 0UL, Size = 0UL, Start = 16065UL, Type = "XFS" }, Aaru.CommonTypes.Partition { Description = <null>, End = 125700UL, Length = 61441UL, Name = <null>, Offset = 0UL, Scheme = <null>, Sequence = 1UL, Size = 0UL, Start = 64260UL, Type = "Linux RAID" }, Aaru.CommonTypes.Partition { Description = <null>, End = 210440UL, Length = 81921UL, Name = <null>, Offset = 0UL, Scheme = <null>, Sequence = 2UL, Size = 0UL, Start = 128520UL, Type = "Track replacements" }, Aaru.CommonTypes.Partition { Description = <null>, End = 317070UL, Length = 92161UL, Name = <null>, Offset = 0UL, Scheme = <null>, Sequence = 3UL, Size = 0UL, Start = 224910UL, Type = "Sector replacements" }, Aaru.CommonTypes.Partition { Description = <null>, End = 423700UL, Length = 102401UL, Name = <null>, Offset = 0UL, Scheme = <null>, Sequence = 4UL, Size = 0UL, Start = 321300UL, Type = "Raw data (swap)" }, Aaru.CommonTypes.Partition { Description = <null>, End = 464475UL, Length = 30721UL, Name = <null>, Offset = 0UL, Scheme = <null>, Sequence = 5UL, Size = 0UL, Start = 433755UL, Type = "4.2BSD Fast File System" }, Aaru.CommonTypes.Partition { Description = <null>, End = 537565UL, Length = 71681UL, Name = <null>, Offset = 0UL, Scheme = <null>, Sequence = 6UL, Size = 0UL, Start = 465885UL, Type = "UNIX System V" }, Aaru.CommonTypes.Partition { Description = <null>, End = 556450UL, ```
claunia added the bugpartitioning scheme labels 2026-01-29 15:34:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#947