src/client.c | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit c653a6f587a3e317abe7ef7df7aaa2b162bc8b34 Author: David Teigland teigland@redhat.com Date: Thu Jan 3 14:06:23 2013 -0600
sanlock: get_lockspaces count only
Accept null lss to get only the count.
Signed-off-by: David Teigland teigland@redhat.com
diff --git a/src/client.c b/src/client.c index 5b4d81b..ec2953f 100644 --- a/src/client.c +++ b/src/client.c @@ -207,6 +207,9 @@ int sanlock_get_lockspaces(struct sanlk_lockspace *lss, int lss_size, rv = -ENOBUFS; }
+ if (!lss) + goto out; + ls = lss;
for (i = 0; i < recv_count; i++) {
sanlock-devel@lists.fedorahosted.org