Skip to content

Commit

Permalink
mxraid_assemble: Mangle ST14000NM002G serial number
Browse files Browse the repository at this point in the history
This 14TB device uses ascii-0 and not 0x0 in vpd_pg80.
It appears to be the new standard, so consider a more
common solution.
  • Loading branch information
thomas committed Jan 4, 2021
1 parent 070881f commit 0ec9280
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mxraid/mxraid_assemble
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,11 @@ exit;
BEGIN {
$MxRaid::HostData::VERSION = '0.01';
%MxRaid::HostData::BAD_MODELS = ( # and the cure...
ST8000NM0065 => sub {substr $_[0], 0, 8}, # silly coding of serial
ST8000NM0075 => sub {substr $_[0], 0, 8},
ST8000NM001A => sub {substr $_[0], 0, 8},
ST1000NM0045 => sub {substr $_[0], 0, 8},
ST8000NM0065 => sub {substr $_[0], 0, 8}, # silly coding of serial
ST8000NM0075 => sub {substr $_[0], 0, 8},
ST8000NM001A => sub {substr $_[0], 0, 8},
ST1000NM0045 => sub {substr $_[0], 0, 8},
ST14000NM002G => sub {substr $_[0], 0, 8},
);
}

Expand Down

0 comments on commit 0ec9280

Please sign in to comment.