Commit 90ccccb7 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix to blockstore code; mountpoints are optional.

parent 3b5d4333
......@@ -7509,8 +7509,10 @@ sub HandleBlockstore($$$$$$$@)
goto bad;
}
}
if (!defined($mount)) {
$message = "Missing blockstore mount point";
if (defined($mount) &&
!TBcheck_dbslot($mount, "os_info", "path",
TBDB_CHECKDBSLOT_WARN|TBDB_CHECKDBSLOT_ERROR)) {
$message = "Invalid mountpoint for blockstore";
goto bad;
}
if (!defined($readonly)) {
......@@ -7696,7 +7698,8 @@ sub HandleBlockstore($$$$$$$@)
goto bad;
}
}
push(@attributes, ["mountpoint", $mount, 0]);
push(@attributes, ["mountpoint", $mount, 0])
if (defined($mount) && $mount ne "");
push(@attributes, ["placement", $placement, 0]);
push(@attributes, ["readonly", $readonly, 0]);
push(@attributes, ["class", ($class eq "local" ? "local" : "SAN"), 1]);
......
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