Commit c0e22f8f authored by Mike Hibler's avatar Mike Hibler

Fix the conversion of FreeBSD 'ad4' to Linux name.

parent 0f7fb157
#!/usr/bin/perl -w
#
# Copyright (c) 2000-2017 University of Utah and the Flux Group.
# Copyright (c) 2000-2018 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -187,9 +187,11 @@ sub map_diskname($)
if ($dtype eq "nvd") {
return "/dev/nvme${dunit}n1";
}
# XXX hack for FreeBSD SATA
if ($dtype eq 'ad' && $dunit > 3) {
$dunit -= 4
}
$dtype = "sd";
$dunit -= 4
if ($dtype eq 'ad' && $dunit > 3);
$dunit =~ y/01234567/abcdefgh/;
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment