Revision 301db7c2

b/block.c
2398 2398
    MultiwriteCB *mcb;
2399 2399
    int i;
2400 2400

  
2401
    /* don't submit writes if we don't have a medium */
2402
    if (bs->drv == NULL) {
2403
        for (i = 0; i < num_reqs; i++) {
2404
            reqs[i].error = -ENOMEDIUM;
2405
        }
2406
        return -1;
2407
    }
2408

  
2401 2409
    if (num_reqs == 0) {
2402 2410
        return 0;
2403 2411
    }

Also available in: Unified diff