Revision 0f8151cb hw/virtio-9p.c

b/hw/virtio-9p.c
1704 1704
        if (s->proto_version == V9FS_PROTO_2000L) {
1705 1705
            flags = vs->mode;
1706 1706
            flags &= ~(O_NOCTTY | O_ASYNC | O_CREAT);
1707
            /* Ignore direct disk access hint until the server supports it. */
1708
            flags &= ~O_DIRECT;
1707 1709
        } else {
1708 1710
            flags = omode_to_uflags(vs->mode);
1709 1711
        }
......
1826 1828
    v9fs_string_sprintf(&vs->fullname, "%s/%s", vs->fidp->path.data,
1827 1829
             vs->name.data);
1828 1830

  
1831
    /* Ignore direct disk access hint until the server supports it. */
1832
    flags &= ~O_DIRECT;
1833

  
1829 1834
    vs->fidp->fs.fd = v9fs_do_open2(s, vs->fullname.data, vs->fidp->uid,
1830 1835
            gid, flags, mode);
1831 1836
    v9fs_lcreate_post_do_open2(s, vs, err);

Also available in: Unified diff