Commit 26661bf1 authored by Robert Ricci's avatar Robert Ricci

Add a sanity check - if any values were not returned from the node

select, skip it (otherwise, we can end up with a malformed exports
file.)
parent 6991cee5
......@@ -185,6 +185,16 @@ while (@row = $nodes_result->fetchrow_array) {
my %fslist = ();
my @dirlist = ();
#
# Sanity check - don't try this if any of the above are not defined - we
# may end up with a bad line in exports
#
if ((!defined($node_id)) || (!defined($pid)) || (!defined($eid)) ||
(!defined($gid)) || (!defined($ip))) {
print "WARNING: exports_setup: Skipping database row with undefined values\n";
next;
}
#
# Construct a list of directories accessible from this node.
# First the project and group directories.
......
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