diff options
author | Anna Czarnowska <anna.czarnowska@intel.com> | 2010-11-22 20:58:06 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-11-22 20:58:06 +1100 |
commit | edde9560fa19af53928059784c81a0cf5badefa2 (patch) | |
tree | 45876ccbf0fcbd2d51e8324b276481d08f91f758 /mdadm.h | |
parent | 0eac199a2ce5d7febc071616450c26882779ed09 (diff) |
mdadm: added --no-sharing option for Monitor mode
--no-sharing option disables moving spares between arrays/containers.
Without the option spares are moved if needed according to config rules.
We only allow one process moving spares started with --scan option.
If there is such process running and another instance of Monitor
is starting without --scan, then we issue a warning but allow it
to continue.
Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -288,7 +288,8 @@ enum special_options { DetailPlatform, KillSubarray, UpdateSubarray, /* 16 */ - IncrementalPath + IncrementalPath, + NoSharing }; /* structures read from config file */ @@ -930,7 +931,8 @@ extern int Examine(struct mddev_dev *devlist, int brief, int export, int scan, extern int Monitor(struct mddev_dev *devlist, char *mailaddr, char *alert_cmd, int period, int daemonise, int scan, int oneshot, - int dosyslog, int test, char *pidfile, int increments); + int dosyslog, int test, char *pidfile, int increments, + int share); extern int Kill(char *dev, struct supertype *st, int force, int quiet, int noexcl); extern int Kill_subarray(char *dev, char *subarray, int quiet); |