summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2021-02-05 14:29:58 +0100
committerJes Sorensen <jsorensen@fb.com>2021-03-08 16:43:29 +0100
commitc7b8547c70035395a02ae4f7a5ec76a46dedb3cb (patch)
tree3bc4491b5fd499ac1f8b66d2b85f3e32b12af3ff /mdadm.h
parentmdmonitor: check if udev has finished events processing (diff)
downloadmdadm-c7b8547c70035395a02ae4f7a5ec76a46dedb3cb.tar.xz
mdadm-c7b8547c70035395a02ae4f7a5ec76a46dedb3cb.zip
imsm: add verbose flag to compare_super
IMSM does more than comparing metadata and errors reported directly from compare_super_imsm can be useful. Add verbose flag to compare_super method and make all not critical error printing configurable. Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdadm.h b/mdadm.h
index 1ee6c92e..60575af0 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -966,7 +966,8 @@ extern struct superswitch {
* moved in, otherwise the superblock in 'st' is compared with
* 'tst'.
*/
- int (*compare_super)(struct supertype *st, struct supertype *tst);
+ int (*compare_super)(struct supertype *st, struct supertype *tst,
+ int verbose);
/* Load metadata from a single device. If 'devname' is not NULL
* print error messages as appropriate */
int (*load_super)(struct supertype *st, int fd, char *devname);