| CPC G06F 8/65 (2013.01) [G06F 9/4406 (2013.01); G06F 3/0614 (2013.01); G06F 3/0644 (2013.01); G06F 3/0673 (2013.01)] | 20 Claims |

|
1. An operating system update method, applied to an electronic device, wherein the electronic device comprises a super partition and a user data partition, and the method further comprises:
obtaining file list description information corresponding to an update package, wherein the file list description information indicates a first size of the update package, a second size that is of a first update file in the update package and that is obtained after compression, and a third size that is of the first update file and that exists before compression, and the first update file corresponds to a first sub-partition of the super partition; and
performing the following:
creating a first copy-on-write (cow) file corresponding to the first sub-partition in the user data partition when first available space of the user data partition is greater than a sum of the first size and the third size, wherein the first available space is available space that is of the user data partition and that exists before the update package is downloaded; or
creating a second cow file corresponding to the first sub-partition in the user data partition when first available space of the user data partition is greater than a sum of the first size and the second size and less than the sum of the first size and the third size, wherein a size of the first cow file is greater than a size of the second cow file.
|