volserver: Do not return ENOMEM on AIX from XVolListPartitions
authorChristof Hanke <christof.hanke@rzg.mpg.de>
Tue, 5 Oct 2010 15:01:41 +0000 (17:01 +0200)
committerDerrick Brashear <shadow@dementia.org>
Tue, 5 Oct 2010 19:27:25 +0000 (12:27 -0700)
commit21e1bb9bb46b0e8e2523c3310ea8e602d2b07091
tree2cf2aa98257327e8e5d969bb144625db4f2daa3b
parente445faa68c5ec6e47d3fd9d7318ade71d98703a9
volserver: Do not return ENOMEM on AIX from XVolListPartitions

When calling "vos partinfo" or "vos listpart" towards a server
 running AIX with no partitions attached, it would return a
ENOMEM, because unlike on linux, malloc(0) returns NULL on AIX.
Thus, just don't do any malloc, when we have no partitions anyway.

Change-Id: Id1900e2ab11850ada8b2e91667288576d408014b
Reviewed-on: http://gerrit.openafs.org/2912
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/volser/volprocs.c