$list->{$storeid}->{$image} = {
name => $image,
size => $size * $unittobytes{$unit},
+ format => 'raw',
};
}
});
sub plugindata {
return {
- content => [ {images => 1, none => 1}, { images => 1 }],
+ content => [ {images => 1, none => 1}, { images => 1 }],
+ select_existing => 1,
};
}
nodes => { optional => 1},
disable => { optional => 1},
content => { optional => 1},
+ bwlimit => { optional => 1 },
};
}
if ($volname =~ m/^lun(\d+)$/) {
- return ('images', $1, undef);
+ return ('images', $1, undef, undef, undef, undef, 'raw');
}
die "unable to parse iscsi volume name '$volname'\n";
}
sub path {
- my ($class, $scfg, $volname) = @_;
+ my ($class, $scfg, $volname, $storeid, $snapname) = @_;
+
+ die "volume snapshot is not possible on iscsi device"
+ if defined($snapname);
my ($vtype, $lun, $vmid) = $class->parse_volname($volname);
}
sub activate_volume {
- my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+ my ($class, $storeid, $scfg, $volname, $snapname, $cache) = @_;
+
+ die "volume snapshot is not possible on iscsi device" if $snapname;
+
return 1;
}
sub deactivate_volume {
- my ($class, $storeid, $scfg, $volname, $exclusive, $cache) = @_;
+ my ($class, $storeid, $scfg, $volname, $snapname, $cache) = @_;
+
+ die "volume snapshot is not possible on iscsi device" if $snapname;
+
return 1;
}