summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e2bccac)
raw | patch | inline | side by side (parent: e2bccac)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 28 Sep 2009 13:45:13 +0000 (15:45 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 28 Sep 2009 13:45:13 +0000 (15:45 +0200) |
Unfortunately this behavior isn't exactly obvious.
src/netapp.c | patch | blob | history |
diff --git a/src/netapp.c b/src/netapp.c
index c294f6964117e0b228d845c36b52a61f5ed50eda..a4b30cc072efedda9a8e5516b32cda14426b6906 100644 (file)
--- a/src/netapp.c
+++ b/src/netapp.c
if (host == NULL)
return (EINVAL);
+ /* If WAFL was not configured, return without doing anything. */
if (host->cfg_wafl == NULL)
return (0);
if (host == NULL)
return (EINVAL);
+ /* If the user did not configure disk statistics, return without doing
+ * anything. */
if (host->cfg_disk == NULL)
return (0);