* [PATCH storage] fix: #7844: diskmanage: whitelist GRAID virtual block devices.
@ 2026-08-06 10:56 Elias Huhsovitz
0 siblings, 0 replies; only message in thread
From: Elias Huhsovitz @ 2026-08-06 10:56 UTC (permalink / raw)
To: pve-devel; +Cc: Elias Huhsovitz
Graid virtual drives are of format `gdgXnY`. This format is currently
not whitelisted, resulting in the `Diskmanage::get_disks` subroutine to
ignore the devices.
Add regex to inlcude graid devices of format `gdgXnY`.
Signed-off-by: Elias Huhsovitz <e.huhsovitz@proxmox.com>
---
Graid is propietary software. I current do not have access to any kind of
authentic graid software or device. I tested this patch by creating a mock
block device (e.g. gdg0n1) using a small kernel module.
If there is a more robust version to test changes like this, please let me
know.
src/PVE/Diskmanage.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/PVE/Diskmanage.pm b/src/PVE/Diskmanage.pm
index d9ce0d0..f3a34dc 100644
--- a/src/PVE/Diskmanage.pm
+++ b/src/PVE/Diskmanage.pm
@@ -562,10 +562,12 @@ sub get_disks {
# - xvdX: xen virtual block device
# - nvmeXnY: nvme devices
# - cciss!cXnY cciss devices
+ # - gdgXnY: graid devices
return
if $dev !~ m/^(h|s|x?v)d[a-z]+$/
&& $dev !~ m/^nvme\d+n\d+$/
- && $dev !~ m/^cciss\!c\d+d\d+$/;
+ && $dev !~ m/^cciss\!c\d+d\d+$/
+ && $dev !~ m/^gdg\d+n\d+$/;
my $data = get_udev_info("/sys/block/$dev") // return;
my $devpath = $data->{devpath};
--
2.47.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-06 10:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-06 10:56 [PATCH storage] fix: #7844: diskmanage: whitelist GRAID virtual block devices Elias Huhsovitz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.