Image upgrade method and device

US11249745B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11249745-B2
Application numberUS-202016824391-A
CountryUS
Kind codeB2
Filing dateMar 19, 2020
Priority dateSep 22, 2017
Publication dateFeb 15, 2022
Grant dateFeb 15, 2022

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

An image upgrade method is provided. The method includes: receiving an incremental image file of a container, where the incremental image file includes a newly-added file, a modified file, and information about a deleted file, and the information about the deleted file includes a name of each deleted file and a storage path of the deleted file; updating an original image layer based on the incremental image file to obtain an updated image layer, where a state of the deleted file is set to a hidden state at the updated image layer; and overlaying a file at the updated image layer with a file at a container data layer to form an updated unified view at a view layer for use by the container, where the updated unified view does not include the deleted file whose state is set to the hidden state.

First claim

Opening claim text (preview).

What is claimed is: 1. An image upgrade method, wherein the method is applied to a container, the container comprising: a view layer, a container data layer, and an original image layer; and the original image layer comprising: a first sublayer to an n th sublayer; the view layer, the container data layer, and the first sublayer to the n th sublayer being sequentially located in the container, wherein n≥1; and the method comprises: receiving an incremental image file of the container, wherein the incremental image file comprises a newly-added file, a modified file, and information about a deleted file, and the information about the deleted file comprises a name of each deleted file and a storage path of the deleted file; updating the original image layer based on the incremental image file to obtain an updated image layer, wherein a state of the deleted file is set to a hidden state at the updated image layer; and overlaying a file at the updated image layer with a file at the container data layer to form an updated unified view at the view layer for use by the container, wherein the updated unified view does not include the deleted file whose state is set to the hidden state. 2. The method according to claim 1 , wherein the updating the original image layer comprises: using the incremental image file as a file at a new first sublayer to form the first sublayer of the updated image layer, and using a file at an m th sublayer of the original image layer as a file at a new (m+1) th sublayer to form the (m+1) th sublayer of the updated image layer, wherein 1≤m≤n. 3. The method according to claim 1 , wherein the updating the original image layer comprises: using the incremental image file as a file at a new first sublayer to form the first sublayer of the updated image layer, using a file at an m th sublayer of the original image layer as a file at a new (m+1) th sublayer to form the (m+1) th sublayer of the updated image layer, and merging a file at an (n−1) th sublayer of the original image layer and a file at an n th sublayer of the original image layer as files at a new n th sublayer to form the n th sublayer of the updated image layer, wherein 1≤m≤n−2. 4. The method according to claim 3 , wherein the merging a file at an (n−1) th sublayer of the original image layer and a file at an n th sublayer of the original image layer as files at a new n th sublayer to form the n th sublayer of the updated image layer comprises: comparing the file at the (n−1) th sublayer of the original image layer with the file at the n th sublayer of the original image layer; and when a first file exists at the (n−1) th sublayer of the original image layer, and a file that has a same name as the first file exists at the n th sublayer of the original image layer, deleting the file that has the same name as the first file and that is at the n th sublayer of the original image layer, and merging the file at the (n−1) th sublayer of the original image layer and a remaining file at the n th sublayer of the original image layer to obtain files at the new n th sublayer to form the n th sublayer of the updated image layer. 5. The method according to claim 3 , wherein the merging a file at an (n−1) th sublayer of the original image layer and a file at an n th sublayer of the original image layer as files at a new n th sublayer to form the n th sublayer of the updated image layer comprises: when the file at the (n−1) th sublayer of the original image layer comprises a hidden-state description file, deleting the hidden-state description file, and deleting a file corresponding to a file name in the hidden-state description file from the n th sublayer of the original image layer; and merging the file at the (n−1) th sublayer of the original image layer and a remaining file at the n th sublayer of the original image layer to obtain files at the new n th sublayer to form the n th sublayer of the updated image layer. 6. The method according to claim 1 , wherein when a specified file is deleted from any sublayer of the updated image layer, a state of the specified file is set to a hidden state, so that the specified file is invisible to the container data layer and the view layer, wherein the specified file is any file. 7. The method according to claim 1 , wherein the method further comprises: determining a target file at the updated image layer, wherein a priority of the target file is higher than a priority of a file that has a same name as the target file and that is at the container data layer; and when overlaying the file at the updated image layer with the file at the container data layer, setting, to a hidden state, a state of the file that has the same name as the target file and that is at the container data layer, and presenting the target file in the updated unified view. 8. The method according claim 1 , wherein the method further comprises: deleting the first sublayer of the updated image layer; using the file at an m th sublayer of the updated image layer as a file at an (m−1) th sublayer of a rolled-back image layer to form the (m−1) th sublayer of the rolled-back image layer, wherein 2≤m≤n; and overlaying a file at the rolled-back image layer with the file at the container data layer to form a rolled-back unified view at the view layer for use by the container, wherein the rolled-back unified view is the same as a unified view obtained after a file at the original image layer is overlaid with the file at container data layer. 9. A device comprising: a memory; and a processor, wherein, the memory is configured to store a container, the container comprises: a view layer, a container data layer, and an original image layer; and the original image layer comprises: a first sublayer to an n th sublayer; the view layer, the container data layer, and the first sublayer to the n th sublayer being sequentially located in the container, wherein n≥1; and the processor is configured to perform the following method: receiving an incremental image file of the container, wherein the incremental image file comprises a newly-added file, a modified file, and information about a deleted file, and the information about the deleted file comprises a name of each deleted file and a storage path of the deleted file; updating the original image layer based on the incremental image file to obtain an updated image layer, wherein a state of the deleted file is set to a hidden state at the updated image layer; and overlaying a file at the updated image layer with a file at the container data layer to form an updated unified view at the view layer for use by the container, wherein the updated unified view does not include the deleted file whose state is set to the hidden state. 10. The device according to claim 9 , wherein the updating the original image layer comprises: using the incremental image file as a file at a new first sublayer to form the first sublayer of the updated image layer, and using a file at an m th sublayer of the original image layer as a file at a new (m+1) th sublayer to form the (m+1) th sublayer of the updated image layer, wherein 1≤m≤n. 11. The device according to claim 9 , wherein the updating the original image layer comprises: using the incremental image file as a file at a new first sublayer to form the first sublayer of the updated image layer, using a file at an m th sublayer of the original image layer as a file at a new (m+1) th sublayer to form the (m+1) th sublayer of the updated image layer, and merging a file at an (n−1) th sublayer of the original image layer and a file at an n th sublayer of the original image layer as files at a new n th sublayer to form the n th su

Assignees

Inventors

Classifications

  • Energy efficient computing, e.g. low power processors, power management or thermal management · CPC title

  • G06F8/658Primary

    Incremental updates; Differential updates · CPC title

  • G06F8/65Primary

    Updates (security arrangements therefor G06F21/57) · CPC title

  • considering software capabilities, i.e. software resources associated or available to the machine · CPC title

  • Image based installation; Cloning; Build to order · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11249745B2 cover?
An image upgrade method is provided. The method includes: receiving an incremental image file of a container, where the incremental image file includes a newly-added file, a modified file, and information about a deleted file, and the information about the deleted file includes a name of each deleted file and a storage path of the deleted file; updating an original image layer based on the incr…
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F8/658. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Feb 15 2022 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 12 related publications on this page (citations in our corpus or others sharing the same primary CPC).