summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorAnna Sztukowska <anna.sztukowska@intel.com>2024-10-09 08:14:05 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-10-10 16:16:31 +0200
commitf2f938b0b2755bb2c558eef87f5767beb2ff2ca1 (patch)
treeae0ec32515921257a8d24007413cc50c5a33ac87 /mdadm.h
parentmdadm.man: elaborate more about mdmonitor.service (diff)
downloadmdadm-f2f938b0b2755bb2c558eef87f5767beb2ff2ca1.tar.xz
mdadm-f2f938b0b2755bb2c558eef87f5767beb2ff2ca1.zip
mdadm: Add mdadm_status.h
Move mdadm_status_t to mdadm_status.h file. Add status for memory allocation failure. Signed-off-by: Anna Sztukowska <anna.sztukowska@intel.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/mdadm.h b/mdadm.h
index bbc1b97f..5781948e 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -166,6 +166,7 @@ struct dlm_lksb {
#include "md_p.h"
#include "bitmap.h"
#include "msg.h"
+#include "mdadm_status.h"
#include <endian.h>
/* Redhat don't like to #include <asm/byteorder.h>, and
@@ -449,12 +450,6 @@ struct spare_criteria {
struct dev_policy *pols;
};
-typedef enum mdadm_status {
- MDADM_STATUS_SUCCESS = 0,
- MDADM_STATUS_ERROR,
- MDADM_STATUS_UNDEF,
-} mdadm_status_t;
-
enum mode {
ASSEMBLE=1,
BUILD,