Files
webmin/smart-status/config_info.pl
Ilia Ross 65f5beeb11
Some checks failed
Tests / prove (push) Has been cancelled
Package and upload artifacts / build (push) Has been cancelled
Add hardware RAID passthrough devices config
Add an opt-in SMART module config option for manually listing hardware RAID passthrough devices, expose configured physical disks to smartctl, and document the option.

https://github.com/webmin/webmin/issues/1704
2026-06-21 19:47:19 +02:00

21 lines
381 B
Raku

sub show_raid_devices
{
my ($value) = @_;
$value ||= "";
$value =~ s/\t/\n/g;
my $placeholder = &quote_escape("/dev/sg0 cciss 0 3");
return &ui_textarea("raid_devices", $value, 3, 60, undef, 0,
"placeholder=\"$placeholder\"");
}
sub parse_raid_devices
{
my $value = $in{'raid_devices'} || "";
$value =~ s/\r//g;
$value =~ s/\n/\t/g;
$value =~ s/\s+$//;
return $value;
}
1;