Derecho  0.9
Distributed systems toolkit for RDMA
Namespaces | Macros
PersistException.hpp File Reference
#include <inttypes.h>
Include dependency graph for PersistException.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 persistent
 This file include all common types internal to derecho and not necessarily being known by a client program.
 

Macros

#define PERSIST_EXP(errcode, usercode)   ((((errcode)&0xffffffffull) << 32) | ((usercode)&0xffffffffull))
 
#define PERSIST_EXP_USERCODE(x)   ((uint32_t)((x)&0xffffffffull))
 
#define PERSIST_EXP_UNIMPLEMENTED   PERSIST_EXP(0, 0)
 
#define PERSIST_EXP_NEW_FAILED_UNKNOWN   PERSIST_EXP(1, 0)
 
#define PERSIST_EXP_STORAGE_TYPE_UNKNOWN(x)   PERSIST_EXP(2, (x))
 
#define PERSIST_EXP_OPEN_FILE(x)   PERSIST_EXP(3, (x))
 
#define PERSIST_EXP_MMAP_FILE(x)   PERSIST_EXP(4, (x))
 
#define PERSIST_EXP_INV_PATH   PERSIST_EXP(5, 0)
 
#define PERSIST_EXP_CREATE_PATH(x)   PERSIST_EXP(6, (x))
 
#define PERSIST_EXP_INV_FILE   PERSIST_EXP(7, 0)
 
#define PERSIST_EXP_CREATE_FILE(x)   PERSIST_EXP(8, (x))
 
#define PERSIST_EXP_TRUNCATE_FILE(x)   PERSIST_EXP(9, (x))
 
#define PERSIST_EXP_RWLOCK_INIT(x)   PERSIST_EXP(10, (x))
 
#define PERSIST_EXP_RWLOCK_RDLOCK(x)   PERSIST_EXP(11, (x))
 
#define PERSIST_EXP_RWLOCK_WRLOCK(x)   PERSIST_EXP(12, (x))
 
#define PERSIST_EXP_RWLOCK_UNLOCK(x)   PERSIST_EXP(13, (x))
 
#define PERSIST_EXP_MSYNC(x)   PERSIST_EXP(14, (x))
 
#define PERSIST_EXP_INV_ENTRY_IDX(x)   PERSIST_EXP(15, (x))
 
#define PERSIST_EXP_EMPTY_LOG   PERSIST_EXP(16, 0)
 
#define PERSIST_EXP_SPIN_INIT(x)   PERSIST_EXP(17, (x))
 
#define PERSIST_EXP_SPIN_LOCK(x)   PERSIST_EXP(18, (x))
 
#define PERSIST_EXP_SPIN_UNLOCK(x)   PERSIST_EXP(19, (x))
 
#define PERSIST_EXP_INV_VERSION   PERSIST_EXP(20, 0)
 
#define PERSIST_EXP_ALLOC(x)   PERSIST_EXP(21, (x))
 
#define PERSIST_EXP_READ_FUTURE   PERSIST_EXP(22, 0)
 
#define PERSIST_EXP_INV_HLC   PERSIST_EXP(23, 0)
 
#define PERSIST_EXP_MUTEX_INIT(x)   PERSIST_EXP(24, (x))
 
#define PERSIST_EXP_MUTEX_LOCK(x)   PERSIST_EXP(25, (x))
 
#define PERSIST_EXP_MUTEX_UNLOCK(x)   PERSIST_EXP(26, (x))
 
#define PERSIST_EXP_READ_FILE(x)   PERSIST_EXP(27, (x))
 
#define PERSIST_EXP_WRITE_FILE(x)   PERSIST_EXP(28, (x))
 
#define PERSIST_EXP_RENAME_FILE(x)   PERSIST_EXP(29, (x))
 
#define PERSIST_EXP_NOSPACE(x)   PERSIST_EXP(30, (x))
 
#define PERSIST_EXP_NOSPACE_LOG   PERSIST_EXP_NOSPACE(1)
 
#define PERSIST_EXP_NOSPACE_DATA   PERSIST_EXP_NOSPACE(2)
 
#define PERSIST_EXP_BEYOND_GSF   PERSIST_EXP(31, 0)
 
#define PERSIST_EXP_OOM(x)   PERSIST_EXP(32, (x))
 
#define PERSIST_EXP_INV_OBJNAME   PERSIST_EXP(33, 0)
 
#define PERSIST_EXP_REMOVE_FILE(x)   PERSIST_EXP(34, (x))
 

Macro Definition Documentation

◆ PERSIST_EXP

#define PERSIST_EXP (   errcode,
  usercode 
)    ((((errcode)&0xffffffffull) << 32) | ((usercode)&0xffffffffull))

Definition at line 8 of file PersistException.hpp.

◆ PERSIST_EXP_ALLOC

#define PERSIST_EXP_ALLOC (   x)    PERSIST_EXP(21, (x))

Definition at line 32 of file PersistException.hpp.

◆ PERSIST_EXP_BEYOND_GSF

#define PERSIST_EXP_BEYOND_GSF   PERSIST_EXP(31, 0)

Definition at line 44 of file PersistException.hpp.

◆ PERSIST_EXP_CREATE_FILE

#define PERSIST_EXP_CREATE_FILE (   x)    PERSIST_EXP(8, (x))

Definition at line 19 of file PersistException.hpp.

◆ PERSIST_EXP_CREATE_PATH

#define PERSIST_EXP_CREATE_PATH (   x)    PERSIST_EXP(6, (x))

Definition at line 17 of file PersistException.hpp.

◆ PERSIST_EXP_EMPTY_LOG

#define PERSIST_EXP_EMPTY_LOG   PERSIST_EXP(16, 0)

Definition at line 27 of file PersistException.hpp.

◆ PERSIST_EXP_INV_ENTRY_IDX

#define PERSIST_EXP_INV_ENTRY_IDX (   x)    PERSIST_EXP(15, (x))

Definition at line 26 of file PersistException.hpp.

◆ PERSIST_EXP_INV_FILE

#define PERSIST_EXP_INV_FILE   PERSIST_EXP(7, 0)

Definition at line 18 of file PersistException.hpp.

◆ PERSIST_EXP_INV_HLC

#define PERSIST_EXP_INV_HLC   PERSIST_EXP(23, 0)

Definition at line 34 of file PersistException.hpp.

◆ PERSIST_EXP_INV_OBJNAME

#define PERSIST_EXP_INV_OBJNAME   PERSIST_EXP(33, 0)

Definition at line 46 of file PersistException.hpp.

◆ PERSIST_EXP_INV_PATH

#define PERSIST_EXP_INV_PATH   PERSIST_EXP(5, 0)

Definition at line 16 of file PersistException.hpp.

◆ PERSIST_EXP_INV_VERSION

#define PERSIST_EXP_INV_VERSION   PERSIST_EXP(20, 0)

Definition at line 31 of file PersistException.hpp.

◆ PERSIST_EXP_MMAP_FILE

#define PERSIST_EXP_MMAP_FILE (   x)    PERSIST_EXP(4, (x))

Definition at line 15 of file PersistException.hpp.

◆ PERSIST_EXP_MSYNC

#define PERSIST_EXP_MSYNC (   x)    PERSIST_EXP(14, (x))

Definition at line 25 of file PersistException.hpp.

◆ PERSIST_EXP_MUTEX_INIT

#define PERSIST_EXP_MUTEX_INIT (   x)    PERSIST_EXP(24, (x))

Definition at line 35 of file PersistException.hpp.

◆ PERSIST_EXP_MUTEX_LOCK

#define PERSIST_EXP_MUTEX_LOCK (   x)    PERSIST_EXP(25, (x))

Definition at line 36 of file PersistException.hpp.

◆ PERSIST_EXP_MUTEX_UNLOCK

#define PERSIST_EXP_MUTEX_UNLOCK (   x)    PERSIST_EXP(26, (x))

Definition at line 37 of file PersistException.hpp.

◆ PERSIST_EXP_NEW_FAILED_UNKNOWN

#define PERSIST_EXP_NEW_FAILED_UNKNOWN   PERSIST_EXP(1, 0)

Definition at line 12 of file PersistException.hpp.

◆ PERSIST_EXP_NOSPACE

#define PERSIST_EXP_NOSPACE (   x)    PERSIST_EXP(30, (x))

Definition at line 41 of file PersistException.hpp.

◆ PERSIST_EXP_NOSPACE_DATA

#define PERSIST_EXP_NOSPACE_DATA   PERSIST_EXP_NOSPACE(2)

Definition at line 43 of file PersistException.hpp.

◆ PERSIST_EXP_NOSPACE_LOG

#define PERSIST_EXP_NOSPACE_LOG   PERSIST_EXP_NOSPACE(1)

Definition at line 42 of file PersistException.hpp.

◆ PERSIST_EXP_OOM

#define PERSIST_EXP_OOM (   x)    PERSIST_EXP(32, (x))

Definition at line 45 of file PersistException.hpp.

◆ PERSIST_EXP_OPEN_FILE

#define PERSIST_EXP_OPEN_FILE (   x)    PERSIST_EXP(3, (x))

Definition at line 14 of file PersistException.hpp.

◆ PERSIST_EXP_READ_FILE

#define PERSIST_EXP_READ_FILE (   x)    PERSIST_EXP(27, (x))

Definition at line 38 of file PersistException.hpp.

◆ PERSIST_EXP_READ_FUTURE

#define PERSIST_EXP_READ_FUTURE   PERSIST_EXP(22, 0)

Definition at line 33 of file PersistException.hpp.

◆ PERSIST_EXP_REMOVE_FILE

#define PERSIST_EXP_REMOVE_FILE (   x)    PERSIST_EXP(34, (x))

Definition at line 47 of file PersistException.hpp.

◆ PERSIST_EXP_RENAME_FILE

#define PERSIST_EXP_RENAME_FILE (   x)    PERSIST_EXP(29, (x))

Definition at line 40 of file PersistException.hpp.

◆ PERSIST_EXP_RWLOCK_INIT

#define PERSIST_EXP_RWLOCK_INIT (   x)    PERSIST_EXP(10, (x))

Definition at line 21 of file PersistException.hpp.

◆ PERSIST_EXP_RWLOCK_RDLOCK

#define PERSIST_EXP_RWLOCK_RDLOCK (   x)    PERSIST_EXP(11, (x))

Definition at line 22 of file PersistException.hpp.

◆ PERSIST_EXP_RWLOCK_UNLOCK

#define PERSIST_EXP_RWLOCK_UNLOCK (   x)    PERSIST_EXP(13, (x))

Definition at line 24 of file PersistException.hpp.

◆ PERSIST_EXP_RWLOCK_WRLOCK

#define PERSIST_EXP_RWLOCK_WRLOCK (   x)    PERSIST_EXP(12, (x))

Definition at line 23 of file PersistException.hpp.

◆ PERSIST_EXP_SPIN_INIT

#define PERSIST_EXP_SPIN_INIT (   x)    PERSIST_EXP(17, (x))

Definition at line 28 of file PersistException.hpp.

◆ PERSIST_EXP_SPIN_LOCK

#define PERSIST_EXP_SPIN_LOCK (   x)    PERSIST_EXP(18, (x))

Definition at line 29 of file PersistException.hpp.

◆ PERSIST_EXP_SPIN_UNLOCK

#define PERSIST_EXP_SPIN_UNLOCK (   x)    PERSIST_EXP(19, (x))

Definition at line 30 of file PersistException.hpp.

◆ PERSIST_EXP_STORAGE_TYPE_UNKNOWN

#define PERSIST_EXP_STORAGE_TYPE_UNKNOWN (   x)    PERSIST_EXP(2, (x))

Definition at line 13 of file PersistException.hpp.

◆ PERSIST_EXP_TRUNCATE_FILE

#define PERSIST_EXP_TRUNCATE_FILE (   x)    PERSIST_EXP(9, (x))

Definition at line 20 of file PersistException.hpp.

◆ PERSIST_EXP_UNIMPLEMENTED

#define PERSIST_EXP_UNIMPLEMENTED   PERSIST_EXP(0, 0)

Definition at line 11 of file PersistException.hpp.

◆ PERSIST_EXP_USERCODE

#define PERSIST_EXP_USERCODE (   x)    ((uint32_t)((x)&0xffffffffull))

Definition at line 10 of file PersistException.hpp.

◆ PERSIST_EXP_WRITE_FILE

#define PERSIST_EXP_WRITE_FILE (   x)    PERSIST_EXP(28, (x))

Definition at line 39 of file PersistException.hpp.