Michael Pasternak has posted comments on this change. Change subject: restapi: Adding support for copy/move disk from disk collection. ......................................................................
Patch Set 11: (1 comment) .................................................... File backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendDiskResource.java Line 88: storageDomainId, Line 89: ImageOperation.Copy); Line 90: return doAction(VdcActionType.MoveOrCopyDisk, params, action); Line 91: } Line 92: > Michael, those questions should be asked from the > beginning not on patch set 12, but probably better later than never, right? i was reviewing this patch only after your 10-th cycle (P/S-10), and there was no mention for specific use you aim for these methods (when the disk is attached only) > I am requested to provide these commands in different scope. > You can apply move and copy on generic disk without being in scope of any > particular VM or Template it exactly as you can do that from Disks tab in UI. that's not what the description in rsdl_metadata.yaml says. > > The backend logic allows move for floating disks either, but copy is allowed > for template disk only, so there is no reason to expose copy in VM scope, but > in general scope is fine. Line 93: @Override Line 94: public Disk get() { Line 95: return performGet(VdcQueryType.GetDiskByDiskId, new IdQueryParameters(guid)); Line 96: } -- To view, visit http://gerrit.ovirt.org/13973 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I516341d3e033a94a997ac5320312e75a5ed1576c Gerrit-PatchSet: 11 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Sergey Gotliv <sgot...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Ayal Baron <aba...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Michael Pasternak <mpast...@redhat.com> Gerrit-Reviewer: Ori Liel <ol...@redhat.com> Gerrit-Reviewer: Sergey Gotliv <sgot...@redhat.com> Gerrit-Reviewer: Tal Nisan <tni...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches