Revision b196b153

b/vl.c
2233 2233
        }
2234 2234
        (void)bdrv_set_read_only(dinfo->bdrv, 1);
2235 2235
    }
2236
    /* 
2237
     * cdrom is read-only. Set it now, after above interface checking
2238
     * since readonly attribute not explicitly required, so no error.
2239
     */
2240
    if (media == MEDIA_CDROM) {
2241
        (void)bdrv_set_read_only(dinfo->bdrv, 1);
2242
    }
2236 2243

  
2237 2244
    if (bdrv_open2(dinfo->bdrv, file, bdrv_flags, drv) < 0) {
2238 2245
        fprintf(stderr, "qemu: could not open disk image %s: %s\n",

Also available in: Unified diff