[Gluster-users] Semantics of opRet and opErrno
Vijay Bellur
vbellur at redhat.com
Mon Dec 16 02:46:59 UTC 2013
On 12/15/2013 03:01 PM, B.K.Raghuram wrote:
> Is there any documentation on the semantics of these return values for
> common gluster commands? If not, is there a common guideline on how to
> interpret these values?
>
opret and operrno for glusterfs fops are equivalent to return value and
errno obtained during execution of equivalent system calls. In majority
of the cases, operrno is valid only if opret indicates a failure.
operrno mostly refers to values that errno can assume and can be
interpreted in the same way errno is interpreted.
If a translator performs a STACK_UNWIND due to an error condition, it
usually sets an operrno to indicate why the fop was failed.
-Vijay
More information about the Gluster-users
mailing list