From 4397d7e72fdff6f01c59b72eebea421f23c1a392 Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Tue, 5 May 2015 10:58:10 +0530 Subject: glusterd/snapshot: Return correct errno in events of failure - PATCH 1 RETCODE ERROR ------------------------------------------- 30800 Internal Error 30801 Another Transaction In Progress Change-Id: Ica7fd2e513b2c28717b6df73cfb2667725dbf057 BUG: 1212413 Signed-off-by: Avra Sengupta Reviewed-on: http://review.gluster.org/10313 Reviewed-by: Rajesh Joseph Tested-by: Gluster Build System Tested-by: NetBSD Build System Reviewed-by: Krishnan Parthasarathi --- xlators/mgmt/glusterd/src/glusterd-errno.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 xlators/mgmt/glusterd/src/glusterd-errno.h (limited to 'xlators/mgmt/glusterd/src/glusterd-errno.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-errno.h b/xlators/mgmt/glusterd/src/glusterd-errno.h new file mode 100644 index 00000000000..435b050c7da --- /dev/null +++ b/xlators/mgmt/glusterd/src/glusterd-errno.h @@ -0,0 +1,18 @@ +/* + Copyright (c) 2015 Red Hat, Inc. + This file is part of GlusterFS. + + This file is licensed to you under your choice of the GNU Lesser + General Public License, version 3 or any later version (LGPLv3 or + later), or the GNU General Public License, version 2 (GPLv2), in all + cases as published by the Free Software Foundation. +*/ +#ifndef _GLUSTERD_ERRNO_H +#define _GLUSTERD_ERRNO_H + +enum glusterd_op_errno { + EINTRNL = 30800, /* Internal Error */ + EANOTRANS = 30801, /* Another Transaction in Progress */ +}; + +#endif -- cgit