> + if (volumeInfo.capacity < length) { > + vshError(ctl, _("lenth parameter is bigger than volume %s > capacity"), name); > + goto cleanup; > + } > + > + if (volumeInfo.capacity < fileLen + offset) { > + vshError(ctl, _("file is bigger than volume %s capacity"), name); > + goto cleanup; > + } > +
I'm not totally right if I split this IF's or join them into a single IF. I'm assuming that more information is better to understand the error. -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list