]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Generic support for --consistency-policy and PPL
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Wed, 29 Mar 2017 09:54:15 +0000 (11:54 +0200)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 29 Mar 2017 15:32:15 +0000 (11:32 -0400)
commit5308f11727b889965efe5ac0e854d197c2b51f6d
tree9b35204d86ddc3bf3275c123b4a420dda57c02a8
parentb4decd517d90098bc2d17d3eddfe858d8b903920
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>
14 files changed:
Create.c
Kill.c
ReadMe.c
maps.c
mdadm.8.in
mdadm.c
mdadm.h
super-ddf.c
super-gpt.c
super-intel.c
super-mbr.c
super0.c
super1.c
sysfs.c