diff options
Diffstat (limited to 'xlators/features/bit-rot/src/stub/bit-rot-common.h')
-rw-r--r-- | xlators/features/bit-rot/src/stub/bit-rot-common.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/xlators/features/bit-rot/src/stub/bit-rot-common.h b/xlators/features/bit-rot/src/stub/bit-rot-common.h index 9e101523556..ae1f45f6d1d 100644 --- a/xlators/features/bit-rot/src/stub/bit-rot-common.h +++ b/xlators/features/bit-rot/src/stub/bit-rot-common.h @@ -37,13 +37,15 @@ typedef struct br_signature { #define BR_VXATTR_VERSION (1 << 0) #define BR_VXATTR_SIGNATURE (1 << 1) +#define BR_VXATTR_SIGN_MISSING (BR_VXATTR_SIGNATURE) #define BR_VXATTR_ALL_MISSING \ (BR_VXATTR_VERSION | BR_VXATTR_SIGNATURE) typedef enum br_vxattr_state { - BR_VXATTR_STATUS_MISSING = 0, - BR_VXATTR_STATUS_PARTIAL = 1, - BR_VXATTR_STATUS_FULL = 2, + BR_VXATTR_STATUS_FULL = 0, + BR_VXATTR_STATUS_MISSING = 1, + BR_VXATTR_STATUS_UNSIGNED = 2, + BR_VXATTR_STATUS_INVALID = 3, } br_vxattr_status_t; static inline br_vxattr_status_t @@ -66,11 +68,14 @@ br_version_xattr_state (dict_t *xattr, case 0: status = BR_VXATTR_STATUS_FULL; break; + case BR_VXATTR_SIGN_MISSING: + status = BR_VXATTR_STATUS_UNSIGNED; + break; case BR_VXATTR_ALL_MISSING: status = BR_VXATTR_STATUS_MISSING; break; default: - status = BR_VXATTR_STATUS_PARTIAL; + status = BR_VXATTR_STATUS_INVALID; } return status; |