mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 08:11:39 +00:00
tiny fix for weird sdaj type > 26 drive systems
This commit is contained in:
parent
a68b1e8358
commit
287b8cfe77
4
inxi
4
inxi
|
@ -15521,9 +15521,9 @@ sub zfs_data {
|
|||
# this second is a single device not in an array
|
||||
# ada0s2 25.9G 14.6G 11.3G - 0% 56%
|
||||
# gptid/3838f796-5c46-11e6-a931-d05099ac4dc2 - - - - - -
|
||||
elsif ($row[1] =~ /^(sd[a-z]|[a-z0-9]+[0-9]+|([\S]+)\/.*)$/ &&
|
||||
elsif ($row[1] =~ /^(sd[a-z]+|[a-z0-9]+[0-9]+|([\S]+)\/.*)$/ &&
|
||||
($row[2] eq '-' || $row[2] =~ /^[0-9\.]+[MGTP]$/ )){
|
||||
$row[1] =~ /^(sd[a-z]|[a-z0-9]+[0-9]+|([\S]+)\/.*)\s*(DEGRADED|FAULTED|OFFLINE)?$/;
|
||||
$row[1] =~ /^(sd[a-z]+|[a-z0-9]+[0-9]+|([\S]+)\/.*)\s*(DEGRADED|FAULTED|OFFLINE)?$/;
|
||||
my $working = ($1) ? $1 : ''; # note: the negative case can never happen
|
||||
my $state = ($3) ? $3 : '';
|
||||
my ($maj_min,$part_size);
|
||||
|
|
Loading…
Reference in a new issue