Data storage system using paced deallocation of truncated file blocks
US-10146780-B1 · Dec 4, 2018 · US
US11797288B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-11797288-B2 |
| Application number | US-202017604048-A |
| Country | US |
| Kind code | B2 |
| Filing date | Apr 13, 2020 |
| Priority date | Apr 17, 2019 |
| Publication date | Oct 24, 2023 |
| Grant date | Oct 24, 2023 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
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.
Opening claim text (preview).
What is claimed is: 1. 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. The patching method of claim 1 , wherein the second part further comprises a first data block, wherein the first data block and a second data block constitute a third data block of the first file in the new image, wherein the second data block is of the first file and is in the first part, and wherein pointers in the first inode point to the first data block and the second data block. 3. The patching method of claim 2 , wherein first data of the second data block is the same as second data of a fourth data block, wherein the fourth data block is of the first file and is in the original image, and wherein the second differential data is zero. 4. The patching method of claim 1 , wherein the second part further comprises a first data block configured to store full data of the first file, wherein a pointer in the first inode points to the first data block, and wherein the second differential data is zero. 5. The patching method of claim 1 , wherein a pointer in the first inode points to a first data block of the first file in the first part. 6. The patching method of claim 5 , wherein third data of the first data block is the same as fourth data of a second data block, wherein the second data block is of the first file in the original image, and wherein the second differential data is zero. 7. The patching method of claim 1 , wherein, on the first block device, the second part is on a first disk block that is configured for check data in the second block device, and wherein the check data checks the first differential data. 8. The patching method of claim 1 , wherein the patch further comprises a mapping table that records the mapping relationship from the virtual block device to the first block device and the second block device. 9. 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. 10. The patching method of claim 9 , wherein the second part further comprises a first data block, wherein the first data block and a second data block constitute a third data block of the first file in the new image, wherein the second data block is of the first file in the first part, and wherein pointers in the first inode point to the first data block and the second data block. 11. The patching method of claim 10 , wherein first data of the second data block is the same as second data of a fourth data block of the first file in the original image, and wherein the second differential data is zero. 12. The patching method of claim 9 , wherein the second part further comprises a first data block configured to store full data of the first file, wherein a pointer in the first inode points to the first data block, and wherein the second differential data is zero. 13. The patching method of claim 9 , wherein a pointer in the first inode points to a first data block of the first file in the first part. 14. The patching method of claim 13 , wherein third data of the first data block is the same as fourth data of a second data block of the first file in the original image, and wherein the second differential data is zero. 15. The patching method of claim 9 , wherein, on the first block device, the second part is carried on a first disk block that is configured for check data in the second block device, and wherein the check data checks the first differential data. 16. The patching method of claim 9 , wherein the patch further comprises a mapping table that records a mapping relationship from the virtual block device to the first block device and the second block device. 17. 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. 18. The electronic device of claim 17 , wherein the second part further comprises a first data block, wherein the first data block and a second data block constitute a third data block of the first file in the new image, wherein the second data block is of the first file in the first part, and wherein pointers in the first inode point to the first data block and the second data block. 19. The electronic device of claim 18 , wherein first data of the second data block is the same as second data of a fourth data block of the first file in the original image, and wherein the second differential data is zero. 20. The electronic device of claim 17 , wherein the second part further comprises a fifth data block configured to store full data of the first file, wherein a pointer in the first inode points to the fifth data block, and wherein the second differential data is zero.
Image based installation; Cloning; Build to order · CPC title
Updates (security arrangements therefor G06F21/57) · CPC title
of program code stored in read-only memory [ROM] · CPC title
Distributed file systems · CPC title
Virtual file systems · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.