]> git.ipfire.org Git - thirdparty/mdadm.git/commit
IMSM: Add support for 4Kn sector size drives
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Thu, 17 Nov 2016 13:58:37 +0000 (14:58 +0100)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 17 Nov 2016 14:24:59 +0000 (09:24 -0500)
commitf36a9ecdb5e3c8fef22a4a148df57893fa705696
treede518ae01710b2376c8d545a1901e043b213cd2f
parentfa7bb6f8fd201d25940398b8ef13a8589804bc85
IMSM: Add support for 4Kn sector size drives

This patch adds support for drives with 4Kn sector size
for IMSM metadata. Mixing member drives with 4kn and 512
is not allowed. Some offsets were aligned with sector size.
Internal metadata representation and all calculations
are still based on 512-byte sector sizes. This
implementation converts only sector based values
when reading/writing to drive, because they needs to be
stored in metadata according to accual member drive sector size.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
super-intel.c