]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen/blk[front|back]: Enhance discard support with secure erasing support.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 10 Oct 2011 14:58:40 +0000 (10:58 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 10 Oct 2011 17:45:27 +0000 (13:45 -0400)
commitf74cc58b77c2a1c1a93c0324a50b9d1b9a0cb159
treeb7956c450fdb0ff200c5f976fa3ca8008e1293dc
parentc67fc3af5f42349251f50e7cf9426bcb74fa476a
xen/blk[front|back]: Enhance discard support with secure erasing support.

Part of the blkdev_issue_discard(xx) operation is that it can also
issue a secure discard operation that will permanantly remove the
sectors in question. We advertise that we can support that via the
'discard-secure' attribute and on the request, if the 'secure' bit
is set, we will attempt to pass in REQ_DISCARD | REQ_SECURE.

CC: Li Dongyang <lidongyang@novell.com>
[v1: Used 'flag' instead of 'secure:1' bit]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c
drivers/block/xen-blkfront.c
include/xen/interface/io/blkif.h