]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
super1: PPL support
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Wed, 29 Mar 2017 09:54:18 +0000 (11:54 +0200)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 29 Mar 2017 15:33:52 +0000 (11:33 -0400)
commite97a7cd011345e5dead736de51b33968da49d876
tree5e2ca7d74a1c4f1a9e9e206cfda5fefd4bf3fc58
parent2432ce9b3235f34d00ef6c28ef6b624a32b85530
super1: PPL support

Enable creating and assembling raid5 arrays with PPL for 1.x metadata.

When creating, reserve enough space for PPL and store its size and
location in the superblock and set MD_FEATURE_PPL bit. Write an initial
empty header in the PPL area on each device. PPL is stored in the
metadata region reserved for internal write-intent bitmap, so don't
allow using bitmap and PPL together.

While at it, fix two endianness issues in write_empty_r5l_meta_block()
and write_init_super1().

Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Assemble.c
Create.c
Grow.c
Incremental.c
mdadm.h
super1.c