From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: [PATCH v4 0/5] Return failure on failure for more xl commands Date: Fri, 18 Dec 2015 12:23:40 +0000 Message-ID: <1450441425-10755-1-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian Jackson , Wei Liu , Ian Campbell List-Id: xen-devel@lists.xenproject.org Return failure when the command failed for more xl commands: - mem-set - cd-insert - pci-* This makes xl more useful for scripting. In the case of mem-set, it means first cleaning up libxl_set_memory_target() to return useful error codes. Changes in v4: - Remove block-attach patch - Split out removal of spurious getinfolist to a separate patch - Try to follow CODING_STYLE more closely: - In general, don't initialize rc / r, but use set-and-goto - Use 'r' for non-libxl error codes - Use EXIT_FAILURE and EXIT_SUCCESS rather than magic constants CC: Ian Campbell CC: Ian Jackson CC: Wei Liu