summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2010-04-16 18:16:40 -0400
committerDoug Ledford <dledford@redhat.com>2010-04-16 18:16:40 -0400
commit56d318f825099f61370fc696c2a3e8f57bcf198c (patch)
treef1dd12d03287c6e341f14a4f2983fd58c60aa103 /config.c
parentbdf05eca34d74d8220031dc8e672ba4d9209a800 (diff)
downloadmdadm-hotunplug.tar.gz
mdadm-hotunplug.tar.xz
mdadm-hotunplug.zip
Add stub for validation of partition table file during config parsinghotunplug
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.c b/config.c
index 3242f5f..b429968 100644
--- a/config.c
+++ b/config.c
@@ -903,6 +903,12 @@ void domainline(char *line)
free_domain(de);
return;
}
+ if (de->handler->validate(de)) {
+ fprintf(stderr, Name ": partition table file failed "
+ "validation.\n");
+ free_domain(de);
+ return;
+ }
}
de->next = domain_list;
domain_list = de;