diff options
author | NeilBrown <neilb@suse.de> | 2012-12-05 12:56:31 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-12-05 12:56:31 +1100 |
commit | 6d388a88163a8f532513e73dd035892ea8a8ead2 (patch) | |
tree | c1ad00cb9ba406ca509654ed9d2883d78c1b5528 /mdadm.h | |
parent | 8cf2eb96b2330b1507af2fa55d99f338eeff5ab5 (diff) |
MISC: Add --examine-badblocks option
This will list the contents of the bad-blocks log, if one is present.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -337,6 +337,7 @@ enum special_options { Prefer, KillOpt, DataOffset, + ExamineBB, }; enum prefix_standard { @@ -662,6 +663,7 @@ extern struct superswitch { void (*brief_examine_super)(struct supertype *st, int verbose); void (*brief_examine_subarrays)(struct supertype *st, int verbose); void (*export_examine_super)(struct supertype *st); + int (*examine_badblocks)(struct supertype *st, int fd, char *devname); /* Used to report details of an active array. * ->load_super was possibly given a 'component' string. @@ -1145,6 +1147,7 @@ extern int Create(struct supertype *st, char *mddev, extern int Detail(char *dev, struct context *c); extern int Detail_Platform(struct superswitch *ss, int scan, int verbose, int export, char *controller_path); extern int Query(char *dev); +extern int ExamineBadblocks(char *devname, int brief, struct supertype *forcest); extern int Examine(struct mddev_dev *devlist, struct context *c, struct supertype *forcest); extern int Monitor(struct mddev_dev *devlist, |