diff options
author | Artur Paszkiewicz <artur.paszkiewicz@intel.com> | 2017-03-29 11:54:20 +0200 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-03-29 11:35:16 -0400 |
commit | 860f11ed4d6a7bac6f2d698a30a13371c0aa7924 (patch) | |
tree | f5c986a5f5e9ef5b4cf71bd056b97daa9cb85f3a /mdadm.h | |
parent | e6e9dd3f1b255f9921ebc023c1e5b65601a637e2 (diff) | |
download | mdadm-860f11ed4d6a7bac6f2d698a30a13371c0aa7924.tar.gz |
Grow: support consistency policy change
Extend the --consistency-policy parameter to work also in Grow mode.
Using it changes the currently active consistency policy in the kernel
driver and updates the metadata to make this change permanent. Currently
this supports only changing between "ppl" and "resync" policies, that is
enabling or disabling PPL at runtime.
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1331,6 +1331,8 @@ extern int Grow_restart(struct supertype *st, struct mdinfo *info, extern int Grow_continue(int mdfd, struct supertype *st, struct mdinfo *info, char *backup_file, int forked, int freeze_reshape); +extern int Grow_consistency_policy(char *devname, int fd, + struct context *c, struct shape *s); extern int restore_backup(struct supertype *st, struct mdinfo *content, |