dlcservice: Persist validity stamp for DLCs [chromiumos/platform2 : master]

11 views
Skip to first unread message

Jae Hoon Kim (Gerrit)

unread,
Apr 7, 2020, 8:46:18 PM4/7/20
to Mike Frysinger

Jae Hoon Kim has uploaded this change for review.

View Change

dlcservice: Persist validity stamp for DLCs

We need to persist the validity stamp for DLCs so in the future
dlcservice may respond to Update Engine with valid DLCs instead of the
only returning the currently installed and mounted DLCs.

BUG=chromium:1059126
TEST=FEATURES=test emerge-$B dlcservice dlcservice-client

Change-Id: I8e773dc7e1682cbe4bc643d72ae1481718701234
---
M dlcservice/boot/boot_slot.cc
M dlcservice/boot/boot_slot.h
M dlcservice/dlc.cc
M dlcservice/dlc.h
M dlcservice/dlc_service_test.cc
M dlcservice/utils.cc
M dlcservice/utils.h
7 files changed, 71 insertions(+), 2 deletions(-)


To view, visit change 2141191. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromiumos/platform2
Gerrit-Branch: master
Gerrit-Change-Id: I8e773dc7e1682cbe4bc643d72ae1481718701234
Gerrit-Change-Number: 2141191
Gerrit-PatchSet: 1
Gerrit-Owner: Jae Hoon Kim <kim...@chromium.org>
Gerrit-MessageType: newchange

Jae Hoon Kim (Gerrit)

unread,
Apr 7, 2020, 8:47:30 PM4/7/20
to Amin Hassani, Andrew Lassalle

Persist Validity Stamp, PTAL~

Patch set 1:Verified +1

View Change

    To view, visit change 2141191. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromiumos/platform2
    Gerrit-Branch: master
    Gerrit-Change-Id: I8e773dc7e1682cbe4bc643d72ae1481718701234
    Gerrit-Change-Number: 2141191
    Gerrit-PatchSet: 1
    Gerrit-Owner: Jae Hoon Kim <kim...@chromium.org>
    Gerrit-Reviewer: Amin Hassani <ahas...@chromium.org>
    Gerrit-Reviewer: Andrew Lassalle <andrewl...@chromium.org>
    Gerrit-Reviewer: Jae Hoon Kim <kim...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Apr 2020 00:47:26 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Andrew Lassalle (Gerrit)

    unread,
    Apr 8, 2020, 12:26:31 PM4/8/20
    to Jae Hoon Kim, Amin Hassani

    View Change

    7 comments:

    To view, visit change 2141191. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromiumos/platform2
    Gerrit-Branch: master
    Gerrit-Change-Id: I8e773dc7e1682cbe4bc643d72ae1481718701234
    Gerrit-Change-Number: 2141191
    Gerrit-PatchSet: 1
    Gerrit-Owner: Jae Hoon Kim <kim...@chromium.org>
    Gerrit-Reviewer: Amin Hassani <ahas...@chromium.org>
    Gerrit-Reviewer: Andrew Lassalle <andrewl...@chromium.org>
    Gerrit-Reviewer: Jae Hoon Kim <kim...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Apr 2020 16:26:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Jae Hoon Kim (Gerrit)

    unread,
    Apr 8, 2020, 12:44:39 PM4/8/20
    to Andrew Lassalle, Amin Hassani

    View Change

    6 comments:

      • Are you going to have different subdirs for each slot? this might not be compatible with the prefs c […]

        What prefs class for dlcservice?

      • if you are having multiple directories, it implies that you will store other settings in those direc […]

        Only file in the slot, but doesn't hurt to scope to file. Ack

    • File dlcservice/dlc_service_test.cc:

      • Sticking with auto as that's how it's been done and readability is fine.

    To view, visit change 2141191. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromiumos/platform2
    Gerrit-Branch: master
    Gerrit-Change-Id: I8e773dc7e1682cbe4bc643d72ae1481718701234
    Gerrit-Change-Number: 2141191
    Gerrit-PatchSet: 1
    Gerrit-Owner: Jae Hoon Kim <kim...@chromium.org>
    Gerrit-Reviewer: Amin Hassani <ahas...@chromium.org>
    Gerrit-Reviewer: Andrew Lassalle <andrewl...@chromium.org>
    Gerrit-Reviewer: Jae Hoon Kim <kim...@chromium.org>
    Gerrit-Comment-Date: Wed, 08 Apr 2020 16:44:32 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Andrew Lassalle <andrewl...@chromium.org>
    Gerrit-MessageType: comment
    Reply all
    Reply to author
    Forward
    0 new messages