Skip to content

Commit

Permalink
mxraid/mxraid_assemble: Add a comment for disk key regex
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas committed Feb 16, 2023
1 parent e2f3733 commit 76d03b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxraid/mxraid_assemble
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ exit;
my @ret;
my $num = scalar @$dev_list;
for (my $i=0; $i<$num; $i++) {
my ($dk) = $dev_list->[$i] =~ m|([^/]+)$|;
my ($dk) = $dev_list->[$i] =~ m|([^/]+)$|; # '/sys/block/sda' -> 'sda'

my $model = sys_fs_get_prop('/sys/block/'.$dk.'/device/model');
my $sizeb = sys_fs_get_prop('/sys/block/'.$dk.'/size') * 512;
Expand Down

0 comments on commit 76d03b6

Please sign in to comment.