*/
public void resize(QemuImgFile file, long size, boolean delta) throws QemuImgException {
String newSize = null;
if (size == 0) {
throw new QemuImgException("size should never be exactly zero");
}
if (delta) {
if (size > 0) {
newSize = "+" + Long.toString(size);
} else {
newSize = Long.toString(size);
}
} else {
if (size <= 0) {
throw new QemuImgException("size should not be negative if 'delta' is false!");
}
newSize = Long.toString(size);
}
Script s = new Script(_qemuImgPath);