Skip to content

Conversation

@mitchcapper
Copy link

Only reading from Raid1

This should support all linux raid versions from 0.9 to the current 1.2. 0.9 technically probably works without this due to the logical volume starting at block 0, but for anything else this makes it work.

Let me know if this should go into a new project rather than core, also I just left the copyright from most of the others on it.

@LTRData
Copy link
Owner

LTRData commented Sep 12, 2025

Great work! I feel though that this would fit better into one of the sub-libraries. For example, it could go into DiscUtils.Lvm (even though technically not LVM, but Linux-specific RAID volume management in a similar way).

@mitchcapper
Copy link
Author

Ha, yeah it was clearly modeled much off the LVM implementation I will stick it in there.

@mitchcapper mitchcapper force-pushed the linux_software_raid_support_pr branch from c7c5244 to 5886369 Compare September 12, 2025 11:13
@mitchcapper
Copy link
Author

Done

@LTRData LTRData merged commit 68a3d02 into LTRData:LTRData.DiscUtils-initial Sep 12, 2025
2 checks passed
@LTRData
Copy link
Owner

LTRData commented Sep 12, 2025

I added some minor changes, such as detection of Linux RAID independent of BIOS or GPT partition types. Also, added a test case with a test image with a mirror between two partitions.

Thanks again for your contribution! Really appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants