mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
scst_vdisk, vdisk_blockio: Fix the resync_size functionality (trunk r9386)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.5.x@9462 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -6729,7 +6729,7 @@ static int vdisk_resync_size(struct scst_vdisk_dev *virt_dev)
|
||||
sBUG_ON(virt_dev->nullio);
|
||||
sBUG_ON(!virt_dev->filename);
|
||||
|
||||
if ((virt_dev->fd == NULL) || !virt_dev->dev_active) {
|
||||
if ((!virt_dev->fd && !virt_dev->bdev) || !virt_dev->dev_active) {
|
||||
res = -EMEDIUMTYPE;
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user