projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c82e86b
)
Handle /dev/sdaa names
author
Jamie Cameron
<jcameron@webmin.com>
Tue, 25 Aug 2009 16:21:30 +0000
(09:21 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Tue, 25 Aug 2009 16:21:30 +0000
(09:21 -0700)
mount/linux-lib.pl
patch
|
blob
|
history
diff --git
a/mount/linux-lib.pl
b/mount/linux-lib.pl
index
552dabf
..
f284a63
100755
(executable)
--- a/
mount/linux-lib.pl
+++ b/
mount/linux-lib.pl
@@
-2510,9
+2510,9
@@
if (!$text{'select_part'}) {
$text{$k} = $flang{$k} if ($k =~ /^select_/);
}
}
-return $_[0] =~ /^\/dev\/(s|h)d([a-z])(\d+)$/ ?
+return $_[0] =~ /^\/dev\/(s|h)d([a-z]
+
)(\d+)$/ ?
&text('select_part', $1 eq 's' ? 'SCSI' : 'IDE', uc($2), "$3") :
- $_[0] =~ /^\/dev\/(s|h)d([a-z])$/ ?
+ $_[0] =~ /^\/dev\/(s|h)d([a-z]
+
)$/ ?
&text('select_device', $1 eq 's' ? 'SCSI' : 'IDE', uc($2)) :
$_[0] =~ /rd\/c(\d+)d(\d+)p(\d+)$/ ?
&text('select_mpart', "$1", "$2", "$3") :