dm: add emulated block size target
authorHeinz Mauelshagen <heinzm@redhat.com>
Mon, 9 Mar 2020 22:26:38 +0000 (23:26 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 15 May 2020 14:29:35 +0000 (10:29 -0400)
commitd3c7b35c20d60650bac8b55c17b194adda03a979
tree5a03d63bbf92aa6c5296163edd4612177397ba96
parent2361ae595352dec015d14292f1b539242d8446d6
dm: add emulated block size target

This new target is similar to the linear target except that it emulates
a smaller logical block size on a device with a larger logical block
size.  Its main purpose is to emulate 512 byte sectors on 4K native
disks (i.e. 512e).

See Documentation/admin-guide/device-mapper/dm-ebs.rst for details.

Reviewed-by: Damien Le Moal <DamienLeMoal@wdc.com>
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org> [Kconfig fixes]
Signed-off-by: Zheng Bin <zhengbin13@huawei.com> [static fixes]
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/admin-guide/device-mapper/dm-ebs.rst [new file with mode: 0644]
drivers/md/Kconfig
drivers/md/Makefile
drivers/md/dm-ebs-target.c [new file with mode: 0644]