summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-08-27 14:56:57 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-11-04 10:29:52 +0100
commit5ca93f729a6becf8c529e1393ad2bde1eb1cddfa (patch)
tree04a498eea528cb661231867747dbdaa275412b68 /mdadm.h
parentsysfs: add sysfs_open_memb_attr() (diff)
downloadmdadm-5ca93f729a6becf8c529e1393ad2bde1eb1cddfa.tar.xz
mdadm-5ca93f729a6becf8c529e1393ad2bde1eb1cddfa.zip
monitor: Add DS_EXTERNAL_BB flag
If this is set, then metadata handler must support external badblocks. Remove checks for superswitch functions. If mdi->state_fd is not set then we should not try to record badblock, we cannot trust this device. No functional changes. Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index c841f33e..2a7d038d 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -414,6 +414,7 @@ struct mdinfo {
#define DS_BLOCKED 16
#define DS_REMOVE 1024
#define DS_UNBLOCK 2048
+ #define DS_EXTERNAL_BB 4096
int prev_state, curr_state, next_state;
/* info read from sysfs */