Re: [pve-devel] [PATCH container] Fix invalid device passthrough being added to config

2024-04-15 Thread Filip Schauer
On 11/04/2024 14:18, Fiona Ebner wrote: - my $absolute_path = $device->{path}; my ($mode, $rdev) = (stat($absolute_path))[2, 6]; - die "Device $absolute_path does not exist\n" if $! == ENOENT; - die "Error accessing device $absolute_path\n" if (!defined($mo

Re: [pve-devel] [PATCH container] Fix invalid device passthrough being added to config

2024-04-11 Thread Fiona Ebner
Am 29.01.24 um 15:29 schrieb Filip Schauer: > Fix a bug that allows a device passthrough entry to be added to the > config despite the device path not pointing to a device. Previously, > adding an invalid device passthrough entry would throw an error, but the > entry would still be added to the con

[pve-devel] [PATCH container] Fix invalid device passthrough being added to config

2024-01-29 Thread Filip Schauer
Fix a bug that allows a device passthrough entry to be added to the config despite the device path not pointing to a device. Previously, adding an invalid device passthrough entry would throw an error, but the entry would still be added to the config. This is fixed by moving the respective checks f