diff options
author | Artur Paszkiewicz <artur.paszkiewicz@intel.com> | 2017-03-29 11:54:15 +0200 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-03-29 17:32:15 +0200 |
commit | 5308f11727b889965efe5ac0e854d197c2b51f6d (patch) | |
tree | 9b35204d86ddc3bf3275c123b4a420dda57c02a8 /super-mbr.c | |
parent | Detail: handle non-existent arrays better. (diff) | |
download | mdadm-5308f11727b889965efe5ac0e854d197c2b51f6d.tar.xz mdadm-5308f11727b889965efe5ac0e854d197c2b51f6d.zip |
Generic support for --consistency-policy and PPL
Add a new parameter to mdadm: --consistency-policy=. It determines how
the array maintains consistency in case of unexpected shutdown. This
maps to the md sysfs attribute 'consistency_policy'. It can be used to
create a raid5 array using PPL. Add the necessary plumbing to pass this
option to metadata handlers. The write journal and bitmap
functionalities are treated as different policies, which are implicitly
selected when using --write-journal or --bitmap options.
Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Diffstat (limited to 'super-mbr.c')
-rw-r--r-- | super-mbr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-mbr.c b/super-mbr.c index f5e4ceab..1bbe57a9 100644 --- a/super-mbr.c +++ b/super-mbr.c @@ -193,7 +193,7 @@ static int validate_geometry(struct supertype *st, int level, int *chunk, unsigned long long size, unsigned long long data_offset, char *subdev, unsigned long long *freesize, - int verbose) + int consistency_policy, int verbose) { pr_err("mbr metadata cannot be used this way\n"); return 0; |