From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23936 invoked by alias); 28 Feb 2012 18:23:58 -0000 Received: (qmail 23911 invoked by uid 9447); 28 Feb 2012 18:23:57 -0000 Date: Tue, 28 Feb 2012 18:23:00 -0000 Message-ID: <20120228182357.23909.qmail@sourceware.org> From: agk@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/lib/cache lvmetad.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00240.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: agk@sourceware.org 2012-02-28 18:23:56 Modified files: lib/cache : lvmetad.c Log message: Invert some return codes (which used to get ignored anyway) in cases when lvmetad is not being used. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/cache/lvmetad.c.diff?cvsroot=lvm2&r1=1.8&r2=1.9 --- LVM2/lib/cache/lvmetad.c 2012/02/28 11:09:06 1.8 +++ LVM2/lib/cache/lvmetad.c 2012/02/28 18:23:56 1.9 @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2012 Red Hat, Inc. + * + * This file is part of LVM2. + * + * This copyrighted material is made available to anyone wishing to use, + * modify, copy, or redistribute it subject to the terms and conditions + * of the GNU Lesser General Public License v.2.1. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #include "lib.h" #include "toolcontext.h" #include "metadata.h" @@ -360,7 +374,7 @@ struct dm_config_node *cn; if (!_using_lvmetad) - return_0; + return 1; reply = daemon_send_simple(_lvmetad, "pv_list", NULL); @@ -388,7 +402,7 @@ struct dm_config_node *cn; if (!_using_lvmetad) - return_0; + return 1; reply = daemon_send_simple(_lvmetad, "vg_list", NULL); if (reply.error || strcmp(daemon_reply_str(reply, "response", ""), "OK")) { @@ -678,4 +692,3 @@ "It is strongly recommended that you restart lvmetad immediately."); return 0; } -