Commit 1376ddc
committed
Exclude tapdev and xvd block devices from SR disk selection
The lsblk-based SR disk discovery now filters by device major number,
excluding tapdev (254) and xvd (202) device types.
tapdev devices are used internally by the host storage stack and should
never be selected for SR creation — they are not physical disks.
xvd devices are Xen virtual block devices that appear when a VM or the
dom0 itself has attached virtual disks; they are not suitable as SR
backing storage either.
Without this filter, a host running as a VM (nested virtualization
scenario) or a host with active tapdisk mappings could report xvd
or tapdev devices as candidate disks, causing SR creation on an
inappropriate backing device.
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>1 parent eb64569 commit 1376ddc
1 file changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
704 | 727 | | |
705 | 728 | | |
706 | 729 | | |
707 | | - | |
| 730 | + | |
708 | 731 | | |
709 | 732 | | |
710 | 733 | | |
| |||
0 commit comments