Method and system applied to fast copying of internal files of file system

By extracting and preprocessing file information, data compression and encryption are performed, and two-way address confirmation and key verification are carried out. File cloning and transmission technology is used to solve the problems of low file copying efficiency and security in the existing technology, and efficient and secure internal fast copying of the file system is achieved.

CN120196596AActive Publication Date: 2025-06-24HUBEI WEIGUAN ZHIXIAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510259632.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-06
Publication Date
2025-06-24
Estimated Expiration
2045-03-06

AI Technical Summary

Technical Problem

When facing large files or high-frequency operations, existing file copying technology leads to speed bottlenecks due to limited disk I/O performance, and is prone to performance degradation and resource contention problems in high concurrency environments. It also lacks two-way verification of transmission addresses, resulting in data transmission failure or errors, and lacks an effective protection mechanism, which leads to low efficiency and security of fast copying within the file system.

Method used

By extracting the program information data of the files to be copied, data preprocessing is performed to generate standardized file information data, data compression and AES-128 encryption, bidirectional address confirmation and key verification, and finally, fast transmission is performed using file cloning transmission technology.

Benefits of technology

It improves the efficiency and security of fast copying within the file system, reduces transmission time and resource consumption through data preprocessing and compression, AES-128 encryption ensures the confidentiality and integrity of data, two-way address confirmation and key verification enhances the security and accuracy of transmission, and file cloning transmission technology avoids multiple read and write operations of traditional copies, significantly improving transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120196596A_ABST
    Figure CN120196596A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of file copying, in particular to a quick copying method and system applied to internal files of a file system. The method comprises the following steps: acquiring a file to be copied; performing program information extraction on the to-be-copied file to obtain information data of the to-be-copied file; performing data preprocessing on the to-be-copied file based on the to-be-copied file information data to generate standard to-be-copied file information data; performing data compression on the to-be-copied file according to the standard to-be-copied file information data to generate a compressed to-be-copied file; performing AES-128 encryption on the to-be-copied file to generate an encrypted to-be-copied file and a copy file key; and performing bidirectional address confirmation on the encrypted to-be-copied key to obtain sending address information data and receiving address information data. Through data preprocessing, encryption verification, two-way address confirmation and file cloning transmission, the efficiency and safety of fast copying in the file system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of file copying, and particularly to a method and system for quickly copying internal files of a file system. Background Art

[0002] In traditional file copying methods, the "read - write" method is usually adopted, that is, the source file data is read and written to the target path to achieve copying. However, when facing large files or high - frequency operations, this method often suffers from speed bottlenecks due to the limitation of disk I / O performance. In addition, traditional methods are prone to performance degradation and resource contention problems in a high - concurrency environment and cannot meet the requirements of modern efficient data processing. In recent years, in order to optimize file copying efficiency, various improved technologies have emerged. For example, the Memory - Mapped Files technology improves the copying speed by directly loading files into memory and reducing intermediate read - write steps. The Hard Link technology within the file system avoids actual data movement and realizes virtual "copying" by only operating on file metadata. In addition, Block - Level Copying and asynchronous I / O technologies have also significantly improved data transmission efficiency, especially in multi - core environments that support parallel processing. However, currently, traditional copying technologies often lack two - way verification of the transmission address, resulting in data transmission failures or errors. At the same time, during the transmission process, data is extremely easy to be stolen or tampered with, lacking an effective protection mechanism, thus leading to low efficiency and security in quickly copying internal files of the file system. Summary of the Invention

[0003] Based on this, it is necessary to provide a method and system for quickly copying internal files of a file system to solve at least one of the above - mentioned technical problems.

[0004] To achieve the above object, a method for quickly copying internal files of a file system includes the following steps:

[0005] Step S1: Obtain the file to be copied; extract program information from the file to be copied to obtain the information data of the file to be copied; perform data pre - processing on the file to be copied based on the information data of the file to be copied to generate standard information data of the file to be copied;

[0006] Step S2: Compress the file to be copied according to the standard information data of the file to be copied to generate the compressed file to be copied; encrypt the file to be copied with AES - 128 to generate the encrypted file to be copied and the copy file key;

[0007] Step S3: Perform two-way address confirmation on the encrypted key to be copied to obtain the sending address information data and the receiving address information data; use the copy file key to verify the receiving address information data. When the key verification is successful, file cloning and transmission of the encrypted file to be copied is performed through the sending address information data to generate file cloning transmission data;

[0008] Step S4: Use the file cloning transmission data to receive the encrypted file to be copied to obtain the encrypted received file; perform data information recovery and verification on the encrypted received file to execute the internal file system fast copy job.

[0009] The present invention effectively identifies the file structure and content by extracting the program information data of the file to be copied, ensuring the pertinence and accuracy of processing. Preprocess the file to be copied, eliminate redundant information and abnormal data, improve the processing efficiency of subsequent steps, generate standardized file information data, unify the format for easy compression and transmission, and reduce compatibility problems between different file types. Greatly reduce the data volume through file compression, reduce the transmission time and consumption of system storage resources. AES-128 encryption provides data integrity verification, prevents the file from being maliciously tampered with or damaged during transmission, generates an independent copy file key, provides security for subsequent address confirmation and transmission processes, and prevents unauthorized access. Two-way address confirmation ensures the identity matching between the sending end and the receiving end, avoids data being transmitted to the wrong target, and improves transmission security. Using the copy file key for address verification further enhances the rigor of identity authentication and prevents illegal transmission requests. Quickly transmit data through file cloning technology, avoid multiple read and write operations of traditional copying, and greatly improve the transmission efficiency. The file cloning transmission data reduces bandwidth occupancy by optimizing the path and transmission method, achieving efficient data transmission. Use the cloned transmission data to quickly receive the encrypted file and reduce the delay of file recovery. Combine encryption verification when restoring data to ensure the integrity and correctness of the received file, effectively prevent data loss and damage. The data verification step enhances the security of file copying and avoids potential threats to the system caused by malicious tampering. The whole process is automatically processed to achieve efficient, safe and stable file copying operations and adapt to complex file system environments. Therefore, the present invention improves the efficiency and security of fast copying inside the file system through data preprocessing, encryption verification, two-way address confirmation and file cloning transmission.

[0010] Preferably, step S1 includes the following steps:

[0011] Step S11: Obtain the file to be copied;

[0012] Step S12: Extract file program information from the file to be copied to obtain file program information data, where the file program information extraction includes file name extraction, size extraction, type extraction, path extraction, and program dependency relationship extraction;

[0013] Step S13: Unify the data format of the file to be copied based on the file program information data to generate a file to be copied in a unified format; Remove redundant and duplicate data from the file to be copied in the unified format to obtain an effective file to be copied;

[0014] Step S14: Parse and mark the file dependencies of the effective file to be copied to generate file resource marking data; Use the file resource marking data to organize the file content of the effective file to be copied to generate standard file information data to be copied.

[0015] Through data format unification and redundant data cleaning, the present invention can ensure the consistency of the file to be copied and avoid the impact of inconsistent formats or duplicate data on subsequent processing. Data unification makes cross-platform and cross-system data migration smoother. Redundant and duplicate data removal can reduce the volume of files and the amount of data transmission, thus significantly improving the copying efficiency. File content organization and standardization further ensure the accuracy of file content during the copying process. File dependency parsing and marking help identify the association relationships between files and avoid functional abnormalities caused by the loss of dependent files. Solving the dependency problem in advance can effectively reduce the troubleshooting time due to missing dependencies after copying. Through file program information extraction, the core attributes (name, size, type, path, etc.) of the file can be accurately obtained, facilitating classification management and subsequent processing. File resource marking provides a basis for subsequent file organization, making the data clearer and more orderly. By generating standard file information data to be copied, it ensures that the file still has high availability and integrity after copying, providing a solid guarantee for subsequent use.

[0016] Preferably, the file dependency parsing and marking of the effective file to be copied includes:

[0017] Extract file metadata from the effective file to be copied to obtain file metadata; Parse the file dependency relationship of the effective file to be copied through the file metadata to generate file dependency relationship data;

[0018] Perform associated resource marking on the file metadata according to the file dependency relationship data to obtain associated resource marking data; Perform file resource path mapping on the effective file to be copied according to the associated resource marking data to generate file resource path mapping data;

[0019] Perform file resource marking and integration on the associated resource marking data through the file resource path mapping data to generate file resource marking data.

[0020] Through file metadata extraction, the present invention can accurately obtain the key attributes of files (such as creation time, modification time, access permissions, etc.), providing the necessary basic data for dependency relationship parsing. Based on file dependency relationship parsing, the association between files and their related resources (such as library files, configuration files, external modules, etc.) can be clearly identified, thus avoiding functional or operational anomalies caused by missing dependent files. The associated resource marking tightly combines file metadata with dependency relationships to form traceable marked data, making the management of dependent resources of files more intuitive and efficient. This precise marking method provides a reliable basis for file distribution, backup, and migration, while reducing the complexity required for manual intervention. File resource path mapping can automatically generate the logical paths between files and dependent resources, simplifying complex resource management operations. Path mapping makes file deployment and access in different environments faster, especially in cross-platform scenarios, significantly reducing configuration complexity. Through file resource marking and integration, data such as file dependency relationships, path information, and associated marks are uniformly managed to generate complete file resource marked data. This integration method ensures the systematicness and readability of file resources, providing convenience for subsequent operations (such as automated deployment and version management). The process of dependency parsing and marking can discover potential dependency problems and perform preprocessing before file copying, thereby improving the reliability of the file processing flow. By resolving dependency problems in advance, errors and rework caused by missing dependencies after copying are reduced, improving overall stability.

[0021] Preferably, step S2 includes the following steps:

[0022] Step S21: Perform data chunking on the file to be copied according to the standard file information data to be copied, generating data chunks of the file to be copied; perform lossless dictionary compression on the data chunks of the file to be copied based on the data chunks of the file to be copied, generating compressed data chunks of the file to be copied;

[0023] Step S22: Perform chunk verification on the compressed data chunks of the file to be copied, generating integrity verification data of the compressed file;

[0024] Step S23: Perform AES-128 data encryption on the compressed data chunks of the file to be copied according to the integrity verification data of the compressed file, generating encrypted data chunks of the file to be copied;

[0025] Step S24: Integrate the encrypted data chunks of the file to be copied to generate an encrypted file to be copied, and perform decryption simulation on the encrypted file to be copied to generate a copy file key.

[0026] Through data chunking and lossless dictionary compression, the file to be copied is optimized into smaller chunk data, reducing the file size and improving the data transmission speed. The lossless compression technology ensures that while reducing the data volume, the integrity and quality of the file content are retained. Chunk verification verifies each compressed file chunk one by one to generate integrity verification data, which can effectively detect data corruption or loss during transmission. The verification mechanism provides a guarantee for data recovery, ensuring the reliability of the copied file. AES-128 data encryption is used to encrypt the compressed file chunk data to ensure that the file is not easily illegally tampered with or leaked during the copying process. The encryption mechanism enhances the confidentiality of file transmission and provides multiple protections for data security. Decryption simulation verifies the availability of the key in advance after generating the encrypted file to ensure that the file can be successfully decrypted and used in the target environment. Simulating the decryption operation troubleshoots potential problems in advance and reduces the failure rate of subsequent operations. Through the step-by-step processing of data chunking, compression, encryption, verification, and integration, the file copying process is modularized, which helps to improve management efficiency. Chunk processing facilitates the segmented transmission and independent processing of large files and is particularly suitable for distributed file systems and cloud storage scenarios.

[0027] Preferably, the lossless dictionary compression of the file to be copied based on the chunk data of the file to be copied includes:

[0028] Performing unique identifier chunk marking on the file to be copied based on the chunk data of the file to be copied to obtain the marked data chunks of the file to be copied;

[0029] Constructing an initial dictionary through a preset memory space; using the initial dictionary to perform a sliding window scan on the marked data chunks of the file to be copied. When a repeated data sequence is found in the data chunk, perform repeated pattern recognition on the corresponding marked data chunks of the file to be copied to obtain the repeated pattern of the data sequence;

[0030] Extracting dictionary reference pointers from the initial dictionary according to the repeated pattern of the data sequence to obtain dictionary reference pointers; using the dictionary reference pointers to replace the repeated data sequences in the data chunk, thereby generating the replaced data sequence; performing data merging compression on the marked data chunks of the file to be copied through the replaced data sequence, thereby generating the compressed chunk data of the file to be copied.

[0031] The present invention efficiently manages the chunking of files to be copied by using unique identifier chunk marking, providing a basis for subsequent compression. Repeated pattern recognition scans and detects repeated sequences in data chunks, replacing redundant data with dictionary reference pointers, greatly compressing the storage volume of the file. This method reduces the storage space required for the file while maintaining the integrity of the file data, creating significant value for storage resource conservation. By merging and compressing data to generate smaller compressed chunk data, the bandwidth required for file transmission is significantly reduced. The reduced volume of the compressed data chunks is suitable for data transmission under various network conditions, especially in environments with limited bandwidth. Using a sliding window scan and a dynamically constructed initial dictionary, adaptive compression of the file content is achieved. Different file types (such as text, images, and videos) can be efficiently compressed by adjusting the sliding window size and dictionary structure, improving the adaptability of the algorithm. A lossless compression method is adopted to ensure that the compressed file can be fully restored without any loss to the original data. During the compression process, dictionary reference pointer replacement and data merging techniques are used to optimize storage while ensuring the reliability and accuracy of the compressed data.

[0032] Preferably, step S3 includes the following steps:

[0033] Step S31: Extract the address information of the key sending device from the encrypted key to be copied to obtain the sending address information data, where the extraction of the key sending device address information includes IP address extraction, MAC address extraction, and device identifier extraction;

[0034] Step S32: Based on the key sending device address information data, obtain the receiving address information data by making a communication request for the encrypted key to be copied; perform address pairing verification on the sending address information data and the receiving address information data through a preset white list to generate a two-way address confirmation result;

[0035] Step S33: Use the two-way address confirmation result to perform key address matching verification on the copy file key and the receiving address information data. When the key verification is successful, perform multi-layer asynchronous file cloning transmission on the encrypted file to be copied through the sending address information data to generate file cloning transmission data;

[0036] Step S34: When the key verification fails, return an error prompt and terminate the subsequent transmission process.

[0037] The present invention ensures the clarity of the identities of the source device and the target device in data transmission by extracting device address information (including IP address, MAC address, and device identifier). The two-way address confirmation and key-address matching verification prevent unauthorized devices from participating in data transmission through a strict verification mechanism, greatly reducing the risk of data leakage. Through address pairing verification and the whitelist mechanism, it is ensured that only trusted devices can participate in communication, effectively avoiding transmission failures caused by incorrect addresses or malicious devices. The use of multi-layer asynchronous file cloning transmission technology improves the fault tolerance of the transmission process. Even if the transmission is interrupted, it can be quickly restored. Based on the received address information data, multi-layer asynchronous transmission is performed, supporting parallel file cloning transmission, which shortens the transmission time. The asynchronous transmission mode avoids the waiting problem in traditional synchronous transmission, improving the file transmission efficiency, especially suitable for the rapid copying of large-scale files. If the key verification fails, the system will immediately return an error message and terminate the subsequent transmission process to avoid wasting resources. The dynamic error handling mechanism enhances the controllability and stability of the transmission process, facilitating the rapid location and solution of problems. By extracting the IP address, MAC address, and device identifier, it can be compatible with various network environments and hardware devices, suitable for multi-scenario applications in local area networks and wide area networks. The extracted device information can also be used for further analysis and optimization of device communication performance. The two-way address confirmation result and key matching verification ensure the uniqueness and integrity of the transmission, preventing man-in-the-middle attacks and data tampering. The combined verification of the encryption key and address data constructs multiple protection barriers, further enhancing the anti-attack ability of the system.

[0038] Preferably, step S33 includes the following steps:

[0039] Step S331: Use the two-way address confirmation result to perform key-address matching verification on the copy file key and the received address information data. When the key verification is successful, confirm the transmission method of the encrypted file to be copied through the sent address information data to obtain the copy transmission method, where the copy transmission method includes local area network transmission, USB transmission, and Bluetooth transmission;

[0040] Step S332: When it is confirmed that the copy transmission method is local area network transmission, perform multi-threaded dynamic window transmission on the encrypted file to be copied based on the UDP+FEC method to generate a local area network transmission protocol; perform parallel file block transmission on the encrypted file to be copied based on the local area network transmission protocol to generate parallel file block transmission data;

[0041] Step S333: Perform network transmission rate perception on the data of parallel file block transmission to obtain network transmission rate data; compare the network transmission rate with a preset standard transmission rate threshold. When the network transmission rate data is less than the preset standard transmission rate threshold, perform breakpoint resumption on the corresponding parallel file block transmission data to generate local area network transmission file clone data;

[0042] Step S334: When it is confirmed that the copy transmission method is USB transmission, perform file sharding and merging on the encrypted file to be copied to generate a USB transmission strategy; optimize the batch transmission of the encrypted file to be copied based on the USB transmission strategy to generate USB transmission file clone data;

[0043] Step S335: When it is confirmed that the copy transmission method is Bluetooth transmission, perform low-power short-distance multi-point distribution on the encrypted file to be copied to generate Bluetooth transmission file clone data; integrate the local area network transmission file clone data, USB transmission file clone data, and Bluetooth transmission file clone data to generate file clone transmission data.

[0044] The present invention uses local area network transmission, USB transmission, and Bluetooth transmission as different copy transmission methods, which can be dynamically selected according to specific situations to ensure efficient file transmission in different environments. This flexibility enables the transmission process to be optimized according to factors such as transmission distance, network bandwidth, and device compatibility, meeting diverse requirements. The UDP+FEC method combined with multi-threaded dynamic window transmission improves the file transmission efficiency and stability in the local area network, reduces the packet loss rate and latency, and is particularly suitable for the rapid transmission of large-scale files. File block parallel transmission further optimizes the transmission process, supports multiple transmission lines to work in parallel, and significantly accelerates the file transmission speed. Network transmission rate perception and resume interrupted transfer technology ensure that even in an unstable network environment, the transmission process can continue, avoiding file transmission interruption caused by network fluctuations and enhancing reliability. File fragmentation and merging technology supports the effective storage and transmission of large files in USB devices, avoiding the limitation of large files exceeding the storage capacity or transmission bandwidth. Batch transmission optimization improves the transmission efficiency of USB devices, reduces the time wasted due to frequent plugging and unplugging, data loading, etc., and enhances the overall transmission speed and stability. The low-power consumption short-distance multi-point distribution technology makes Bluetooth transmission suitable for environments where energy conservation is required, such as file transmission between mobile devices. Through multi-point distribution, Bluetooth can efficiently communicate with multiple devices simultaneously, improving the data sharing efficiency, especially suitable for scenarios with small files and many devices. Data integration unifies the management of file clone data generated by different transmission methods, ensuring data consistency and integrity during the transmission process. This integration method provides a clear management mechanism, can efficiently monitor the file transmission status, and is convenient for tracking and scheduling data streams on different transmission paths.

[0045] Preferably, when it is confirmed that the copy transmission method is Bluetooth transmission, the low-power consumption short-distance multi-point distribution of the encrypted file to be copied includes:

[0046] When it is confirmed that the copy transmission method is Bluetooth transmission, scan for available devices in the Bluetooth network for the encrypted file to be copied to obtain Bluetooth target device data; establish a multi-point device Bluetooth distribution connection for the Bluetooth target device data through the low-power consumption mode to generate Bluetooth distribution connection data;

[0047] Perform file block processing on the encrypted file to be copied according to the Bluetooth distribution connection data, and sequentially transmit the block-processed file to be copied to the Bluetooth target device data through the Bluetooth connection to obtain Bluetooth block transmission data; perform block integrity verification on the Bluetooth target device data according to the Bluetooth block transmission data, thereby generating Bluetooth transmission file clone data.

[0048] The present invention performs Bluetooth transmission through a low-power consumption mode, enabling the system to achieve effective data transmission while maintaining low energy consumption. Especially in mobile devices or battery-powered devices, the low-power consumption feature of Bluetooth can effectively extend the device's usage time without adding an additional battery burden. Short-distance multi-point distribution further optimizes Bluetooth transmission, allowing files to be simultaneously transmitted to multiple target devices, enhancing the transmission efficiency and response speed, and being suitable for fast file sharing in multi-device scenarios. By scanning for available devices in the Bluetooth network, the system can intelligently identify and connect to multiple Bluetooth devices, avoiding the cumbersome process of manually selecting devices. This automated scanning and connection ability improves the convenience and speed of the transmission process. The establishment of multi-point device connections ensures simultaneous transmission among multiple target devices, making full use of the multi-connection feature of Bluetooth to achieve more flexible file distribution and adapt to complex application scenarios. Through file chunking, large files are split into multiple smaller file chunks, which can effectively avoid problems such as data loss and transmission delays during file transmission. The chunked files can be efficiently transmitted via Bluetooth, enhancing the transmission reliability. Each file chunk is transmitted separately via Bluetooth connection to ensure the stability and speed of data transmission, avoiding limitations caused by overly large files or insufficient single-transmission bandwidth. Chunk integrity verification ensures that each file chunk is not damaged during transmission, guaranteeing the accuracy of the file after transmission. Each chunk of data of the Bluetooth target device is verified to ensure the integrity and accuracy of the entire file. The introduction of the verification process enhances the reliability of file transmission, ensuring that any packet loss, data errors, etc. during transmission can be promptly detected and resolved, thereby reducing the occurrence of data corruption or errors.

[0049] Preferably, step S4 includes the following steps:

[0050] Step S41: Use file cloning transmission data to receive the encrypted file to be copied, obtaining the encrypted received file;

[0051] Step S42: Recombine the data blocks of the encrypted received file to generate the recombined received file data blocks; verify the data decryption key for the recombined received file data blocks to generate the data decryption key verification result;

[0052] Step S43: Decrypt the encrypted received file according to the data decryption key verification result to generate the original file to be copied, thereby completing the fast file copy operation within the file system.

[0053] Through file reception and encryption verification, the present invention ensures that the received file will not be tampered with or lost during the file transmission process. The encrypted received file is verified, ensuring the security of the file, preventing data leakage and illegal tampering. After receiving the file, data block reorganization is performed so that the file can be restored in the correct order, providing a reliable basis for file decryption and subsequent processing. Data decryption key verification ensures that only verified keys can be used for decryption, thereby enhancing the security during the file transmission process. This verification mechanism effectively avoids decryption failures caused by using incorrect or mismatched keys and ensures the smooth progress of the file decryption process. The file decryption operation ensures that the original file to be copied can be successfully restored within the file system, achieving complete and accurate data recovery. The transparency and reliability of the entire decryption process ensure that there is no loss or error during the data transmission process. After decrypting and verifying the file, the system can quickly complete the file copy operation. Through this process, the file is quickly restored to the file system after being received and decrypted, improving the response speed and working efficiency of the file management system. The combination of file decryption and reception optimizes the entire file copy process, ensuring the efficiency of the file from encrypted transmission to decrypted restoration, and reducing the time delay and complexity during the file copy process.

[0054] In this specification, a file fast copy system applied to the internal file system of a file system is provided for performing the above-mentioned file fast copy method applied to the internal file system of a file system. The file fast copy system applied to the internal file system of a file system includes:

[0055] A data collection module, configured to obtain a file to be copied; extract program information from the file to be copied to obtain file information data to be copied; perform data preprocessing on the file information data to be copied to generate standard file information data to be copied;

[0056] A data compression and encryption module, configured to compress the file to be copied according to the standard file information data to be copied to generate a compressed file to be copied; perform AES-128 encryption on the file to be copied to generate an encrypted file to be copied and a copy file key;

[0057] A data transmission module, configured to perform two-way address confirmation on the encrypted key to be copied to obtain sending address information data and receiving address information data; perform key verification on the receiving address information data using the copy file key. When the key verification is successful, file clone transmission is performed on the encrypted file to be copied through the sending address information data to generate file clone transmission data;

[0058] A data recovery module, which is used to receive the encrypted file to be copied by using file cloning to transfer data, so as to obtain the encrypted received file; perform data information recovery and verification on the encrypted received file to execute the fast file copy operation within the file system.

[0059] The beneficial effects of the present invention are as follows: The data collection module can accurately obtain the file to be copied and extract program information, ensuring that all key information of the file to be copied can be extracted and converted into a standard format that can be processed. The data preprocessing ensures the unity and consistency of the data by generating standard data of the file to be copied information, enabling subsequent processing and operations to proceed smoothly and improving the reliability of the file copy process. In the data compression and encryption module, the file to be copied is compressed, which not only effectively reduces the file size and improves the transmission efficiency, but also ensures the security of the file during transmission through AES-128 encryption. The encryption operation guarantees the confidentiality and integrity of the file, avoiding the risk of data leakage or tampering. The generation and management of the encrypted file and the key ensure that only legitimate users can access the file, improving the security of the data transmission and storage process. The data transmission module ensures the effective connection between the two communication parties through bidirectional address confirmation and verifies the key for the received address information. Through this step, it is ensured that only the verified recipient can receive the data, thus avoiding illegal reception and data leakage. The file cloning transmission technology used during file transmission ensures that the file can be transmitted efficiently and securely in various transmission environments, improving the overall transmission efficiency and reliability. The data recovery module can quickly recover the file by receiving and decrypting the transmitted data, and at the same time verify the data to ensure data integrity and consistency. In the fast copy operation, the file recovery process is optimized, shortening the recovery time and improving the accuracy of file recovery. The fast file copy operation within the file system is effectively supported by data recovery, ensuring the usability and correctness of the file after recovery and improving the overall performance of the system. Especially in large-scale file processing and backup tasks, it can significantly improve the work efficiency. Therefore, the present invention improves the efficiency and security of the fast copy within the file system through data preprocessing, encryption verification, bidirectional address confirmation, and file cloning transmission. Description of the Drawings

[0060] Figure 1 It is a schematic diagram of the step flow of a method for fast file copy within a file system;

[0061] Figure 2 is Figure 1 a detailed implementation step flow schematic diagram of step S2 in

[0062] Figure 3 is Figure 1 a detailed implementation step flow schematic diagram of step S3 in

[0063] The realization, functional features and advantages of the present invention will be further described in conjunction with the embodiments with reference to the accompanying drawings. Detailed implementation manners

[0064] The technical method of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of them. All other embodiments obtained by those skilled in the art within the scope of the present invention without creative work belong to the scope of protection of the present invention.

[0065] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and / or processor methods and / or microcontroller methods.

[0066] It should be understood that although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are only used to distinguish one unit from another. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed related items.

[0067] To achieve the above object, please refer to Figures 1 to 3 , a method for quickly copying internal files of a file system, the method comprising the following steps:

[0068] Step S1: Obtain the file to be copied; extract program information from the file to be copied to obtain the information data of the file to be copied; perform data preprocessing on the file to be copied based on the information data of the file to be copied to generate standard information data of the file to be copied;

[0069] Step S2: Compress the file to be copied according to the standard information data of the file to be copied to generate the compressed file to be copied; encrypt the file to be copied with AES-128 to generate the encrypted file to be copied and the copy file key;

[0070] Step S3: Perform two-way address confirmation on the encrypted key to be copied to obtain the sending address information data and the receiving address information data; use the copy file key to verify the receiving address information data. When the key verification is successful, file cloning transmission is performed on the encrypted file to be copied through the sending address information data to generate file cloning transmission data;

[0071] Step S4: Use the file cloning transmission data to receive the encrypted file to be copied to obtain the encrypted received file; perform data information recovery and verification on the encrypted received file to execute the internal file system's fast file copy operation.

[0072] The present invention effectively identifies the file structure and content by extracting the program information data of the file to be copied, ensuring the pertinence and accuracy of processing. Preprocess the file to be copied, remove redundant information and abnormal data, improve the processing efficiency of subsequent steps, generate standardized file information data, unify the format for easy compression and transmission, and reduce compatibility issues between different file types. Greatly reduce the data volume through file compression, reduce the transmission time and consumption of system storage resources. AES-128 encryption provides data integrity verification, prevents the file from being maliciously tampered with or damaged during transmission, generates an independent copy file key, provides security for subsequent address confirmation and transmission processes, and prevents unauthorized access. Two-way address confirmation ensures the identity matching between the sending end and the receiving end, avoids data being transmitted to the wrong target, and improves transmission security. Using the copy file key for address verification further enhances the rigor of identity authentication and prevents illegal transmission requests. Rapidly transmit data through file cloning technology, avoid multiple read and write operations of traditional copying, and greatly improve the transmission efficiency. The file cloning transmission data reduces bandwidth occupancy by optimizing the path and transmission method, achieving efficient data transmission. Use the cloned transmission data to quickly receive the encrypted file and reduce the delay of file recovery. Combine encryption verification when recovering data to ensure the integrity and correctness of the received file, effectively prevent data loss and damage. The data verification step enhances the security of file copying and avoids potential threats to the system caused by malicious tampering. The whole process is automatically processed to achieve efficient, secure and stable file copy operations, adapting to complex file system environments. Therefore, the present invention improves the efficiency and security of fast copying within the file system through data preprocessing, encryption verification, two-way address confirmation and file cloning transmission.

[0073] In the embodiment of the present invention, refer to Figure 1 As shown, it is a schematic diagram of the step flow of a method for fast file copying within a file system according to the present invention. In this example, the method for fast file copying within a file system includes the following steps:

[0074] Step S1: Obtain the file to be copied; extract program information from the file to be copied to obtain the information data of the file to be copied; perform data preprocessing on the file to be copied based on the information data of the file to be copied to generate the standard information data of the file to be copied.

[0075] In the embodiments of the present invention, the file to be copied is selected or specified from the file system or network storage. The file can be a document, image, audio, video or other type of file. File paths, file names, file types, etc. can be used as the basis for file selection. Through a file parsing tool or script, the metadata of the file is extracted, including file name, size, modification date, creation date, format type, encoding method of the file content, etc. For specific types of files (such as picture or audio / video files), specific information can be further extracted, such as image resolution, audio / video encoding format, etc. Corresponding programming languages or file analysis libraries (such as the os module and exif module in Python) can be used to implement this process. The extracted program information is organized into structured data (such as JSON, XML, database tables, etc.) for convenient subsequent processing and storage. This data can include: basic information of the file (file name, type, path, size, etc.), metadata (creation date, modification date, etc.), and information on specific content (such as image resolution, audio sampling rate, etc.). If there is noise in the content of the file to be copied (such as noise in the picture, static noise in the audio, etc.), a suitable denoising algorithm can be used to preprocess the file content. According to the target system or requirements, the file needs to be converted into a certain standard format. For example, different format image files are converted into PNG or JPEG format, or audio files are converted into a unified sampling rate and encoding format. According to the different types of files, further optimization processing of the file is required. For example, compress the file size, adjust the picture clarity, compress the video file, remove irrelevant data, etc. Based on the above preprocessing steps, a standardized file information data set is generated, containing all the file information after standardization and optimization processing. These data include information such as file type, size, format, modification time, etc., and provide a consistent data basis for subsequent copy operations. This data can be stored in a local database or cloud storage for convenient subsequent file copy operations.

[0076] Step S2: Perform data compression on the file to be copied according to the standard information data of the file to be copied to generate the compressed file to be copied; perform AES-128 encryption on the file to be copied to generate the encrypted file to be copied and the copy file key.

[0077] In the embodiments of the present invention, a suitable compression algorithm is selected according to the type of the file to be copied and the requirements of the target system. Common compression algorithms include ZIP, RAR, GZIP, etc. Tools such as the zipfile module in Python (suitable for ZIP files) and the gzip module (suitable for GZIP files) can be used to achieve compression. According to the type and size of the file to be copied, the selected compression algorithm is used to compress the file. The compression process generally includes: opening the file to be copied and reading the file content. Using the compression algorithm to compress the content and save it as a new compressed file. If it is multiple files or a folder, they can be combined into an archive file and then compressed. After the compressed file is generated, it can be stored or transmitted according to needs. When generating the compressed file, a file name, timestamp, or other unique identifier can be added to facilitate identification in subsequent operations. AES-128 (Message Digest Algorithm 5) is a widely used hash encryption algorithm for generating a unique "digest" or "key" of a file. Although AES-128 is not suitable for encrypting sensitive data, it is very suitable for use in data integrity verification. Using the AES-128 algorithm to generate the hash value of a file can ensure the integrity of the file and provide a "key" for file encryption. Using the AES-128 algorithm to perform a hash process on the compressed file (or the original file) to generate a 128-bit hash value (i.e., the AES-128 fingerprint). Although AES-128 itself is not used to encrypt the file content, the generated AES-128 hash value can be used as an encryption "key" to verify the integrity of the file or generate an encrypted form of the file. In this process, the generated AES-128 value can also be used as a "file key". If file content encryption is required, other encryption algorithms (such as AES, RSA, etc.) can be used in combination with the AES-128 value as the encryption key. The hash value generated by AES-128 can be used for key generation in the encryption process. According to the AES-128 value and other encryption algorithms (such as AES), the file is encrypted to generate an encrypted file to be copied. This file should have encrypted security features, the file content cannot be directly read, and a key is required for decryption. The generated AES-128 value is saved as the key of the file. It can be selected to store the key in a secure place (such as a key management system or an encrypted storage device) and used for decryption operations when needed.

[0078] Step S3: Perform two-way address confirmation on the encrypted key to be copied to obtain the sending address information data and the receiving address information data; use the copy file key to verify the key of the receiving address information data. When the key verification is successful, the encrypted file to be copied is cloned and transmitted through the sending address information data to generate file clone transmission data;

[0079] In the embodiments of the present invention, the purpose of two-way address confirmation is to ensure the accuracy of address information during the file copying process and avoid data transmission errors or leaks. Confirm the sender's address information, which is usually the IP address, port number, and other network identifiers of the computer or server where the file source is located. This information can be obtained through configuration files, network interfaces, or by manual input. The recipient's address information also needs to be confirmed to ensure the accuracy of the IP address, port number, etc. of the target device or server. The receiving address is usually verified before the copying process to ensure that data can be correctly transmitted to the target system. Save the address information of the sender and the recipient in the form of structured data respectively, usually transmitted in formats such as JSON, XML, etc. The address information data includes: sender IP, sender port, recipient IP, recipient port, etc. Use network protocols (such as TCP / IP, UDP, etc.) for address confirmation. The validity of the sending and receiving addresses can be verified by sending test packets (such as ping, socket connection, etc.). After both the sender and the recipient confirm that the other party's address information is valid, the two-way confirmation is successful, and the complete sending address information data and receiving address information data are obtained. After the two-way address confirmation is completed, use the previously generated AES-128 file key to verify the recipient's address information data. Encryption algorithms (such as AES or HMAC) can be used in combination with the AES-128 key to encrypt and verify the receiving address information. For example: The sender uses the AES-128 key to encrypt the recipient's address information. The recipient also uses the same AES-128 key for decryption or verification. If the decryption or verification is successful, it indicates that the address information has not been tampered with and the key verification passes. If the key verification is successful, the system confirms that the receiving address information is correct, and the subsequent file cloning transmission can proceed. If the key verification fails, the address information or the key needs to be reconfirmed, or the transmission can be terminated according to the security policy. The sender uses the confirmed sending address information data (IP, port) and the recipient's address information data (recipient IP, port) to establish a connection. A stable connection can be established through the TCP / IP protocol. Use a reliable transport protocol (such as TCP) to ensure that no packets are lost and there is no delay during the file data transmission process. Once the connection is established, the sender starts to transmit the encrypted file to be copied. The file cloning transmission usually includes the following steps: Read the encrypted file to be copied, and transmit the file in chunks or in appropriate sizes. Use a file transfer protocol (such as FTP, SFTP, HTTP) to transfer the encrypted file from the sender to the recipient. Record the relevant data during the transmission process, such as the size of the transferred file, transmission speed, transmission status, transmission time, etc. After the file is successfully transmitted, generate a transmission log or report to record the cloning transmission data, which can include: file name, file size, whether the transmission is successful, timestamp, etc. After the file transmission is completed, the recipient confirms the file integrity and checks whether the file is correctly decrypted.The recipient can compare the integrity of the file through the AES-128 hash value to ensure that the file has not been tampered with or damaged during the transmission. Finally, cloned file transfer data is generated, including the transfer result and the statistical information during the transfer.

[0080] Step S4: Use the cloned file transfer data to receive the file to be copied after encryption to obtain the encrypted received file; perform data information recovery and verification on the encrypted received file to execute the fast file copy operation within the file system.

[0081] In the embodiments of the present invention, after the file cloning transmission is successful, the receiving party needs to receive the file through the confirmed receiving address information. The receiving party will use the pre-confirmed address and port and an appropriate transmission protocol (such as TCP / IP) to receive data from the sending party. The receiving party establishes a connection with the sending party through a network protocol (such as TCP / IP) and the address information of the sending party. According to the design of file chunking or data packet transmission, the receiving party receives the file data packets one by one. The data packet should include information such as the chunk information, size, and data verification of the file. The receiving party temporarily caches the received file data stream or data packets in a temporary storage area. The receiving party combines all the received data packets in order and finally obtains the complete encrypted received file. After the file reception is completed, the receiving party needs to perform data information restoration on the encrypted file. This process mainly includes the following steps: decrypt the encrypted received file using the previously generated file key (such as AES-128 or a key generated by other encryption algorithms). After decryption, the receiving party will obtain the original content of the file. For example, using a symmetric encryption algorithm such as AES, the receiving party decrypts the file using the key to restore it to the original data. If the file is compressed during transmission, the receiving party needs to decompress the file to restore it to a usable state. Tools such as ZIP and RAR can be used for decompression. After the file is decrypted and restored, the receiving party needs to verify the integrity of the file to ensure that the file has not been damaged or lost during transmission. A common integrity verification method is through AES-128 or SHA hash values: calculate the hash of the decrypted file to generate a new hash value. Compare the new hash value with the hash value before file transmission. If the two match, it means the file is complete and has not been tampered with. If the hash values do not match, the system can request the file data again or mark the file as damaged. After the file is restored and verified, the receiving party can perform a file copy operation within the file system to store the received file in the target path. This operation is usually completed through the interface of the file system. File copying can be performed through common system commands or file operation tools (such as the cp command in Linux, the copy command in Windows, or programming interfaces). If the target system supports it, some file system optimization techniques can be used to accelerate file copying. For example: split large files into multiple chunks and copy them in parallel, leveraging the computing power of multi-core processors to accelerate file copying. If there is already a partial file at the target location, only the incremental part needs to be copied. The incremental copy algorithm (such as rsync) can be used to transmit only the different parts. Use memory caching techniques (such as memory-mapped files) to accelerate the file copying process. After the file copying is completed, the file at the target location should be complete and usable. The receiving party can further check the copy result, for example, by comparing the file size, hash value, etc., to ensure that there are no problems during the file copying process.

[0082] Preferably, step S1 includes the following steps:

[0083] Step S11: Obtain the file to be copied;

[0084] Step S12: Extract the file program information from the file to be copied to obtain file program information data, where the file program information extraction includes file name extraction, size extraction, type extraction, path extraction, and program dependency relationship extraction;

[0085] Step S13: Unify the data format of the file to be copied based on the file program information data to generate a file to be copied in a unified format; Remove redundant and duplicate data from the file to be copied in the unified format to obtain an effective file to be copied;

[0086] Step S14: Parse and mark the file dependencies of the effective file to be copied to generate file resource marking data; Use the file resource marking data to organize the file content of the effective file to be copied to generate standard file to be copied information data.

[0087] In the embodiments of the present invention, the path of the file to be copied is obtained through a file browser, file path input, or an automation program. The user can specify the file path or scan the files in the specified directory through the program. When obtaining the file, the system can select the file type (such as text files, image files, audio and video files, etc.) and select multiple files or the entire folder for copying as needed. The system extracts the name of the file (such as "example.txt") from the file path, and the name includes the file name and the extension. The system extracts the size of the file from the metadata of the file, usually in bytes (such as "1024KB"). This step can use the API of the file system to obtain the "size" attribute of the file. The file type can be inferred by the extension (for example, ".txt" represents a text file) or by the file header data (such as the header information of a PNG file). The system can call the API of the operating system or use a file content analysis tool to determine the file type. The system extracts the complete path information from the file path (for example, " / home / user / Documents / example.txt"), and the path information is very important for subsequent file management. For programs or executable files (such as ".exe", ".dll" files), the system needs to analyze and extract the dependencies of the program, and these dependencies include external library files, configuration files, data files, etc. These dependencies can be extracted through static analysis tools or the API of the operating system. After the file program information is extracted, there are differences in the formats, encodings, structures, etc. of different files. To ensure compatibility and efficiency during the copying process, it is necessary to unify the file formats. For example, convert different formats of text files to UTF-8 encoding uniformly, unify image files to a standard size or format (such as JPEG or PNG), or unify different versions of database files to a common format. The system can call the corresponding conversion tool according to the file type or use a standard file conversion library to perform format unification. For files that already have redundant or duplicate data, data cleaning is performed. Duplicate parts can be deleted through data comparison (such as hash value calculation), deduplication algorithms (such as SHA-256 hash comparison, LZ4 compression). This step can reduce redundancy during transmission and storage and improve the efficiency of the system. The system can clean at the file content and file structure levels to ensure that the final file to be copied only contains valid data. After cleaning the redundant data, a valid file to be copied without duplicates and in a unified format is obtained. This file is suitable for efficient copying and subsequent processing. Perform dependency analysis on the valid file to be copied, especially for program files and library files, to determine whether the file depends on other files or resources. For example, analyze the dependencies of dynamic link library (DLL) files, or analyze the relationship between configuration files and other modules. Use static analysis tools, dependency analysis tools, or build tools (such as Makefile, CMake) to identify the dependency relationships between files.Based on the file dependency analysis, marker data is generated to mark whether a file has external dependencies and whether other files or resources need to be copied first. These markers will help the system determine the copy order or priority. Resource markers can include the dependency types of files (such as "dynamic library", "configuration file", etc.) and the relationships between files (such as "this file depends on file A"). The system determines the copy order or structure of files according to the generated resource marker data. For example, if file A depends on file B, the system will ensure that file B has been successfully copied to the target location before copying file A. For program files, environmental configuration, resource file association, etc. also need to be sorted out to ensure the integrity of the program's running environment. After the file content is sorted out, standardized information data of files to be copied is generated.

[0088] Preferably, the file dependency parsing and marking of valid files to be copied include:

[0089] Extract file metadata from valid files to be copied to obtain file metadata; parse the file dependency relationships of valid files to be copied through the file metadata to generate file dependency relationship data;

[0090] Associate resource markers with the file metadata according to the file dependency relationship data to obtain associated resource marker data; map the file resource paths of valid files to be copied according to the associated resource marker data to generate file resource path mapping data;

[0091] Mark and integrate the associated resource marker data through the file resource path mapping data to generate file resource marker data.

[0092] In the embodiments of the present invention, metadata of valid files to be copied is extracted. The metadata of a file includes attributes such as file name, size, type, modification time, creation time, permissions, owner, etc. The metadata of a file can be obtained through the file system APIs provided by the operating system (such as the stat() function in the POSIX standard and the GetFileAttributes() function in Windows). The file metadata can also include special attributes of the file, such as version information, extension information, or digital signatures of the file, and the metadata to be extracted is specifically selected according to the file type and system platform. Based on the file metadata, the system parses out the dependency relationships between files. Especially for program files or library files (such as.exe,.dll,.so files), the system needs to identify the dependencies between these files and other files (such as other programs, configuration files, data files, etc.). Program files depend on certain library files (such as dynamic link libraries DLL or shared object files SO). Programs depend on configuration files, resource files, or other document files. Some files depend on specific directory structures or paths. The system can use static analysis tools (such as dependency graph generation tools, compilation toolchains) to extract the dependencies of program files or scripts. For non-program files, the dependency relationships can be inferred using file content or name rules (for example, other file names or specific configuration fields are included in the path of the file). Based on the file dependency relationship data, the system performs associated resource marking on the file metadata. For example, if a file A depends on a file B, the system will mark the path and type of file B in the metadata of file A, indicating that this file is a resource dependency of A. The marked content can be the path of the file, type, dependency order, version of related resources, etc. When marking each file, a metadata structure can be constructed to add the dependent resources as associated items. For example, a data structure (such as a dictionary, hash table) is created, where the key is the file name and the value is the list of its associated resources. According to the associated resource marking data, the system needs to perform path mapping on the valid files to be copied. The purpose of path mapping is to correspond the resource dependency relationship of the file with the path in the actual file system. For example, if file A depends on file B and B is stored in the path / lib / b.dll, the mapping data needs to include the dependency path relationship between file A and file B. The system needs to scan the target storage location to ensure that the dependent resource files exist and record their paths. A path mapping table or database can be constructed, which records the dependent resources of each file and their actual paths. For dynamically loaded resources (such as dynamic link libraries), the system can also dynamically generate path mappings. Through the file resource path mapping data, the associated resources are further marked and integrated. This step combines the associated resource marking data with the path mapping data to generate the final file resource marking data.The integrated data will ensure that the dependent resources of the file are not only marked but also accurately located in the file system, ensuring that all dependent files can be correctly found and transferred during the copying process. Integrate the file resource path mapping data and the associated resource marking data to form a complete resource marking table. The path relationship between the file and its dependent resources can be saved in the form of a graph structure or a list. Combining path mapping and dependency marking, the system will generate complete resource information for each file, such as all dependencies of the file, resource paths, copy order, etc. The final integrated resource marking data contains the marking information and actual paths of each file and its dependent resources, ready for the file copying task.

[0093] As an example of the present invention, refer to Figure 2 As shown, in this example, step S2 includes:

[0094] Step S21: Chunk the file to be copied according to the standard file information data to be copied, generating chunked data of the file to be copied; perform lossless dictionary compression on the chunked data of the file to be copied based on the chunked data of the file to be copied, generating compressed chunked data of the file to be copied;

[0095] Step S22: Perform chunk verification on the compressed chunked data of the file to be copied, generating integrity verification data of the compressed file;

[0096] Step S23: Perform AES-128 data encryption on the compressed chunked data of the file to be copied according to the integrity verification data of the compressed file, generating encrypted chunked data of the file to be copied;

[0097] Step S24: Integrate the encrypted chunked data of the file to be copied, generating the encrypted file to be copied, and perform decryption simulation on the encrypted file to be copied, generating a copy file key.

[0098] In the embodiments of the present invention, in order to improve the transmission efficiency and reduce the error occurrence rate during the file copying process, the file to be copied is first divided into blocks according to a predetermined size. Usually, the file is divided into blocks according to a fixed size (such as 64KB, 128KB, etc.) or a dynamic size. Based on the standard information data of the file (such as file size and format), the boundaries of each data block are calculated and the file is divided into blocks. Algorithms (such as sliding window algorithm, block hashing, etc.) can be used to ensure the integrity of the content of each data block. The file reading operation is implemented through programming, and the file content is read according to the predetermined block size, and the file content is divided into several data blocks. An appropriate buffer (such as a memory buffer) is used to gradually read the file, and each block is stored in memory or on disk. To ensure the integrity and accuracy of each block during the compression process, the system verifies each data block and generates a check value (such as checksum, hash value, etc.) for each block. Block verification uses common verification algorithms (such as CRC32, SHA256, AES-128, etc.) to calculate the check value of each data block. The verification algorithm is used to calculate each compressed block data to generate the check value of each block. The check value can be in the form of a hash value, CRC value, etc. When each data block is stored or transmitted, its corresponding check value is attached to ensure data integrity. Based on the verification data generated in step S22, in this step, each block is encrypted with AES-128 to ensure the confidentiality and integrity of the file data. AES-128 encryption usually performs a hash operation on the file content to generate a hash value of a fixed length (128 bits). Each block is encrypted separately with AES-128 to ensure that even if the data is tampered with or lost, it can be detected through the encrypted data. The AES-128 hash algorithm is used to encrypt each compressed block data to generate an encrypted data block. The AES-128 encryption of each data block generates a unique hash value. The AES-128 encryption process includes processing the data block through the AES-128 algorithm to generate an encrypted output result, usually outputting a 32-character hexadecimal string. The encrypted data blocks of each block are integrated into a complete file. In this step, all the encrypted blocks are recombined together to form a complete encrypted file. A data merging method can be used to splice the encrypted blocks in the original order into a complete encrypted file. All the encrypted block data is read and spliced together in order. During the splicing process, it is ensured that the order of the data blocks is the same as that of the original file. The integrated encrypted file is fully encrypted, and the integrity between the data blocks has been ensured through AES-128 encryption. To ensure that the file can be correctly decrypted, the system needs to perform a decryption simulation on the integrated encrypted file to generate the key for the copied file. The decryption simulation performs a series of reverse operations on the encrypted file. During the decryption process, specific algorithms and keys are used to restore the original content of the file. The key can be a specific symmetric key generated through the encryption process or other key algorithms.Use the inverse operation of the encryption algorithm (such as the symmetric encryption and decryption algorithm) to decrypt the file and restore the file content. During the decryption process, the key generation mechanism will be triggered to generate the actual copy file key. This key is the security verification key for the file during transmission or storage, ensuring the security and consistency of the file.

[0099] Preferably, the lossless dictionary compression of the file to be copied based on the block data of the file to be copied includes:

[0100] Perform unique identifier block marking on the file to be copied based on the block data of the file to be copied to obtain the marked data block of the file to be copied;

[0101] Construct an initial dictionary through a preset memory space; use the initial dictionary to perform a sliding window scan on the marked data block of the file to be copied. When a repeated data sequence is found in the data block, perform repeated pattern recognition on the corresponding marked data block of the file to be copied to obtain the data sequence repeated pattern;

[0102] Extract the dictionary reference pointer from the initial dictionary according to the data sequence repeated pattern to obtain the dictionary reference pointer; use the dictionary reference pointer to perform reference replacement on the repeated data sequence in the data block, thereby generating the replaced data sequence; perform data merging compression on the marked data block of the file to be copied through the replaced data sequence, thereby generating the compressed block data of the file to be copied.

[0103] In the embodiments of the present invention, based on the chunk data of the file to be copied, the system generates a unique identifier for each data chunk, usually marked by the characteristics of the file (such as file size, starting address of the chunk, etc.). This identifier helps to distinguish different data chunks and avoid duplication or misoperation during the compression process. The system uses a hash algorithm (such as SHA-256) to generate a unique identifier according to the chunking situation of the file. Each chunk is attached with an identifier to mark the content and address of the data chunk. An initialization dictionary is constructed, which contains common data patterns and sequences. The initialization dictionary usually pre-loads some common file data patterns, compression algorithm templates, or the general structure of the file content. The dictionary is constructed using a preset dictionary template in memory or based on historical compression experience. The construction of the dictionary can be generated by an algorithm or initialized from external standard data. The system scans each marked data chunk through a sliding window mechanism to find duplicate data sequences. The sliding window gradually advances to each data chunk in the file, advancing a fixed-length window each time for content comparison. The size of the sliding window is usually determined by the characteristics of the dictionary and the structure of the data to be compressed. In each window, the data sequences within the window are scanned and compared with the existing sequences in the initialization dictionary. If a data sequence in the window is found to be repeated with a certain pattern in the dictionary, it is marked as a repeated pattern. When the sliding window scans a duplicate data sequence, a data marker for that sequence is generated for subsequent operations to replace. Once a data sequence is found to match a certain pattern in the dictionary during the sliding window scan, the system identifies the repeated pattern and generates the metadata for that pattern. The metadata includes information such as the starting position and length of the data sequence. Through the dictionary lookup algorithm, the scanned repeated sequence is compared with the dictionary. If a match is found, the metadata for that sequence is extracted. The repeated pattern can be of a fixed length or variable length, depending on the setting of the sliding window and the content of the dictionary. According to the repeated pattern of the data sequence, the corresponding reference pointers are extracted from the initialization dictionary. These pointers point to the repeated data patterns in the dictionary and can directly replace the repeated parts in the file, thus achieving compression. When extracting the pointers of the repeated pattern, these pointers are associated with the position index in the dictionary. Each repeated data sequence will have a corresponding dictionary index position (i.e., the dictionary reference pointer). The reference pointer is usually a short integer value indicating the position and length of the repeated data in the dictionary. The repeated data sequences are replaced with the dictionary reference pointers, replacing the original data sequence with a reference in the dictionary, significantly reducing the storage space. Each matching repeated sequence is replaced with a reference pointer in the dictionary, and the originally large-sized repeated data is compressed into smaller pointer data. The replaced data sequence usually consists of reference pointers and a small amount of non-repeated data, with a significant compression effect.After all duplicate data sequences are replaced, the replaced data sequences are merged to generate the final compressed file chunk data, and these data chunks will be stored in a lossless compression manner to ensure that the file content is not lost or damaged. The merging operation usually includes summarizing each compressed data chunk to generate a complete compressed data structure. The compressed data chunks can be stored in various formats (such as ZIP, GZIP, etc.).

[0104] As an example of the present invention, refer to Figure 3 As shown, in this example, step S3 includes:

[0105] Step S31: Extract the key sending device address information from the encrypted key to be copied to obtain the sending address information data, where the key sending device address information extraction includes IP address extraction, MAC address extraction, and device identifier extraction;

[0106] Step S32: Based on the key sending device address information data, obtain the receiving address information data by making a communication request for the encrypted key to be copied; perform address pairing verification on the sending address information data and the receiving address information data through a preset whitelist to generate a two-way address confirmation result;

[0107] Step S33: Use the two-way address confirmation result to perform key address matching verification on the copy file key and the receiving address information data. When the key verification is successful, perform multi-layer asynchronous file cloning transmission on the encrypted file to be copied through the sending address information data to generate file cloning transmission data;

[0108] Step S34: When the key verification fails, return an error prompt and terminate the subsequent transmission process.

[0109] In the embodiments of the present invention, the IP address is extracted from the network data packet of the key sending device through a network protocol (such as TCP / IP). This address is used to identify the location of the sending device in the network. The IP address of the sending device is obtained by parsing the source IP field in the data packet header. The MAC address of the sending device is extracted from the data link layer. The MAC address is the hardware identifier of the device and is unique within a local area network (LAN). The physical address of the device is read through the network interface or the MAC address is obtained from the ARP table. The unique identifier associated with the device (such as the serial number or hardware ID of the device) is extracted to further enhance the identification and verification of the device. The unique identifier of the device can be obtained by querying the device management interface or a preset configuration file. Based on the address information of the sending device, a key transmission request is sent to the receiving device. The legitimacy of the receiving device is confirmed through the IP, MAC address, and device identifier of the sending device. A key transmission request message is sent to the receiving device through a network protocol (such as HTTP, TCP), carrying the address information of the sending device. According to the preset whitelist rules, the address information of the sending device and the receiving device is verified for legitimacy. The address information of the sending device and the receiving device is compared with the known address data in the whitelist. If the addresses of the two devices match in the whitelist, it indicates that they are trusted devices and communication is allowed to continue; otherwise, the communication will be rejected. The confirmed key is matched and verified with the address information of the receiving device. The purpose of this verification is to ensure the security of the key and the correct association between the key and the receiving device. The verification step includes comparing the address of the receiving device with the relevant information in the key to ensure that the key points to the correct receiving address. The encrypted file is divided into multiple parts for parallel transmission using a multi-layer asynchronous transmission method. Each layer of transmission is processed independently, thereby improving the efficiency and stability of data transmission. The encrypted file is divided into multiple small parts. Multiple data blocks are transmitted asynchronously at the same time, and the receiving device can independently process each data block when receiving data, improving the data transmission rate. The cloning transmission of the file is the process of copying and transferring the file content to ensure the consistency of the file among multiple devices. When the key verification fails, the system will automatically return an error message, informing the user that the key verification has failed and data transmission cannot be performed. The system generates an error message indicating the reason for the verification failure, such as "the key does not match the receiving device address" or "invalid key". Once the key verification fails, all subsequent file transmission operations will stop immediately. At this time, no file cloning transmission or other related operations will be performed to protect the security of the data. The system automatically terminates the file transmission process through a security mechanism and clears all unfinished transmission tasks.

[0110] Preferably, step S33 includes the following steps:

[0111] Step S331: Use the two-way address confirmation result to perform key address matching verification on the copied file key and the received address information data. When the key verification is successful, confirm the transmission method of the encrypted file to be copied through the sent address information data to obtain the copy transmission method, where the copy transmission method includes local area network transmission, USB transmission, and Bluetooth transmission;

[0112] Step S332: When it is confirmed that the copy transmission method is local area network transmission, perform multi-threaded dynamic window transmission on the encrypted file to be copied based on the UDP+FEC method to generate a local area network transmission protocol; perform file block parallel transmission on the encrypted file to be copied based on the local area network transmission protocol to generate file block parallel transmission data;

[0113] Step S333: Sense the network transmission rate of the file block parallel transmission data to obtain network transmission rate data; compare the network transmission rate with a preset standard transmission rate threshold. When the network transmission rate data is less than the preset standard transmission rate threshold, perform breakpoint resumption on the corresponding file block parallel transmission data to generate local area network transmission file clone data;

[0114] Step S334: When it is confirmed that the copy transmission method is USB transmission, perform file sharding and merging on the encrypted file to be copied to generate a USB transmission strategy; perform batch transmission optimization on the encrypted file to be copied based on the USB transmission strategy to generate USB transmission file clone data;

[0115] Step S335: When it is confirmed that the copy transmission method is Bluetooth transmission, perform low-power short-distance multi-point distribution on the encrypted file to be copied to generate Bluetooth transmission file clone data; integrate the local area network transmission file clone data, USB transmission file clone data, and Bluetooth transmission file clone data to generate file clone transmission data.

[0116] In the embodiments of the present invention, by using the two-way address confirmation result, the file key is copied and matched with the received address information data for verification. After successful verification, the receiving address of the file is confirmed. After successful key verification, according to the received address information data, the copy transmission method is confirmed, and the local area network transmission, USB transmission or Bluetooth transmission is selected. If the copy transmission method is local area network transmission, the UDP+FEC (Forward Error Correction) protocol is used to implement the multi-threaded dynamic window transmission of encrypted files. Based on the local area network transmission protocol, the encrypted file is divided into multiple data blocks for parallel transmission, generating file block parallel transmission data, which can improve the transmission speed and data integrity. During the file block parallel transmission process, the network transmission rate is monitored in real time to obtain the network transmission rate data. The real-time network transmission rate is compared with the preset standard transmission rate threshold. If the network rate is lower than the standard threshold, the breakpoint resumption mechanism is started to re-transmit the corresponding file block, thereby generating local area network transmission file clone data. If it is confirmed that USB transmission is used, the encrypted file is fragmented into multiple small files and merged at the receiving end. This process generates a USB transmission strategy. Based on the USB transmission strategy, batch transmission optimization is performed to improve the efficiency of USB transmission, generating USB transmission file clone data. If it is confirmed that Bluetooth transmission is used, the low-energy Bluetooth (BLE) technology is used for short-distance, multi-point distribution. In this way, the transmission of encrypted files can be completed with low battery consumption, generating Bluetooth transmission file clone data. The file clone data from different transmission methods (local area network, USB, Bluetooth) are integrated to finally generate unified file clone transmission data, which will ensure the complete transmission and copying of the file according to different transmission methods.

[0117] Preferably, when it is confirmed that the copy transmission method is Bluetooth transmission, the low-energy short-distance multi-point distribution of the encrypted file to be copied includes:

[0118] When it is confirmed that the copy transmission method is Bluetooth transmission, the available devices in the Bluetooth network are scanned for the encrypted file to be copied to obtain Bluetooth target device data; the multi-point device Bluetooth distribution connection is established for the Bluetooth target device data through the low-energy mode, generating Bluetooth distribution connection data;

[0119] According to the Bluetooth distribution connection data, the encrypted file to be copied is processed into file blocks, and the fragmented file to be copied is sequentially transmitted to the Bluetooth target device data through the Bluetooth connection to obtain Bluetooth block transmission data; the block integrity of the Bluetooth target device data is verified according to the Bluetooth block transmission data, thereby generating Bluetooth transmission file clone data.

[0120] In the embodiments of the present invention, when it is confirmed that the copy transmission method is Bluetooth transmission, the Bluetooth scanning program is first started to scan for available devices within the Bluetooth network range. The scanning results will generate a Bluetooth target device data set, which contains all target devices that can receive files. The low-energy Bluetooth (BLE) mode is adopted to ensure stable connection without consuming too much power. This mode can reduce the power consumption between devices while increasing the connection range and stability. Using the Bluetooth target device data obtained from the scanning, connections are established with multiple target devices through the low-energy Bluetooth technology. This step generates Bluetooth distribution connection data to ensure that files can be transmitted to multiple target devices simultaneously. According to the Bluetooth distribution connection data, the encrypted file to be copied is block-processed. The file will be cut into appropriately sized blocks to adapt to the transmission characteristics of Bluetooth. The block-processed file to be copied is sequentially transmitted to each Bluetooth target device through the Bluetooth connection. Each file block will be sent to the corresponding target device, generating Bluetooth block transmission data. During the file block transmission process, the receiving device will perform integrity verification on each received file block, which ensures that each block is not lost or damaged during transmission. Once all file blocks are successfully transmitted through Bluetooth and verified, Bluetooth transmission file clone data is generated, which contains copies of the successfully transmitted files for use by the target devices. According to the network conditions or the receiving capabilities of the target devices, the Bluetooth transmission process can be optimized, such as adjusting the packet size or retransmitting lost file blocks. If an interruption occurs during the transmission, the breakpoint resumption mechanism can be used to continue transmitting the unfinished file blocks to ensure the final complete transmission of the file.

[0121] Preferably, step S4 includes the following steps:

[0122] Step S41: Receive the encrypted file to be copied using the file clone transmission data to obtain the encrypted received file;

[0123] Step S42: Recombine the data blocks of the encrypted received file to generate the recombined received file data blocks; verify the data decryption key for the recombined received file data blocks to generate the data decryption key verification result;

[0124] Step S43: Decrypt the encrypted received file according to the data decryption key verification result to generate the original file to be copied, so as to complete the fast file copy operation within the file system.

[0125] In the embodiments of the present invention, after receiving file cloning data transmitted by multiple transmission methods (such as Bluetooth, local area network, USB, etc.), the system first uses the file cloning transmission data to receive the encrypted file to be copied. These file cloning data include all file blocks and transmission metadata to ensure that the file can be completely transmitted to the receiving end. By cloning the transmission data, all the divided file blocks are recombined into a complete encrypted file, and finally the encrypted received file is obtained. According to the received file cloning data, the system reorganizes the data blocks of the encrypted received file. The reorganization process is to splice the file blocks in the correct order to restore a complete file structure. Ensure that all transmitted data blocks are combined in the correct order to restore the complete encrypted file. The data blocks of the reorganized received file will be subjected to data decryption key verification. This verification process is to ensure that the key used is consistent with the key of the encrypted file and that the file transmission has not encountered data tampering or damage. After the verification passes, the system will generate a data decryption key verification result. According to the data decryption key verification result, if the verification passes, the system uses the correct decryption key to decrypt the encrypted received file. The decryption algorithm will ensure that the encrypted file is restored to its original state and all protection measures during the encryption process are removed. After decryption, the system will restore the original file to be copied, and this file can be used for further processing within the file system, such as storage, operation, etc., to complete the file copy operation.

[0126] In this specification, a file quick copy system applied to the internal file system is provided for implementing the above-mentioned file quick copy method applied to the internal file system. The file quick copy system applied to the internal file system includes:

[0127] A data collection module, configured to obtain the file to be copied; extract program information from the file to be copied to obtain file information data to be copied; perform data preprocessing on the file information data to be copied to generate standard file information data to be copied;

[0128] A data compression and encryption module, configured to compress the file to be copied according to the standard file information data to be copied to generate a compressed file to be copied; perform AES-128 encryption on the file to be copied to generate an encrypted file to be copied and a copy file key;

[0129] A data transmission module, configured to perform two-way address confirmation on the encrypted key to be copied to obtain sending address information data and receiving address information data; verify the receiving address information data using the copy file key. When the key verification is successful, the encrypted file to be copied is transmitted by file cloning through the sending address information data to generate file cloning transmission data;

[0130] A data recovery module, which is used to receive the encrypted file to be copied by using file cloning to transfer data, so as to obtain the encrypted received file; perform data information recovery and verification on the encrypted received file, so as to execute the fast file copy operation within the file system.

[0131] The beneficial effects of the present invention are as follows: The data collection module can accurately obtain the file to be copied and extract program information, ensuring that all key information of the file to be copied can be extracted and converted into a standard format that can be processed. The data preprocessing ensures the unity and consistency of data by generating standard file information data for the file to be copied, enabling subsequent processing and operations to proceed smoothly and improving the reliability of the file copy process. In the data compression and encryption module, the file to be copied is compressed, which not only effectively reduces the file size and improves the transmission efficiency, but also ensures the security of the file during transmission through AES-128 encryption. The encryption operation guarantees the confidentiality and integrity of the file, avoiding the risks of data leakage or tampering. The generation and management of the encrypted file and the key ensure that only legitimate users can access the file, improving the security during data transmission and storage. The data transmission module ensures an effective connection between the two communication parties through two-way address confirmation and verifies the key for the received address information. Through this step, it is ensured that only the verified recipient can receive the data, thus avoiding illegal reception and data leakage. The file cloning transmission technology adopted during file transmission ensures that the file can be efficiently and securely transmitted in various transmission environments, improving the overall transmission efficiency and reliability. The data recovery module can quickly recover the file by receiving and decrypting the transmitted data, and at the same time verify the data to ensure data integrity and consistency. In the fast copy operation, the file recovery process is optimized, shortening the recovery time and improving the accuracy of file recovery. The fast file copy operation within the file system is effectively supported by data recovery, ensuring the usability and correctness of the file after recovery and improving the overall performance of the system. Especially in large-scale file processing and backup tasks, it can significantly improve the work efficiency. Therefore, the present invention improves the efficiency and security of fast copying within the file system through data preprocessing, encryption verification, two-way address confirmation, and file cloning transmission.

[0132] Therefore, from any perspective, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the appended claims rather than the above description. Therefore, it is intended to encompass all changes falling within the meaning and scope of the equivalent elements of the application documents within the present invention.

[0133] The above are only specific embodiments of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features invented herein.

Claims

1. A method for quickly copying files within a file system, characterized in that: The following steps are involved: Step S1: Obtain the file to be copied; Extract program information from the file to be copied to obtain information data of the file to be copied; perform data preprocessing on the file to be copied based on the information data of the file to be copied to generate standard information data of the file to be copied; Step S2: compressing the file to be copied according to the standard file information data to generate a compressed file to be copied; Perform AES-128 encryption on the file to be copied, and generate the encrypted file to be copied and the key for the copied file; Step S3: bidirectionally confirm the address of the encrypted key to be copied to obtain the sending address information data and the receiving address information data; use the copy file key to perform key verification on the receiving address information data, and when the key verification is successful, perform file cloning transmission on the encrypted file to be copied through the sending address information data to generate file cloning transmission data; Step S4: using the file cloning transmission data to receive the encrypted file to be copied, to obtain an encrypted received file; The encrypted received files are restored and verified to perform a fast file copy operation within the file system.

2. The method for quickly copying files in a file system according to claim 1, characterized in that: Step S1 includes the following steps: Step S11: Obtain the file to be copied; Step S12: extracting file program information from the file to be copied to obtain file program information data, wherein the file program information extraction includes file name extraction, size extraction, type extraction, path extraction and program dependency extraction; Step S13: unifying the data format of the files to be copied based on the file program information data to generate files to be copied in a unified format; removing redundant and duplicate data from the files to be copied in a unified format to obtain valid files to be copied; Step S14: parsing and marking the file dependencies of the valid files to be copied, thereby generating file resource marking data; organizing the file contents of the valid files to be copied using the file resource marking data, thereby generating standard file information data to be copied.

3. The method for quickly copying files in a file system according to claim 2, characterized in that: File dependency parsing and marking of valid files to be copied include: Extract file metadata of valid files to be copied, thereby obtaining file metadata; perform file dependency analysis on valid files to be copied through file metadata, and generate file dependency data; Performing an associated resource tag on the file metadata according to the file dependency data to obtain associated resource tag data; performing file resource path mapping on the valid files to be copied according to the associated resource tag data to generate file resource path mapping data; File resource marking and integration are performed on the associated resource marking data through the file resource path mapping data, thereby generating file resource marking data.

4. The method for quickly copying files in a file system according to claim 1, characterized in that: Step S2 includes the following steps: Step S21: dividing the file to be copied into blocks according to the standard file information data to be copied to generate the file block data to be copied; performing lossless dictionary compression on the file to be copied based on the file block data to be copied to generate compressed file block data to be copied; Step S22: performing block verification on the compressed block data of the to-be-copied file to generate compressed file integrity verification data; Step S23: performing AES-128 data encryption on the compressed block data of the file to be copied according to the integrity check data of the compressed file to generate encrypted block data of the file to be copied; Step S24: Integrate the encrypted block data of the file to be copied to generate an encrypted file to be copied, and perform a decryption simulation on the encrypted file to be copied to generate a copy file key.

5. The method for quickly copying files in a file system according to claim 4, characterized in that: The lossless dictionary compression of the to-be-copied file based on the block data of the to-be-copied file includes: Based on the block data of the file to be copied, a unique identifier is used to mark the file to be copied in blocks to obtain a marked data block of the file to be copied; An initialization dictionary is constructed through a preset memory space; a sliding window scan is performed on the marked data blocks of the to-be-copied file using the initialization dictionary, and when a repeated data sequence is found in the scanned data block, a repeated pattern recognition is performed on the corresponding marked data blocks of the to-be-copied file to obtain a repeated pattern of the data sequence; The dictionary reference pointer is extracted from the initialized dictionary according to the data sequence repetition pattern to obtain the dictionary reference pointer; the repeated data sequence in the data block is referenced and replaced by the dictionary reference pointer to generate the replaced data sequence; the marked data block of the file to be copied is merged and compressed by the replaced data sequence to generate the compressed block data of the file to be copied.

6. The method for quickly copying files in a file system according to claim 1, characterized in that: Step S3 includes the following steps: Step S31: extracting the key sending device address information of the encrypted key to be copied to obtain sending address information data, wherein the key sending device address information extraction includes IP address extraction, MAC address extraction and device identifier extraction; Step S32: Based on the key sending device address information data, a communication request is made to obtain the encrypted key to be copied, and the receiving address information data is obtained; the sending address information data and the receiving address information data are checked for address pairing through a preset white list, and a two-way address confirmation result is generated; Step S33: using the two-way address confirmation result, the key address matching verification is performed using the copy file key and the receiving address information data. When the key verification is successful, the encrypted file to be copied is subjected to multi-layer asynchronous file cloning transmission by sending the address information data to generate file cloning transmission data; Step S34: When the key verification fails, an error prompt is returned and the subsequent transmission process is terminated.

7. The method for quickly copying files in a file system according to claim 6, characterized in that: Step S33 includes the following steps: Step S331: using the two-way address confirmation result, the key address matching verification is performed using the copy file key and the receiving address information data. When the key verification succeeds, the transmission mode of the encrypted file to be copied is confirmed by sending the address information data to obtain the copy transmission mode, wherein the copy transmission mode includes LAN transmission, USB transmission and Bluetooth transmission; Step S332: when it is confirmed that the copy transmission mode is LAN transmission, the encrypted file to be copied is transmitted in a multi-threaded dynamic window based on the UDP+FEC mode to generate a LAN transmission protocol; the encrypted file to be copied is transmitted in blocks and in parallel based on the LAN transmission protocol to generate file block and parallel transmission data; Step S333: the network transmission rate of the file block parallel transmission data is sensed to obtain network transmission rate data; the network transmission rate is compared with a preset standard transmission rate threshold, and when the network transmission rate data is less than the preset standard transmission rate threshold, the corresponding file block parallel transmission data is resumed from breakpoint to generate LAN transmission file clone data; Step S334: when it is confirmed that the copy transmission mode is USB transmission, the encrypted files to be copied are segmented and merged to generate a USB transmission strategy; based on the USB transmission strategy, the encrypted files to be copied are optimized for batch transmission to generate USB transmission file clone data; Step S335: When it is confirmed that the copy transmission mode is Bluetooth transmission, the encrypted file to be copied is distributed to multiple points at a low energy consumption and short distance to generate Bluetooth transmission file clone data; the LAN transmission file clone data, USB transmission file clone data and Bluetooth transmission file clone data are integrated to generate file clone transmission data.

8. The method for quickly copying files in a file system according to claim 7, characterized in that: When it is confirmed that the copy transmission mode is Bluetooth transmission, the encrypted file to be copied is distributed in a low-energy, short-distance and multi-point manner, including: When it is confirmed that the copy transmission mode is Bluetooth transmission, the encrypted file to be copied is scanned for available devices in the Bluetooth network to obtain Bluetooth target device data; a multi-point device Bluetooth distribution connection is established for the Bluetooth target device data through the low energy consumption mode to generate Bluetooth distribution connection data; The encrypted file to be copied is divided into blocks according to the Bluetooth distribution connection data, and the divided file to be copied is transmitted to the Bluetooth target device data through the Bluetooth connection in turn to obtain Bluetooth block transmission data; the Bluetooth target device data is checked for block integrity according to the Bluetooth block transmission data, thereby generating Bluetooth transmission file clone data.

9. The method for quickly copying files in a file system according to claim 1, characterized in that: Step S4 includes the following steps: Step S41: receiving the encrypted file to be copied by using the file cloning transmission data to obtain an encrypted received file; Step S42: reorganizing the encrypted received file data blocks to generate reorganized received file data blocks; performing data decryption key verification on the reorganized received file data blocks to generate data decryption key verification results; Step S43: decrypt the encrypted received file according to the data decryption key verification result to generate the original file to be copied, so as to complete the file fast copy operation inside the file system.

10. A system for quickly copying files within a file system, characterized in that: The method for quickly copying files in a file system according to claim 1 is used to execute the method for quickly copying files in a file system, and the method for quickly copying files in a file system comprises: The data collection module is used to obtain the file to be copied; extract program information from the file to be copied to obtain information data of the file to be copied; perform data preprocessing on the information data of the file to be copied to generate standard information data of the file to be copied; A data compression and encryption module is used to compress the data of the file to be copied according to the standard file information data to generate a compressed file to be copied; perform AES-128 encryption on the file to be copied to generate an encrypted file to be copied and a copy file key; The data transmission module is used to perform two-way address confirmation on the encrypted key to be copied, and obtain the sending address information data and the receiving address information data; use the copy file key to perform key verification on the receiving address information data, and when the key verification is successful, the encrypted file to be copied is cloned and transmitted through the sending address information data to generate file clone transmission data; The data recovery module is used to receive the encrypted file to be copied by using file cloning transmission data to obtain the encrypted received file; recover and verify the data information of the encrypted received file to perform a fast file copying operation within the file system.

Citation Information

Patent Citations

  • Method for adaptively processing downloaded file by cloud server and corresponding server

    CN114884938A

  • Digital rights management engine systems and methods

    US20070185814A1