Revision 0a7fc983 block/parallels.c

b/block/parallels.c
74 74
    int fd, i;
75 75
    struct parallels_header ph;
76 76

  
77
    fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
77
    fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
78 78
    if (fd < 0) {
79
        fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
80
        if (fd < 0)
81
            return -1;
79
        return -1;
82 80
    }
83 81

  
84 82
    bs->read_only = 1; // no write support yet

Also available in: Unified diff