Revision 8576ae69 src/vm/VirtualMachineDisk.cc

View differences:

src/vm/VirtualMachineDisk.cc
202 202
    long long size_mb, snap_size;
203 203
    int snap_id;
204 204

  
205
    bool ro;
206

  
205 207
    if (is_volatile())
206 208
    {
207 209
        error = "Cannot make snapshots on volatile disks";
......
214 216
        return -1;
215 217
    }
216 218

  
219
    if ((vector_value("READONLY", ro) == 0) && ro == true )
220
    {
221
        error = "Cannot make snapshots on readonly disks";
222
        return -1;
223
    }
224

  
217 225
    if ( snapshots == 0 )
218 226
    {
219 227
        snapshots = new Snapshots(get_id(), allow_orphans());

Also available in: Unified diff