dm: add support for secure erase forwarding
authorDenis Semakin <d.semakin@omprussia.ru>
Tue, 13 Mar 2018 09:23:45 +0000 (13:23 +0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Apr 2018 19:04:21 +0000 (15:04 -0400)
commit00716545c894fc464e00612809d9cb836b180c99
tree7492fc26be641c58a49b4c81ab707f60a597f629
parent0519c71e8d461ac3ef9a555bb7339243c9128d37
dm: add support for secure erase forwarding

Set QUEUE_FLAG_SECERASE in DM device's queue_flags if a DM table's
data devices support secure erase.

Also, add support for secure erase to both the linear and striped
targets.

Signed-off-by: Denis Semakin <d.semakin@omprussia.ru>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-linear.c
drivers/md/dm-stripe.c
drivers/md/dm-table.c
drivers/md/dm.c
include/linux/device-mapper.h