CN107423038B - Differential inclusion merging method and system independent of file system - Google Patents

Differential inclusion merging method and system independent of file system Download PDF

Info

Publication number
CN107423038B
CN107423038B CN201710158034.7A CN201710158034A CN107423038B CN 107423038 B CN107423038 B CN 107423038B CN 201710158034 A CN201710158034 A CN 201710158034A CN 107423038 B CN107423038 B CN 107423038B
Authority
CN
China
Prior art keywords
memory pointer
differential
pointer
memory
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710158034.7A
Other languages
Chinese (zh)
Other versions
CN107423038A (en
Inventor
惠红磊
张天瑜
许宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Guanghetong Wireless Communication Software Co ltd
Original Assignee
Shenzhen Guanghetong Wireless Communication Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Guanghetong Wireless Communication Software Co ltd filed Critical Shenzhen Guanghetong Wireless Communication Software Co ltd
Priority to CN201710158034.7A priority Critical patent/CN107423038B/en
Publication of CN107423038A publication Critical patent/CN107423038A/en
Application granted granted Critical
Publication of CN107423038B publication Critical patent/CN107423038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a differential packet merging method and a differential packet merging system independent of a file system, wherein the first N bytes in a differential packet are copied to obtain byte data, a control field and differential data are obtained according to the byte data, a preset memory pointer is determined, an address pointed by the preset memory pointer is transmitted to a structural body in the differential packet to obtain a modified differential packet, the preset memory pointer comprises a memory pointer pointed to the last byte of the differential packet, the content in the modified differential packet is read circularly, and the content read circularly and the content of an old version are subjected to differential operation to generate the content of a new version. In the whole process, the position of reading files in the source codes is modified into a memory, a pointer for transmitting the memory is adopted, and the pointer comprises a pointer for transmitting the end of the differential packet, so that the reading files are modified into the content of the differential packet copied from the corresponding address, and finally, the original differential packet merging mode is transplanted to a platform which does not support a file system for use.

Description

Differential inclusion merging method and system independent of file system
Technical Field
The invention relates to the technical field of computers, in particular to a differential inclusion merging method and a differential inclusion merging system which are independent of a file system.
Background
At present, incremental upgrading between different versions of a program can be realized in a computer or a terminal program, namely, updating of the versions is realized in a differential mode.
By taking the android system as an application scene as an example, incremental upgrading among different versions of a program can be realized in android source code intelligent application updating. However, because the bsdiff tool in the android system is used for generating the differential package, and the bat tool is used for synthesizing the differential package and the old version into the new version, both of the tools require the new version and the old version to be given in the form of files in the running process, so that the set of open source codes cannot be used when being transplanted to other operating systems which do not support the file system, and if a set of file system is implemented, a large workload is undoubtedly increased, and a large overhead is also brought to the system.
It can be seen that the process of synthesizing a new version by using a common differential packet and an old version depends on a file system, and the popularization and application of the differential packet merging technology are seriously influenced.
Disclosure of Invention
In view of the above, it is necessary to provide a differential inclusion merging method and system independent of a file system, aiming at the problem that no differential inclusion merging method independent of a file system exists at present.
A file system independent differential packet merging method, comprising the steps of:
storing the differential packet of the new version and the old version in a memory;
copying the first N bytes in the differential packet to obtain byte data, wherein N is a positive integer;
acquiring a control field and differential data according to byte data;
determining a preset memory pointer, acquiring an address and differential data of a control field pointed by the preset memory pointer, transmitting the address pointed by the preset memory pointer to a structural body in a differential packet, and acquiring a modified differential packet, wherein the preset memory pointer comprises a memory pointer pointing to the last byte of the differential packet;
reading the old version content into a memory;
and circularly reading the content in the modified differential packet, and carrying out differential operation on the circularly read content and the old version content to generate the new version content.
A file system independent differential inclusion concurrency system, comprising:
the storage module is used for storing the differential packet of the new version and the old version in a memory;
the copying module is used for copying the first N bytes in the differential packet to obtain byte data, wherein N is a positive integer;
the parameter acquisition module is used for acquiring the control field and the differential data according to the byte data;
the pointer processing module is used for determining a preset memory pointer, acquiring the address and the differential data of the control field pointed by the preset memory pointer, transmitting the address pointed by the preset memory pointer to a structural body in the differential packet, and acquiring a modified differential packet, wherein the preset memory pointer comprises a memory pointer pointing to the last byte of the differential packet;
the reading module is used for reading the old version content into the memory;
and the difference operation module is used for circularly reading the content in the modified difference packet and carrying out difference operation on the circularly read content and the old version content to generate a new version content.
According to the differential packet merging method and the differential packet merging system which do not depend on a file system, the first N bytes in the differential packet are copied to obtain byte data, the control field and the differential data are obtained according to the byte data, the preset memory pointer is determined, the address pointed by the preset memory pointer is transmitted to the structural body in the differential packet to obtain the modified differential packet, the preset memory pointer comprises the memory pointer pointed to the last byte of the differential packet, the content in the modified differential packet is read in a circulating mode, and the content read in the circulating mode and the content of the old version are subjected to differential operation to generate the content of the new version. In the whole process, the position of reading files in the source codes is modified into a memory, a pointer for transmitting the memory is adopted, and the pointer comprises a pointer for transmitting the end of the differential packet, so that the reading files are modified into the content of the differential packet copied from the corresponding address, and finally, the traditional differential packet merging mode is transplanted to a platform which does not support a file system for use.
Drawings
FIG. 1 is a flow chart illustrating a conventional differential inclusion merging method relying on a file system;
FIG. 2 is a flow chart illustrating one embodiment of a file system independent differential inclusion method according to the present invention;
FIG. 3 is a flowchart illustrating an exemplary embodiment of a differential inclusion merging method according to the present invention;
FIG. 4 is a schematic structural diagram of one embodiment of a file system independent differential inclusion concurrency system according to the present invention.
Detailed Description
The bsdiff tool can be implemented on a Windows system and used for generating the differential packet without modification, the bsmatch needs to be operated in a terminal system, and whether the terminal supports the file system or not can influence the use of the bsmatch, so the invention does not depend on the differential inclusion method of the file system and focuses on modifying in a bsmatch source code.
In order to further explain the technical solution and the principle of the differential inclusion merging method independent of the file system in the present invention in detail, the following description will be directed to a general differential inclusion merging method dependent on the file system, and the differences between the differential inclusion merging method independent of the file system and the general differential inclusion merging method dependent on the file system will be explained.
As shown in fig. 1, the differential enclosure merging method generally required to depend on a file system includes the steps of:
1. opening a differential package file;
2. reading the first 32 bytes of the file;
3. when the first 8 bytes in the read data are 'BSDIFF 40', entering the step 4, and when the first 8 bytes are not 'BSDIFF 40', ending the operation by bytes;
4. obtaining the length of a control field, the length of differential data and the length of a new file from the first 32 bytes;
5. closing the differential packet file;
6. opening the differential package file, obtaining a file handle cpf, and positioning the handle position at the 33 rd byte;
7. opening the differential packet file, acquiring a file handle dpf, and positioning the handle position behind the control field;
8. calling BZ2_ bzReadOpen (), and transferring the handle dpf to an element handle of the structure bzf;
9. opening the differential package file, obtaining a file handle epf, and locating the handle location behind the data field;
10. call BZ2_ bzReadOpen (), pass handle epf into the element handle of struct bzf;
11. opening the old version file and reading the file content into the memory;
12. and circularly reading the differential file content, and carrying out differential operation on the differential file content and the old version content to generate the new version content.
From the above flow, it can be seen that the general differential inclusion merging method must depend on the file system, and for this reason, the present invention provides a differential inclusion merging method that does not depend on the file system, as specifically shown in fig. 2, and includes the steps of:
s100: and storing the differential packets of the new version and the old version in a memory.
The differential packet of the new and old versions refers to a differential data packet between the old version and the new version of the software (system), for example, if the current version (old version) of the system is V1 and the new version is V2, the differential packet records differential data between the old version V1 and the new version V2, and the common record is V21. In the method, the difference packet is not opened directly in the traditional method, but the difference packet of the new version and the old version is stored in the memory, so that the final whole scheme can modify the position of reading the file in the source code into the reading memory, and the data change is effectively reduced.
S200: and copying the first N bytes in the differential packet to obtain byte data, wherein N is a positive integer.
The specific value of N may be adjusted according to actual conditions, and generally, the first 32 bytes in the differential packet are directly copied to obtain byte data.
S300: and acquiring the control field and the differential data according to the byte data.
Based on the byte data copied in step S200, the control field and the differential data are acquired, and in addition, parameters such as the length of the new file can be acquired.
S400: determining a preset memory pointer, acquiring an address and differential data of a control field pointed by the preset memory pointer, transmitting the address pointed by the preset memory pointer to a structural body in a differential packet, and acquiring a modified differential packet, wherein the preset memory pointer comprises a memory pointer pointing to the last byte of the differential packet.
The operation of transferring the file handle in the differential packet merging method generally depending on the file system is changed into transferring a memory pointer, and a pointer for transferring the end of the differential packet is added, because the end of the file only needs to be judged in the process of reading the file, and therefore the end of the differential packet also needs to be judged for the operation of the memory. It can be seen that here, unlike the differential inclusion method that generally relies on a file system, the handle to save a file is modified to the address pointed to by the save pointer. And modifies the read file to copy the differential packet contents from the corresponding address.
S500: and reading the old version content into the memory.
Similarly, the old version content is also read into the memory, that is, the old version content and the modified differential packet processed in step S400 are already stored in the memory at this time.
S600: and circularly reading the content in the modified differential packet, and carrying out differential operation on the circularly read content and the old version content to generate the new version content.
And circularly reading the content in the modified differential packet in the memory, and carrying out differential operation on the circularly read content and the old version content to generate the new version content. In the whole process, the dependence on a file system is not required, the limitation that the traditional differential upgrading mode needs to depend on the file system is broken, and the original differential packet combining mode is finally transplanted to a platform which does not support the file system for use.
According to the differential packet merging method independent of a file system, the first N bytes in the differential packet are copied to obtain byte data, the control field and the differential data are obtained according to the byte data, the preset memory pointer is determined, the address pointed by the preset memory pointer is transmitted to the structural body in the differential packet to obtain the modified differential packet, the preset memory pointer comprises the memory pointer pointed to the last byte of the differential packet, the content in the modified differential packet is read circularly, and the content read circularly and the content of the old version are subjected to differential operation to generate the content of the new version. In the whole process, the position of reading files in the source codes is modified into a memory, a pointer for transmitting the memory is adopted, and the pointer comprises a pointer for transmitting the end of the differential packet, so that the reading files are modified into the content of the differential packet copied from the corresponding address, and finally, the original differential packet merging mode is transplanted to a platform which does not support a file system for use.
In one embodiment, the step of determining a preset memory pointer, obtaining an address and differential data of a control field pointed by the preset memory pointer, and transmitting the address pointed by the preset memory pointer to a structure in a differential packet, and obtaining a modified differential packet includes:
the method comprises the following steps: a defined first memory pointer is determined, and the first memory pointer is pointed to the (N + 1) th byte of the differential packet.
Step two: and determining a defined second memory pointer, and pointing the second memory pointer to the last byte of the differential packet.
Step three: and transmitting the first memory pointer and the second memory pointer to elements handle and fEnd of the structure body.
Step four: a defined third memory pointer is determined and the third memory pointer is pointed to the control field.
Step five: and transmitting the second memory pointer and the third memory pointer to elements handle and fEnd of the structure body.
Step six: and determining a defined fourth memory pointer, and pointing the fourth memory pointer to the differential data.
Step seven: and transmitting the third memory pointer and the fourth memory pointer to elements handle and fEnd of the structure body to obtain a modified differential packet.
The first memory pointer, the second memory pointer, the third memory pointer and the fourth memory pointer are all preset memory pointers, and the memory pointers which are in accordance with the current application scene can be selected according to software (system) needing to be updated. More specifically, the first memory pointer is cpf, the second memory pointer is patchEnd, the third memory pointer is dpf, and the fourth memory pointer is epf.
In one embodiment, the step of passing the first memory pointer and the second memory pointer to elements handle and fned of the structure includes: calling a BZ2_ bzReadOpen function, and transmitting the first memory pointer and the second memory pointer to elements handle and fEnd of the structure body; the step of transferring the second memory pointer and the third memory pointer to elements handle and fEnd of the structure includes: calling a BZ2_ bzReadOpen function, and transmitting the second memory pointer and the third memory pointer to elements handle and fEnd of the structure body; the step of transferring the third memory pointer and the fourth memory pointer to elements handle and fEnd of the structure includes: and calling a BZ2_ bzReadOpen function, and transmitting the third memory pointer and the fourth memory pointer to elements handle and fEnd of the structure body.
In one embodiment, the step of obtaining the control field and the differential data according to the byte data further comprises:
the method comprises the following steps: judging whether the first M bytes in the byte data are preset byte data or not, wherein M is a positive integer and is smaller than N;
step two: if yes, the step of obtaining the control field and the differential data according to the byte data is carried out.
The preset byte data can be set based on the requirements of the actual application scenario, where the judgment is made to identify whether the copied byte data is complete and valid, which can be understood as a checking step. More specifically, M may be 8, and the preset byte data may be BSDIFF 40.
To explain the differential inclusion merging method independent of the file system in further detail, the following will use specific application examples and will describe the whole steps in detail with reference to fig. 3.
As shown in fig. 3, in one specific application example, the differential enclosure merging method independent of a file system according to the present invention includes the steps of:
1. storing the differential packet in a memory;
2. copying the first 32 words of the difference packet;
3. judging whether the first 8 bytes are 'BSDIFF 40', if so, entering the step 4, and if not, directly terminating the operation;
4. obtaining the length of a control field, the length of differential data and the length of a new file from the first 32 bytes;
5. define pointer cpf and point to the 33 rd byte of the differential packet;
6. defining a pointer patchEnd, and pointing to the differential packet end;
7. calling BZ2_ bzReadOpen (), and transferring the pointers cpf and patchEnd to elements handle and fEnd of the structure bzf;
8. defining a pointer dpf and pointing the pointer behind the control field;
9. calling BZ2_ bzReadOpen (), and transmitting the pointers dpf and patchEnd to elements handle and fEnd of the structure bzf;
10. define a pointer epf and locate the pointer after the data field;
11. calling BZ2_ bzReadOpen (), and transferring the pointers epf and patchEnd to elements handle and fEnd of the structure bzf;
12. reading the old version content into a memory;
13. and circularly reading the differential packet content, and carrying out differential operation on the differential packet content and the old version content to generate the new version content.
As shown in fig. 4, a differential inclusion union system independent of a file system includes:
the storage module 100 is configured to store the differential packets of the new and old versions in a memory.
The copying module 200 is configured to copy the first N bytes in the differential packet to obtain byte data, where N is a positive integer.
The parameter obtaining module 300 is configured to obtain the control field and the differential data according to the byte data.
The pointer processing module 400 is configured to determine a preset memory pointer, obtain an address and differential data of a control field pointed by the preset memory pointer, and transmit the address pointed by the preset memory pointer to a structure in a differential packet to obtain a modified differential packet, where the preset memory pointer includes a memory pointer pointing to a last byte of the differential packet.
The reading module 500 is configured to read the old version content into the memory.
And the difference operation module 600 is configured to read the content in the modified difference packet in a circulating manner, and perform difference operation on the content read in the circulating manner and the old version content to generate a new version content.
The invention is independent of the differential packet merging system of the file system, the storage module 100 stores the differential packet of the new version and the old version in the memory, the copy module 200 copies the first N bytes in the differential packet to obtain byte data, the parameter acquisition module 300 acquires a control field and differential data according to the byte data, the pointer processing module 400 determines a preset memory pointer, transmits the address pointed by the preset memory pointer to the structure in the differential packet to obtain a modified differential packet, the preset memory pointer comprises a memory pointer pointing to the last byte of the differential packet, the reading module 500 reads the content of the old version into the memory, the differential operation module 600 circularly reads the content in the modified differential packet and performs differential operation on the circularly read content and the content of the old version to generate the content of the new version. In the whole process, the position of reading files in the source codes is modified into a memory, a pointer for transmitting the memory is adopted, and the pointer comprises a pointer for transmitting the end of the differential packet, so that the reading files are modified into the content of the differential packet copied from the corresponding address, and finally, the original differential packet merging mode is transplanted to a platform which does not support a file system for use.
In one embodiment, the pointer processing module 400 includes:
the first processing unit is used for determining a defined first memory pointer and pointing the first memory pointer to the (N + 1) th byte of the differential packet.
And the second processing unit is used for determining a defined second memory pointer and pointing the second memory pointer to the last byte of the differential packet.
And the first transfer unit is used for transferring the first memory pointer and the second memory pointer to elements handle and fEnd of the structure body.
And the third processing unit is used for determining a defined third memory pointer and pointing the third memory pointer to the control field.
And the second transfer unit is used for transferring the second memory pointer and the third memory pointer to elements handle and fEnd of the structure body.
And the fourth processing unit is used for determining a defined fourth memory pointer and pointing the fourth memory pointer to the differential data.
And the third transfer unit is used for transferring the third memory pointer and the fourth memory pointer to elements handle and fEnd of the structure body to obtain the modified differential packet.
In one embodiment, the first memory pointer is cpf, the second memory pointer is patchEnd, the third memory pointer is dpf, and the fourth memory pointer is epf.
In one embodiment, the first transfer unit is configured to call a BZ2_ bzReadOpen function, and transfer the first memory pointer and the second memory pointer to elements handle and fned of the structure; the second transfer unit is used for calling a BZ2_ bzReadOpen function and transferring the second memory pointer and the third memory pointer to elements handle and fEnd of the structure body; and the third transfer unit is used for calling the BZ2_ bzReadOpen function and transferring the third memory pointer and the fourth memory pointer to elements handle and fEnd of the structure body.
In one embodiment, the differential enclosure concurrency system independent of file system of the present invention further comprises:
the judging module is used for judging whether the front M bytes in the byte data are preset byte data or not, wherein M is a positive integer and is smaller than N.
And the judgment processing module is used for controlling the parameter acquisition module to execute the operation of acquiring the control field and the differential data according to the byte data when the first M bytes in the byte data are preset byte data.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A file system independent differential inclusion merging method, comprising the steps of:
storing the differential packet of the new version and the old version in a memory;
copying the first N bytes in the differential packet to obtain byte data, wherein N is a positive integer;
acquiring a control field and differential data according to the byte data;
determining a preset memory pointer, acquiring an address of a control field pointed by the preset memory pointer and differential data pointed by the preset memory pointer, transmitting the address pointed by the preset memory pointer to a structural body in the differential packet to obtain a modified differential packet, wherein the preset memory pointer comprises a memory pointer pointing to the last byte of the differential packet;
reading the old version content into the memory;
and circularly reading the content in the modified differential packet, and carrying out differential operation on the circularly read content and the old version content to generate a new version content.
2. The differential packet merging method independent of the file system according to claim 1, wherein the determining a preset memory pointer, obtaining an address of a control field pointed by the preset memory pointer and differential data pointed by the preset memory pointer, and transmitting the address pointed by the preset memory pointer to the structure in the differential packet, and the obtaining a modified differential packet includes:
determining a defined first memory pointer, and pointing the first memory pointer to the (N + 1) th byte of the differential packet;
determining a defined second memory pointer, and pointing the second memory pointer to the last byte of the differential packet;
transmitting the first memory pointer and the second memory pointer to elements handle and fEnd of the structure;
determining a defined third memory pointer, and pointing the third memory pointer to a control field;
transmitting the second memory pointer and the third memory pointer to elements handle and fEnd of the structure;
determining a defined fourth memory pointer, and pointing the fourth memory pointer to differential data;
and transmitting the third memory pointer and the fourth memory pointer to elements handle and fEnd of the structure body to obtain a modified differential packet.
3. The file system independent differential merge method of claim 2, wherein the first memory pointer is cpf, the second memory pointer is patchEnd, the third memory pointer is dpf, and the fourth memory pointer is epf.
4. The file system independent differential inclusion concurrency method according to claim 2 or 3, wherein:
the step of transferring the first memory pointer and the second memory pointer to elements handle and fned of the structure includes: calling a BZ2_ bzReadOpen function, and transmitting the first memory pointer and the second memory pointer to elements handle and fEnd of the structural body;
the step of transferring the second memory pointer and the third memory pointer to elements handle and fned of the structure includes: calling the BZ2_ bzReadOpen function, and transmitting the second memory pointer and the third memory pointer to elements handle and fEnd of the structural body;
the step of transferring the third and fourth memory pointers into the elements handle and fEnd of the structure includes: and calling the BZ2_ bzReadOpen function, and transmitting the third memory pointer and the fourth memory pointer to elements handle and fEnd of the structural body.
5. The file system independent differential packet merging method according to claim 1, wherein the step of obtaining the control field and the differential data from the byte data is preceded by the step of:
judging whether the front M bytes in the byte data are preset byte data or not, wherein M is a positive integer and is smaller than N;
and if so, entering the step of acquiring a control field and differential data according to the byte data.
6. A file system independent differential inclusion concurrency system, comprising:
the storage module is used for storing the differential packet of the new version and the old version in a memory;
the copying module is used for copying the first N bytes in the differential packet to obtain byte data, wherein N is a positive integer;
the parameter acquisition module is used for acquiring a control field and differential data according to the byte data;
the pointer processing module is used for determining a preset memory pointer, acquiring an address of a control field pointed by the preset memory pointer and differential data pointed by the preset memory pointer, transmitting the address pointed by the preset memory pointer to a structural body in the differential packet, and acquiring a modified differential packet, wherein the preset memory pointer comprises a memory pointer pointing to the last byte of the differential packet;
the reading module is used for reading the old version content into the memory;
and the difference operation module is used for circularly reading the content in the modified difference packet and carrying out difference operation on the circularly read content and the old version content to generate a new version content.
7. The file system independent differential inclusion concurrency system according to claim 6, wherein said pointer processing module comprises:
the first processing unit is used for determining a defined first memory pointer and pointing the first memory pointer to the (N + 1) th byte of the differential packet;
the second processing unit is used for determining a defined second memory pointer and pointing the second memory pointer to the last byte of the differential packet;
a first transfer unit, configured to transfer the first memory pointer and the second memory pointer to elements handle and fned of the structure;
the third processing unit is used for determining a defined third memory pointer and pointing the third memory pointer to the control field;
a second transfer unit, configured to transfer the second memory pointer and the third memory pointer to elements handle and fned of the structure;
the fourth processing unit is used for determining a defined fourth memory pointer and pointing the fourth memory pointer to the differential data;
and a third transfer unit, configured to transfer the third memory pointer and the fourth memory pointer to elements handle and fned of the structure, so as to obtain a modified differential packet.
8. The file system independent differential inclusion concurrency system of claim 7, wherein the first memory pointer is cpf, the second memory pointer is patchEnd, the third memory pointer is dpf, and the fourth memory pointer is epf.
9. The file system independent differential inclusion union system according to claim 7 or 8, characterized in that:
the first transfer unit is configured to call a BZ2_ bzReadOpen function, and transfer the first memory pointer and the second memory pointer to elements handle and fned of the structure;
the second transfer unit is configured to call the BZ2_ bzReadOpen function, and transfer the second memory pointer and the third memory pointer to elements handle and fned of the structure;
the third transfer unit is configured to call the BZ2_ bzReadOpen function, and transfer the third memory pointer and the fourth memory pointer to elements handle and fned of the structure.
10. The filesystem-independent differential enclosure concurrency system of claim 6, further comprising:
the judging module is used for judging whether the front M bytes in the byte data are preset byte data or not, wherein M is a positive integer and is smaller than N;
and the judgment processing module is used for controlling the parameter acquisition module to execute the operation of acquiring the control field and the differential data according to the byte data when the front M bytes in the byte data are preset byte data.
CN201710158034.7A 2017-03-16 2017-03-16 Differential inclusion merging method and system independent of file system Active CN107423038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710158034.7A CN107423038B (en) 2017-03-16 2017-03-16 Differential inclusion merging method and system independent of file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710158034.7A CN107423038B (en) 2017-03-16 2017-03-16 Differential inclusion merging method and system independent of file system

Publications (2)

Publication Number Publication Date
CN107423038A CN107423038A (en) 2017-12-01
CN107423038B true CN107423038B (en) 2020-09-29

Family

ID=60423532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710158034.7A Active CN107423038B (en) 2017-03-16 2017-03-16 Differential inclusion merging method and system independent of file system

Country Status (1)

Country Link
CN (1) CN107423038B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286564A (en) * 2020-10-22 2021-01-29 上海艾拉比智能科技有限公司 Differential upgrade algorithm for binary system files of IOT (input/output) equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7212548B2 (en) * 2002-06-21 2007-05-01 Adtran, Inc. Multiple T1 channel inverse multiplexing method and apparatus
CN103077017A (en) * 2012-12-27 2013-05-01 惠州市德赛西威汽车电子有限公司 Embedded memory multiplexing method
CN106469122A (en) * 2015-08-14 2017-03-01 群联电子股份有限公司 Valid data merging method, Memory Controller and memorizer memory devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10191914B2 (en) * 2015-03-31 2019-01-29 EMC IP Holding Company LLC De-duplicating distributed file system using cloud-based object store

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7212548B2 (en) * 2002-06-21 2007-05-01 Adtran, Inc. Multiple T1 channel inverse multiplexing method and apparatus
CN103077017A (en) * 2012-12-27 2013-05-01 惠州市德赛西威汽车电子有限公司 Embedded memory multiplexing method
CN106469122A (en) * 2015-08-14 2017-03-01 群联电子股份有限公司 Valid data merging method, Memory Controller and memorizer memory devices

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于EXT3文件系统数据恢复方法的研究";徐国天;《信息网络安全》;20120310(第2期);正文第63页至正文第65页 *

Also Published As

Publication number Publication date
CN107423038A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
CN107025559B (en) Service processing method and device
US8196110B2 (en) Method and apparatus for verifying a suspect return pointer in a stack
US20090070374A1 (en) Generating Incremental Program Updates
EP3076292B1 (en) System and method of controlling access of a native image of a machine code to operating system resources
US20070067471A1 (en) Message translation systems and methods
CN109710185B (en) Data processing method and device
CN105138410A (en) Message queue achievement method and device based on disk buffer
CN107423038B (en) Differential inclusion merging method and system independent of file system
US8413132B2 (en) Techniques for resolving read-after-write (RAW) conflicts using backup area
CN110990346A (en) File data processing method, device, equipment and storage medium based on block chain
EP3121750B1 (en) System and method for antivirus checking of native images of software assemblies
US9064042B2 (en) Instrumenting computer program code by merging template and target code methods
US20040181777A1 (en) Method and device for programming electronic devices using a uniform parameter format
CN106557572A (en) A kind of extracting method and system of Android application program file
US6718405B2 (en) Hardware chain pull
CN112637143B (en) Safety control method and device and industrial control data acquisition gateway
CN111651195B (en) System dependent packet conflict detection method and device
CN110471669B (en) Null pointer reference detection method and detection device
US7222128B2 (en) Method for updating and preserving data when performing a software upgrade
CN112114811A (en) Compiling method, device and equipment
CN111651188A (en) Data result determining method, device, equipment and storage medium for differential packet
CN103473057A (en) Optimization method of memcpy function
US20240192936A1 (en) Systems and methods for creating an extended smart card application file from multiple smart card application files
CN112214220B (en) Method, apparatus and device for integrated system
CN113760195B (en) FATFS file system based on embedded type

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant