Revision 1cb6f506

b/block.c
889 889
    }
890 890

  
891 891
    bs->open_flags &= ~BDRV_O_NO_BACKING;
892
    if (bs->backing_file[0] == '\0' && qdict_size(options) == 0) {
892
    if (qdict_haskey(options, "file.filename")) {
893
        backing_filename[0] = '\0';
894
    } else if (bs->backing_file[0] == '\0' && qdict_size(options) == 0) {
893 895
        QDECREF(options);
894 896
        return 0;
895 897
    }

Also available in: Unified diff