]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
budb: Fail if afsconf_GetExtendedCellInfo does
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 24 Feb 2013 10:43:52 +0000 (10:43 +0000)
committerStephan Wiesand <stephan.wiesand@desy.de>
Fri, 22 Mar 2013 18:06:52 +0000 (11:06 -0700)
Rather than silently ignoring the failure of
afsconf_GetExtendedCellInfo, and then using garbage cell
configuration, just fail to start if afsconf can't parse the
config directory.

Reviewed-on: http://gerrit.openafs.org/9247
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 3fbdc609dc025cfcaac6949485d6fb072bf34764)

Change-Id: I40f0aefda1bc44ce92a7733ec644002229c32079
Reviewed-on: http://gerrit.openafs.org/9536
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/budb/server.c

index e5cb4600de33880e9583b8b2fb9b3656d77123bb..9fd3bc2cb3d10c2be35a5fb7a573fc992b9bcc9e 100644 (file)
@@ -494,6 +494,11 @@ main(int argc, char **argv)
 
        code = afsconf_GetExtendedCellInfo (BU_conf, lcell, 0, &cellinfo,
                                            clones);
+       if (code) {
+           LogError(0, "Can't read cell information\n");
+           ERROR(code);
+       }
+
        code =
            convert_cell_to_ubik(&cellinfo, &globalConfPtr->myHost,
                                 globalConfPtr->serverList);