22 #include <ndbd_exit_codes.h>
23 #include "SignalData.hpp"
39 friend bool printFSREF(FILE * output,
const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo);
46 enum NdbfsErrorCodeType {
48 fsErrEnvironmentError=NDBD_EXIT_AFS_ENVIRONMENT,
49 fsErrTemporaryNotAccessible=NDBD_EXIT_AFS_TEMP_NO_ACCESS,
50 fsErrNoSpaceLeftOnDevice=NDBD_EXIT_AFS_DISK_FULL,
51 fsErrPermissionDenied=NDBD_EXIT_AFS_PERMISSION_DENIED,
52 fsErrInvalidParameters=NDBD_EXIT_AFS_INVALID_PARAM,
53 fsErrUnknown=NDBD_EXIT_AFS_UNKNOWN,
54 fsErrNoMoreResources=NDBD_EXIT_AFS_NO_MORE_RESOURCES,
55 fsErrFileDoesNotExist=NDBD_EXIT_AFS_NO_SUCH_FILE,
56 fsErrReadUnderflow = NDBD_EXIT_AFS_READ_UNDERFLOW,
57 fsErrFileExists = FS_ERR_BIT | 12,
58 fsErrInvalidFileSize = FS_ERR_BIT | 13,
59 fsErrOutOfMemory = FS_ERR_BIT | 14,
75 static NdbfsErrorCodeType getErrorCode(
const UintR & errorcode);
76 static void setErrorCode(UintR & errorcode, NdbfsErrorCodeType errorcodetype);
77 static void setErrorCode(UintR & errorcode, UintR errorcodetype);
83 FsRef::NdbfsErrorCodeType
84 FsRef::getErrorCode(
const UintR & errorcode){
85 return (NdbfsErrorCodeType)errorcode;
90 FsRef::setErrorCode(UintR & errorcode, NdbfsErrorCodeType errorcodetype){
91 ASSERT_MAX(errorcodetype, fsErrMax,
"FsRef::setErrorCode");
92 errorcode = (UintR)errorcodetype;
97 FsRef::setErrorCode(UintR & errorcode, UintR errorcodetype){
98 ASSERT_MAX(errorcodetype, fsErrMax,
"FsRef::setErrorCode");
99 errorcode = errorcodetype;