Liron Ar has posted comments on this change.

Change subject: core: Add read-only disk functionality
......................................................................


Patch Set 6:

(2 comments)

ignore the comment about the dao's.I've forgot that the readonly attribute 
wasn't added here from scratch.
 
please take a look on the issue in the update disk command.

thanks.

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportVmFromConfigurationCommand.java
Line 70:     private AuditLogType 
attemptToAttachDisksToImportedVm(Collection<Disk> disks){
Line 71:         List<String> failedDisks = new LinkedList<>();
Line 72:         for (Disk disk : disks) {
Line 73:             AttachDettachVmDiskParameters params = new 
AttachDettachVmDiskParameters(getVm().getId(),
Line 74:                     disk.getId(), disk.getPlugged(), 
disk.getReadOnly());
forgot that it's already present there..can be ignored.
Line 75:             VdcReturnValueBase returnVal = 
getBackend().runInternalAction(VdcActionType.AttachDiskToVm, params);
Line 76:             if (!returnVal.getSucceeded()) {
Line 77:                 failedDisks.add(disk.getDiskAlias());
Line 78:             }


....................................................
File 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmDevice.java
Line 188:         this.isPlugged = isPlugged;
Line 189:     }
Line 190: 
Line 191:     public boolean getIsReadOnly() {
Line 192:         return isReadOnly == null ? Boolean.FALSE : isReadOnly;
just saw the comment of maor on top of the file, please ignore.
Line 193:     }
Line 194: 
Line 195:     public void setIsReadOnly(boolean isReadOnly) {
Line 196:         this.isReadOnly = isReadOnly;


-- 
To view, visit http://gerrit.ovirt.org/15409
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I124176e8feb91b601a71e76dd63051648ec4353a
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vered Volansky <vvola...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Liron Ar <lara...@redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpast...@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

Reply via email to