Thread (6 messages) 6 messages, 2 authors, 2022-08-29

Re: [PATCH] virtio_blk: add SECURE ERASE command support

flat view

From: Stefan Hajnoczi <stefanha@redhat.com>
Date: 2022-08-23 19:46:11

On Mon, Aug 22, 2022 at 07:20:55PM +0300, Alvaro Karsz wrote:
quoted hunk
@@ -1075,6 +1079,12 @@ static int virtblk_probe(struct virtio_device *vdev)
 		blk_queue_max_write_zeroes_sectors(q, v ? v : UINT_MAX);
 	}

+	if (virtio_has_feature(vdev, VIRTIO_BLK_F_SECURE_ERASE)) {
+		virtio_cread(vdev, struct virtio_blk_config,
+			     max_secure_erase_sectors, &v);
+		blk_queue_max_secure_erase_sectors(q, v ? v : UINT_MAX);
+	}
What about max_secure_erase_seg and secure_erase_sector_alignment?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help