projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab58a63
)
Option to not lookup local device name
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 3 May 2010 06:14:50 +0000
(23:14 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 3 May 2010 06:14:50 +0000
(23:14 -0700)
mount/linux-lib.pl
patch
|
blob
|
history
diff --git
a/mount/linux-lib.pl
b/mount/linux-lib.pl
index
f28dec8
..
439760b
100755
(executable)
--- a/
mount/linux-lib.pl
+++ b/
mount/linux-lib.pl
@@
-2503,13
+2503,13
@@
foreach $f (split(/\s+/, $config{'auto_file'})) {
return @rv;
}
-# device_name(device)
+# device_name(device
, [non-local]
)
# Converts a device name to a human-readable form
sub device_name
{
# First try to get name from fdisk module, as it knowns better about IDE
# and SCSI devices
-if (&foreign_check("fdisk")) {
+if (&foreign_check("fdisk")
&& !$_[1]
) {
&foreign_require("fdisk");
my @disks = &fdisk::list_disks_partitions();
foreach my $d (@disks) {