Revision 0aa217e4 block/qcow2.c

b/block/qcow2.c
145 145
    QCowHeader header;
146 146
    uint64_t ext_end;
147 147

  
148
    /* Performance is terrible right now with cache=writethrough due mainly
149
     * to reference count updates.  If the user does not explicitly specify
150
     * a caching type, force to writeback caching.
151
     */
152
    if ((flags & BDRV_O_CACHE_DEF)) {
153
        flags |= BDRV_O_CACHE_WB;
154
        flags &= ~BDRV_O_CACHE_DEF;
155
    }
156 148
    ret = bdrv_file_open(&s->hd, filename, flags);
157 149
    if (ret < 0)
158 150
        return ret;

Also available in: Unified diff