]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/blk[front|back]: Enhance discard support with secure erasing support.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 12 Oct 2011 20:23:30 +0000 (16:23 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 13 Dec 2011 15:38:01 +0000 (10:38 -0500)
commite461cbebcc302844de2af19f94e33a4b98cb1ede
tree1243945dc112bd0c6c37c288fe4539d296c70258
parent409aed7257c047046882f29cfa72f74132e65e05
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]
[v2: Use 'reserved' uint8_t instead of adding a new value]
[v3: Check for nseg when mapping instead of operation]
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