Skip to content

Could not collect windows disk partition infomation #267

@RazYang

Description

@RazYang

There is a bug in ghw/pkg/block/block_windows.go
https://github.com/jaypipes/ghw/blob/f38192d6ca0e6d937e83bda5fd17f4870b4db014/pkg/block/block_windows.go#L118
The comparison between * uint32 and * uint32 would be wrong in this circumstance.

Bug can be fixed with method below:

...
if *diskdrive.Index == *diskpartition.DiskIndex {
    ...
}

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions