Revision 8576ae69

View differences:

share/etc/oned.conf
1055 1055
#            among the different hosts or not. Valid values: "yes" or "no"
1056 1056
#   ds_migrate : The driver allows migrations across datastores. Valid values:
1057 1057
#               "yes" or "no". Note: THIS ONLY APPLIES TO SYSTEM DS.
1058
#   allow_orphans: Snapshots can live without parents
1058 1059
#*******************************************************************************
1059 1060

  
1060 1061
TM_MAD_CONF = [
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