diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-03-01 08:24:01 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-03-01 08:24:01 +0000 |
commit | b48922224f13c7323a389cc8b2585d43dc1ba724 (patch) | |
tree | b346453de9e0cf7da2e9385a84b0415df6948816 | |
parent | 07857df694c5f6de7a2501bc27718904f6bf847a (diff) | |
parent | 7dfe7495d581c43e374b01ab9f78cce0093dd302 (diff) | |
download | system_api-b48922224f13c7323a389cc8b2585d43dc1ba724.tar.gz |
Snap for 4628106 from 7dfe7495d581c43e374b01ab9f78cce0093dd302 to pi-releaseandroid-wear-9.0.0_r9android-wear-9.0.0_r8android-wear-9.0.0_r7android-wear-9.0.0_r6android-wear-9.0.0_r5android-wear-9.0.0_r4android-wear-9.0.0_r34android-wear-9.0.0_r33android-wear-9.0.0_r32android-wear-9.0.0_r31android-wear-9.0.0_r30android-wear-9.0.0_r3android-wear-9.0.0_r29android-wear-9.0.0_r28android-wear-9.0.0_r27android-wear-9.0.0_r26android-wear-9.0.0_r25android-wear-9.0.0_r24android-wear-9.0.0_r23android-wear-9.0.0_r22android-wear-9.0.0_r21android-wear-9.0.0_r20android-wear-9.0.0_r2android-wear-9.0.0_r19android-wear-9.0.0_r18android-wear-9.0.0_r17android-wear-9.0.0_r16android-wear-9.0.0_r15android-wear-9.0.0_r14android-wear-9.0.0_r13android-wear-9.0.0_r12android-wear-9.0.0_r11android-wear-9.0.0_r10android-wear-9.0.0_r1android-vts-9.0_r9android-vts-9.0_r8android-vts-9.0_r7android-vts-9.0_r6android-vts-9.0_r5android-vts-9.0_r4android-vts-9.0_r19android-vts-9.0_r18android-vts-9.0_r17android-vts-9.0_r16android-vts-9.0_r15android-vts-9.0_r14android-vts-9.0_r13android-vts-9.0_r12android-vts-9.0_r11android-vts-9.0_r10android-security-9.0.0_r76android-security-9.0.0_r75android-security-9.0.0_r74android-security-9.0.0_r73android-security-9.0.0_r72android-security-9.0.0_r71android-security-9.0.0_r70android-security-9.0.0_r69android-security-9.0.0_r68android-security-9.0.0_r67android-security-9.0.0_r66android-security-9.0.0_r65android-security-9.0.0_r64android-security-9.0.0_r63android-security-9.0.0_r62android-cts-9.0_r9android-cts-9.0_r8android-cts-9.0_r7android-cts-9.0_r6android-cts-9.0_r5android-cts-9.0_r4android-cts-9.0_r3android-cts-9.0_r20android-cts-9.0_r2android-cts-9.0_r19android-cts-9.0_r18android-cts-9.0_r17android-cts-9.0_r16android-cts-9.0_r15android-cts-9.0_r14android-cts-9.0_r13android-cts-9.0_r12android-cts-9.0_r11android-cts-9.0_r10android-cts-9.0_r1android-9.0.0_r9android-9.0.0_r8android-9.0.0_r7android-9.0.0_r61android-9.0.0_r60android-9.0.0_r6android-9.0.0_r59android-9.0.0_r58android-9.0.0_r57android-9.0.0_r56android-9.0.0_r55android-9.0.0_r54android-9.0.0_r53android-9.0.0_r52android-9.0.0_r51android-9.0.0_r50android-9.0.0_r5android-9.0.0_r49android-9.0.0_r48android-9.0.0_r3android-9.0.0_r2android-9.0.0_r18android-9.0.0_r17android-9.0.0_r10android-9.0.0_r1security-pi-releasepie-vts-releasepie-security-releasepie-s2-releasepie-release-2pie-releasepie-r2-s2-releasepie-r2-s1-releasepie-r2-releasepie-platform-releasepie-gsipie-cuttlefish-testingpie-cts-release
Change-Id: I1ab8f7eef3d008326bab1e08199d47ac1c3d90ca
-rw-r--r-- | dbus/vm_concierge/dbus-constants.h | 1 | ||||
-rw-r--r-- | dbus/vm_concierge/service.proto | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/dbus/vm_concierge/dbus-constants.h b/dbus/vm_concierge/dbus-constants.h index 454b644..43ca67e 100644 --- a/dbus/vm_concierge/dbus-constants.h +++ b/dbus/vm_concierge/dbus-constants.h @@ -17,6 +17,7 @@ const char kStopVmMethod[] = "StopVm"; const char kStopAllVmsMethod[] = "StopAllVms"; const char kGetVmInfoMethod[] = "GetVmInfo"; const char kCreateDiskImageMethod[] = "CreateDiskImage"; +const char kDestroyDiskImageMethod[] = "DestroyDiskImage"; } // namespace concierge } // namespace vm_tools diff --git a/dbus/vm_concierge/service.proto b/dbus/vm_concierge/service.proto index 9606aaf..132a174 100644 --- a/dbus/vm_concierge/service.proto +++ b/dbus/vm_concierge/service.proto @@ -3,6 +3,7 @@ // found in the LICENSE file. syntax = "proto3"; +option optimize_for = LITE_RUNTIME; // This file defines messages used for starting, stopping, and managing VMs. package vm_tools.concierge; @@ -149,6 +150,12 @@ enum DiskImageStatus { // Unable to create the disk image. DISK_STATUS_FAILED = 3; + + // Specified Disk does not exist. + DISK_STATUS_DOES_NOT_EXIST = 4; + + // The specified disk was destroyed. + DISK_STATUS_DESTROYED = 5; } // Request to concierge to create a disk image. @@ -182,3 +189,25 @@ message CreateDiskImageResponse { // The failure reason if the disk image could not be created or doesn't exist. string failure_reason = 3; } + +// Request to concierge to destroy a disk image. +message DestroyDiskImageRequest { + // The cryptohome id for the user's encrypted storage. + string cryptohome_id = 1; + + // The path to the disk image. This must be a relative path. + string disk_path = 2; + + // The storage location for the disk image. + StorageLocation storage_location = 3; +} + +// Response to a DestroyDiskImageRequest. +message DestroyDiskImageResponse { + // If DISK_STATUS_DESTROYED, the disk image has been successfully destroyed. + // If DISK_STATUS_DOES_NOT_EXIST, the disk image had already been removed. + DiskImageStatus status = 1; + + // The failure reason if the disk image could not be destroyed or doesn't exist. + string failure_reason = 3; +} |