Back to results
US 2022/0188093 A1Published application
Patching Method, Related Apparatus, and System
AssigneeHuawei Technologies Co., Ltd.
InventorsWenjie Ren, Qiaosheng Han, Yonghong Yin, Yingwei Li, Jinpeng Zhu
Life of this patent
Estimating the term…
Abstract
A patching method includes generating an original image through compilation for a plurality of files. If a first file in the plurality of files changes, a new index mode of the first file or new data of the first file may be appended to an end of an original image to update the first file to obtain a new image.
Claims22
A patching method implemented by a server, wherein the patching method comprises:
- generating, based on an original image and a first file, a new image comprising a first part and a second part, wherein a first disk layout of the first part is the same as a second disk layout of the original image, wherein the second part is appended to an end of the first part, wherein the second part comprises a first index node (inode) of the first file, and wherein the first file is a changed file in the original image;
- writing the new image into a virtual block device that is obtained based on mapping a first block device and a second block device, wherein the second block device comprises the original image;
- writing first differential data between the new image and the original image into the first block device based on a mapping relationship from the virtual block device to the first block device and the second block device, wherein the first differential data comprises the second part and second differential data between the first part and the original image;
- and
- sending, to an electronic device, a patch comprising the first differential data.
2 more elements
A patching method implemented by an electronic device, wherein the patching method comprises:
- receiving, from a server, a patch comprising first differential data;
- wherein the first differential data comprises a second part of a new image and second differential data between a first part of the new image and an original image, wherein the new image is based on the original image and a first file, wherein the first file is a changed file in the original image, wherein a first disk layout of the first part is the same as a second disk layout of the original image, wherein the second part is appended to an end of the first part, and wherein the second part comprises a first index node (inode);
- of the first file;
- writing the first differential data into a first block device;
- mapping the first block device and a second block device that stores the original image to a virtual block device;
- mounting the virtual block device;
- and
- reading and installing the new image stored in the virtual block device.
5 more elements
(canceled)
An electronic device comprising:
- a receiver configured to receive, from a server, a patch comprising first differential data, wherein the first differential data comprises a second part of a new image and second differential data between a first part of the new image and an original image, wherein the new image is based on the original image and a first file, wherein the first file is a changed file in the original image, wherein a first disk layout of the first part is the same as a second disk layout of the original image, wherein the second part is appended to an end of the first part, and wherein the second part comprises a first index node (inode) of the first file;
- and
- a processor coupled to the receiver and configured to:
- write the first differential data into a first block device;
- map the first block device and a second block device that stores the original image to a virtual block device;
- mount the virtual block device;
- and
- read and install the new image stored in the virtual block device.
5 more elements
-20. (canceled)
Dependencies are inferred from the claim text.