host: include mdadm RAID devices in disk detection - #447
Merged
Conversation
glehmann
force-pushed
the
gln/mdadm-raid-detection-lxkz
branch
from
March 30, 2026 19:28
cfc6b2d to
88817d6
Compare
| ( | ||
| disk | ||
| for disk in self.block_devices_info | ||
| if (not disk["pkname"] or disk['type'] == 'raid0') and disk['kname'] not in pknames |
Contributor
There was a problem hiding this comment.
Suggestion: Maybe in the future, it could be great to implement a class BlockDevice with appropriates methods to enhance readability and intent. eg:
my_block = BlockDevice()
my_block.has_children()
my_block.is_raid()
Member
Author
There was a problem hiding this comment.
100% agree, we should make that cleaner, but this one works with only a few changes, so I'll keep it for another PR if you don't mind :)
glehmann
force-pushed
the
gln/mdadm-raid-detection-lxkz
branch
from
March 31, 2026 18:27
88817d6 to
ea4bbd2
Compare
This was referenced Mar 31, 2026
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
from
March 31, 2026 20:33
a11ecb2 to
9b0818e
Compare
glehmann
force-pushed
the
gln/mdadm-raid-detection-lxkz
branch
from
March 31, 2026 20:33
ea4bbd2 to
1ca167d
Compare
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
from
March 31, 2026 20:36
9b0818e to
5800d41
Compare
glehmann
force-pushed
the
gln/mdadm-raid-detection-lxkz
branch
from
March 31, 2026 20:36
1ca167d to
0d5b7e0
Compare
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
from
April 7, 2026 13:20
5800d41 to
a6a78f3
Compare
glehmann
force-pushed
the
gln/mdadm-raid-detection-lxkz
branch
2 times, most recently
from
April 7, 2026 13:32
5a70972 to
aefdeee
Compare
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
from
April 7, 2026 13:32
a6a78f3 to
0f07c9b
Compare
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
from
April 8, 2026 20:28
0f07c9b to
f9ef7d9
Compare
glehmann
force-pushed
the
gln/mdadm-raid-detection-lxkz
branch
2 times, most recently
from
April 8, 2026 21:22
36e3f27 to
c087f3f
Compare
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
from
April 8, 2026 21:22
f9ef7d9 to
b6785fe
Compare
stormi
approved these changes
Apr 8, 2026
stormi
left a comment
Member
There was a problem hiding this comment.
I would appreciate a commit message which conforms to https://docs.xcp-ng.org/project/development-process/commit-message-conventions/
Commit messages must always describe the problem they solve.
I'll approve anyway given the size of the commit.
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
from
April 9, 2026 05:39
b6785fe to
942d050
Compare
rzr
approved these changes
Apr 13, 2026
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
from
April 15, 2026 16:18
f4248cf to
eb0eac0
Compare
glehmann
force-pushed
the
gln/mdadm-raid-detection-lxkz
branch
from
April 15, 2026 16:18
55afccc to
391e5c2
Compare
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
from
April 16, 2026 18:00
eb0eac0 to
9ade0b0
Compare
glehmann
force-pushed
the
gln/mdadm-raid-detection-lxkz
branch
2 times, most recently
from
April 17, 2026 13:52
89f4a1e to
caa6494
Compare
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
2 times, most recently
from
April 21, 2026 06:08
a63e581 to
d7826f6
Compare
glehmann
force-pushed
the
gln/mdadm-raid-detection-lxkz
branch
2 times, most recently
from
April 24, 2026 14:56
68e4d09 to
3030f33
Compare
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
from
April 24, 2026 14:57
d7826f6 to
a29798c
Compare
This was referenced Apr 24, 2026
glehmann
force-pushed
the
gln/mdadm-raid-detection-lxkz
branch
from
April 29, 2026 17:39
3030f33 to
1b5757b
Compare
glehmann
force-pushed
the
gln/storage-volume-size-support-vzxu
branch
from
April 29, 2026 17:39
a29798c to
9d399c6
Compare
Detect RAID devices and exclude child devices to properly enumerate all available disks including software RAID arrays. Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
glehmann
force-pushed
the
gln/mdadm-raid-detection-lxkz
branch
from
May 11, 2026 15:49
1b5757b to
5b525a6
Compare
Millefeuille42
approved these changes
May 12, 2026
Lankou66
approved these changes
May 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is part of a tree containing 19 PRs:
mastermaster