From 44505adfb26bb6090f0fce5fbed6f4e292027e15 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 3 Feb 2019 23:57:46 +0000 Subject: [PATCH] scst_vdisk: Introduce vdev_verify() This patch does not change any functionality. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7901 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index db9dbf1d7..43c5942aa 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -7086,10 +7086,8 @@ static ssize_t vdev_read_sync(struct scst_vdisk_dev *virt_dev, void *buf, } } -static enum compl_status_e vdev_exec_verify(struct vdisk_cmd_params *p) +static enum compl_status_e vdev_verify(struct scst_cmd *cmd, loff_t loff) { - struct scst_cmd *cmd = p->cmd; - loff_t loff = p->loff; loff_t err; ssize_t length, len_mem = 0; uint8_t *address_sav, *address = NULL; @@ -7187,6 +7185,11 @@ out: return CMD_SUCCEEDED; } +static enum compl_status_e vdev_exec_verify(struct vdisk_cmd_params *p) +{ + return vdev_verify(p->cmd, p->loff); +} + static enum compl_status_e blockio_exec_write_verify(struct vdisk_cmd_params *p) { /* Not yet implemented */