CN114489486B - Industry data long storage method, equipment and storage medium - Google Patents

Industry data long storage method, equipment and storage medium Download PDF

Info

Publication number
CN114489486B
CN114489486B CN202111629392.4A CN202111629392A CN114489486B CN 114489486 B CN114489486 B CN 114489486B CN 202111629392 A CN202111629392 A CN 202111629392A CN 114489486 B CN114489486 B CN 114489486B
Authority
CN
China
Prior art keywords
data
type
processing request
data processing
industry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111629392.4A
Other languages
Chinese (zh)
Other versions
CN114489486A (en
Inventor
陆旭军
沈智旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Yuning Intelligent Technology Co ltd
Original Assignee
Wuxi Yuning Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Yuning Intelligent Technology Co ltd filed Critical Wuxi Yuning Intelligent Technology Co ltd
Priority to CN202111629392.4A priority Critical patent/CN114489486B/en
Publication of CN114489486A publication Critical patent/CN114489486A/en
Application granted granted Critical
Publication of CN114489486B publication Critical patent/CN114489486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses an industry data long storage method, equipment and a storage medium, wherein the industry data long storage method comprises the following steps: receiving a data processing request of a user; determining an access limit of the data processing request, and judging whether the data processing request is safe or not based on the access limit; if the data processing request is safe, determining the type of the data processing request; based on the type, carrying out data processing on target data in the backup data block pointed by the data processing request to obtain processed data; based on the type, further processing the processed data to obtain a processing result; wherein the backup data block is arranged in a nonvolatile random access memory. The invention belongs to the technical field of data storage, and guarantees the safety of data access while preserving important data after restoring factory settings.

Description

Industry data long storage method, equipment and storage medium
Technical Field
The present invention relates to the field of data storage technologies, and in particular, to an industry data long storage method, apparatus, and storage medium.
Background
The current method for storing data in a power-off mode mainly comprises a file, a database and an NVRAM (Non-Volatile Random Access Memory, nonvolatile random access memory), wherein the data can be erased after the factory setting of the equipment is restored by the file and the database, and only the PRODUCT_INFO area in the NVRAM can be reserved after the factory setting is restored. However, the area is used by the system, and is stored with important data such as Barcode, IMEI code, WIFI MAC address, etc., only a few hundred bytes of reserved space is available for the developer, and the data block is not protected, and the developer can write and erase at will, so that the security is poor.
Disclosure of Invention
The invention mainly aims to provide an industry data long storage method, equipment and a storage medium, and aims to solve the technical problems of data storage in a power-off mode and poor data security.
In order to achieve the above object, the present invention provides an industry data long storage method, which includes:
receiving a data processing request of a user;
determining an access limit of the data processing request, and judging whether the data processing request is safe or not based on the access limit;
if the data processing request is safe, determining the type of the data processing request;
based on the type, carrying out data processing on target data in the backup data block pointed by the data processing request to obtain processed data;
based on the type, further processing the processed data to obtain a processing result;
wherein the backup data block is arranged in a nonvolatile random access memory.
Optionally, the step of determining an access limit of the access request and determining whether the access request is secure based on the access limit includes:
invoking a backup data block management service;
determining an access limit of the access request based on the backup data block management service, and judging whether the access request is safe or not based on the access limit;
wherein the backup data block management service is configured to manage the backup data blocks.
Optionally, the step of performing data processing on the target data in the backup data block pointed by the data processing request based on the type to obtain processed data includes:
acquiring a first position of the target data in the backup data block based on the backup data block management service;
and processing the target data based on the type and the first position to obtain processed data.
Optionally, the step of obtaining the first location of the target data in the backup data block includes:
determining a keyword carried by the data processing request;
judging whether a preset data index table contains the keywords or not;
if yes, taking the data position of the keyword in the backup data block as the first position of the target data in the backup data block.
Optionally, the type includes a read type or an edit type, and the processed data includes read data or edited data;
the step of processing the target data in the backup data block pointed by the data processing request based on the type and the first position to obtain processed data includes:
when the data processing request is of a reading type, reading the target data based on the reading type and the first position to obtain read data;
and when the data processing request is of an editing type, editing the target data based on the editing type and the first position to obtain edited data.
Optionally, the type includes a read type or an edit type, and the step of further processing the processed data based on the type to obtain a processing result includes:
when the data processing request is of a reading type, the processed data is sent to a user side, and a reading result of the target data is obtained;
and when the data processing request is of an editing type, distributing a second position to the processed data in the backup data block, and storing the processed data in the second position to obtain a storage result of the target data.
Optionally, the step of determining an access limit of the data processing request and determining whether the data processing request is secure based on the access limit includes:
detecting whether the data processing request is on a preset white list or not based on the data processing request of the user side;
and if the data processing request is on the preset white list, judging that the data processing request is safe.
Optionally, the step of performing data processing on the target data in the backup data block pointed by the data processing request based on the type to obtain processed data further includes:
copying the data in the backup data block into a memory block of the nonvolatile random access memory;
based on the type, carrying out data processing on the target data in the memory block, and obtaining processed data in the memory block;
the step of further processing the processed data based on the type to obtain a processing result comprises the following steps:
reading the memory block to obtain the processed data;
and based on the type, synchronizing the processed data to the backup data block to obtain a processing result.
The application also provides an industry data long storage device, the industry data long storage device includes:
the receiving module is used for receiving a data processing request of the user side;
a limiting module, configured to determine an access limit of the data processing request, and determine whether the access request is secure based on the access limit;
and the type determining module is used for determining the type of the data processing request if the data processing request is safe.
The data processing module is used for carrying out data processing on the data in the backup data block based on the type to obtain processed data;
the post-processing module is used for further processing the processed data based on the type to obtain a processing result;
wherein the backup data block is arranged in a nonvolatile random access memory.
The application also provides an industry data long storage device, which comprises: a memory, a processor, and a program stored on the memory for implementing the industry data long storage method,
the memory is used for storing a program for realizing an industry data long storage method;
the processor is used for executing a program for realizing the industry data long storage method so as to realize the steps of the industry data long storage method.
The present application also provides a storage medium having stored thereon a program for implementing an industry data long storage method, the program for implementing an industry data long storage method being executed by a processor to implement the steps of the industry data long storage method.
Compared with the prior art that important data is stored in a PRODUCT_INFO area in NVRAM to reserve the data after the terminal is restored to factory settings, the industry data long storage method, equipment and storage medium provided by the embodiment of the invention are small in data storage amount and poor in safety, and in the application, a data processing request of a user side is received; determining an access limit of the data processing request, and judging whether the data processing request is safe or not based on the access limit; if the data processing request is safe, determining the type of the data processing request; based on the type, carrying out data processing on target data in the backup data block pointed by the data processing request to obtain processed data; based on the type, further processing the processed data to obtain a processing result; the backup data block is arranged in the nonvolatile random access memory, namely in the application, the data is stored in the backup data block of the nonvolatile random access memory, and the data is still reserved after the terminal is restored to factory setting; through access restriction, malicious tampering of data is prevented, so that security of data access is ensured.
Drawings
FIG. 1 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of an industry data length storage method according to the present invention;
FIG. 3 is a flow chart of a second embodiment of the industry data long storage method of the present invention;
FIG. 4 is a schematic view of a first scenario involving the present invention;
fig. 5 is a schematic diagram of a second scenario according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, or can be a mobile terminal device with a display function, such as a smart phone, a tablet personal computer, an electronic book reader, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 3) player, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a non-volatile random access memory (nonvolatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and so on. Among other sensors, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile terminal is stationary, and the mobile terminal can be used for recognizing the gesture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which are not described herein.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an industry data long storage program may be included in the memory 1005, which is a type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to invoke the industry data long storage in the memory 1005.
In a first embodiment of the industry data long storage method of the present application, referring to fig. 2, the industry data long storage method includes:
step S100, receiving a data processing request of a user side;
step S200, determining access limit of the data processing request, and judging whether the data processing request is safe or not based on the access limit;
step S300, if the security is ensured, determining the type of the data processing request;
step S400, based on the type, carrying out data processing on target data in the backup data block pointed by the data processing request to obtain processed data;
step S500, further processing the processed data based on the type to obtain a processing result; wherein the backup data block is arranged in a nonvolatile random access memory.
In this embodiment, it should be noted that the industry data long storage method may be applied to an industry data long storage device, where the industry data long storage device belongs to an industry data long storage system, and the industry data long storage system belongs to an industry data long storage apparatus.
In this embodiment, a specific application scenario may be:
when a developer needs to store important data in the device, in the prior art, a database or an NVRAM is generally selected, wherein the database is erased after the device is restored to the factory setting, and only a PRODUCT_INFO area in the NVRAM can be reserved after the device is restored to the factory setting. But the area is used by the system, and stores important data such as Barcode, IMEI code, WIFI MAC address and the like, and only a reserved space of hundreds of bytes is available for a developer, so that the data storage amount is small. And the data block is not protected, so that a developer can randomly write and erase, and the security is low.
When multiple developers are in use, the currently used developers do not know which data blocks are already used, so that different data are easily overlaid, and the use is inconvenient.
The embodiment is applied to the NVRAM, wherein the NVRAM has the characteristics of high access speed of main memory and the characteristics of large auxiliary memory capacity and non-volatile (data is not lost after power failure), and the data stored in the memory space of the NVRAM can be reserved after factory setting is restored, so that the data is reserved after the factory setting is restored for the equipment, and the NVRAM is selected as the bearing memory.
The whole embodiment opens up a storage space, namely a backup data block, in the NVRAM, and sets access limit of a data processing request in the NVRAM, so as to provide a safe and reliable data processing mode which can still save data after switching on and switching off or restoring factory settings.
The method comprises the following specific steps:
step S100, receiving a data processing request of a user side;
in this embodiment, the terminal receives the data processing request sent by the user terminal through the corresponding communication interface, where the communication interface may adopt a current network communication mode, may adopt a UDP (User Datagram Protocol, user data packet protocol) mode, may also adopt a TCP (Transmission Control Protocol ) mode, and is not specifically limited herein.
In this embodiment, the request may be a process request; the data processing includes reading, writing and erasing, wherein at least one of the processing modes is adopted in the data processing, for example, the terminal receives a data reading request from the user terminal, which indicates that the user terminal is to read the data stored in the terminal.
Step S200, determining access limit of the data processing request, and judging whether the data processing request is safe or not based on the access limit;
in this embodiment, the access restriction may be used to restrict the access of the system application to the data, or may be used to restrict the access of other users to the data, where the access restriction is used to determine whether the data processing request is trusted, prevent the stored data from being tampered with maliciously, and ensure the security of the stored data by setting the access restriction.
Specifically, the step S200 includes the following steps S210 to S220:
step S210, detecting whether the data processing request is on a preset white list or not based on the data processing request of the user side;
in this embodiment, a data processing request white list is created, and a trusted data processing request is added in the white list, that is, a preset white list is completed, where the trusted data processing request may be a data processing request of a system administrator, or may be a target trusted data processing request set by a developer and/or an administrator.
Step S220, if the data processing request is on the preset white list, determining that the data processing request is safe.
In this embodiment, the non-trusted data processing request is refused through the preset white list to ensure the security of the data in the backup data block, for example, the application APP in the device sends a data access process to the terminal, the data processing request is the non-trusted data processing request, and if the terminal detects that the data processing request is not in the white list, the process is refused to access the data, thereby preventing malicious tampering of the stored data and protecting the security of the data in the backup data block.
Step S300, if the security is ensured, determining the type of the data processing request;
in this embodiment, the terminal determines the type of the data processing request by identifying the operation parameter carried by the data processing request, the type of the data processing request including a read type and an edit type, specifically, a read as read operation request, and the edit includes a write operation request and an erase operation request.
Step S400, based on the type, carrying out data processing on target data in the backup data block pointed by the data processing request to obtain processed data;
in this embodiment, the backup data block is a block of storage space opened up in the NVRAM, and is used for storing data, the target data is pointed to according to a data processing request, or alternatively, a piece of data stored in the backup data block is selected, the data processing is performed correspondingly based on the type of the data processing request, for example, if the data processing request is a read request, the target data is read.
It should be noted that, if any data is not yet stored in the backup data block, the target data is empty, and the processing of the target data can only be writing data or storing data.
Step S500, further processing the processed data based on the type to obtain a processing result;
wherein the backup data block is arranged in a nonvolatile random access memory.
In this embodiment, the backup data block is established in the identifier space of the nonvolatile random access memory through the encoding end, specifically, the encoding end initializes the nonvolatile random access memory to generate the identifier space, selects the spare identifier space therein, and rebuilds the backup data block in the spare identifier space, where the storage space of the backup data block is large and is suitable for storing a large amount of data; the data is arranged in the identification space of the nonvolatile random access memory, so that the integrity of the data after the equipment is restored to the factory setting is ensured.
In this embodiment, the nonvolatile random access memory may be PCM (Phase Change Memory ), STT-RAM (Spin-Transfer Torque Random Access Memory, spin transfer torque random access memory), RRAM (Resistive Random Access Memory, memristor), or 3D XPoint proposed by Intel (Intel) and light-beautifying (Micron), which is not limited herein.
Specifically, the step S500 includes the following steps S510 to S520:
step S510, when the data processing request is of a read type, sending the processed data to a user side to obtain a read result of the target data;
and step S520, when the data processing request is of an editing type, in the backup data block, performing second position allocation on the processed data, and then storing the processed data in the second position to obtain a storage result of the target data.
In this embodiment, the second location is a data location of the data after the editing operation allocated to the backup data block by the terminal, where the data location is managed and allocated by the terminal, and the backup data block service set by the terminal may also manage and allocate the data before and after editing, which is beneficial to convenience when multiple developers use the backup data block to process the data.
Compared with the prior art that important data is stored in a PRODUCT_INFO area in NVRAM to reserve the data after the terminal is restored to factory settings, the industry data long storage method, equipment and storage medium provided by the embodiment of the invention are small in data storage amount and poor in safety, and in the application, a data processing request of a user side is received; determining an access limit of the data processing request, and judging whether the data processing request is safe or not based on the access limit; if the data processing request is safe, determining the type of the data processing request; based on the type, carrying out data processing on target data in the backup data block pointed by the data processing request to obtain processed data; based on the type, further processing the processed data to obtain a processing result; the backup data block is arranged in the nonvolatile random access memory, namely in the application, the data is stored in the backup data block of the nonvolatile random access memory, and the data is still reserved after the terminal is restored to factory setting; through access restriction, malicious tampering of data is prevented, so that security of data access is ensured.
Based on the first embodiment of the present application, another embodiment of the present application is provided, referring to fig. 3, in an industry data long storage method provided in the present embodiment, in step S200, the step of determining an access limit of the access request and determining whether the access request is safe based on the access limit includes the following steps a100-a200:
step A100, calling a backup data block management service;
in this embodiment, the backup data block management service is a service for managing backup data blocks set in this embodiment, where the backup data block management service is a preset service and is enabled when the device is started.
Step A200, determining access limit of the access request based on the backup data block management service, and judging whether the access request is safe or not based on the access limit;
wherein the backup data block management service is configured to manage the backup data blocks.
In this embodiment, the terminal performs access restriction on an access request sent by the user terminal through an access restriction function set in the backup data block management service, where the access restriction may be implemented by setting a white list, or by setting a black list, or by setting a listening service.
Based on the backup data block management service provided in the present embodiment, in step S400, data processing is performed on the target data in the backup data block pointed to by the data processing request based on the type, so as to obtain processed data, which includes the following steps S410-S420:
step S410, based on the backup data block management service, acquiring a first position of the target data in the backup data block;
in this embodiment, the terminal may obtain the first position of the target data in the backup data block by searching the backup data block management service for the data position in the backup data block where the target data is located before the data access, and may implement the data processing by locating the position of the target data.
And step S420, processing the target data based on the type and the first position to obtain processed data.
Specifically, the step S420 includes the following steps S421 to S422:
step S421, when the data processing request is of a read type, reading the target data based on the read type and the first position to obtain read data;
step S422, when the data processing request is an editing type, editing the target data based on the editing type and the first position, so as to obtain edited data.
In this embodiment, if the data processing request is a read type, the target data at the first location is directly read, if the data processing request is an edit type, the target data at the first location is edited, where the edit type includes writing and erasing, if the edit type is writing, the data after the writing operation is obtained, and if the edit type is erasing, the data after the erasing operation is obtained.
Referring to FIG. 4, at device start-up, the data block management service is enabled while the backup data block loads data into the log file. After the data block management service is enabled, a data index table is generated in the data block management service.
Based on the first embodiment and the second embodiment in the present application, another embodiment of the present application is provided, in the industry data long storage method provided in the present embodiment, in step S410, the step of obtaining the first location of the target data in the backup data block includes the following steps B100-B300:
step B100, determining keywords carried by the data processing request;
in this embodiment, the terminal determines the key word carried by the data processing request by reading the parameter in the data processing request.
Step B200, judging whether the preset data index table contains the keywords;
in this embodiment, the preset data index table may be established by an index method of a T-tree (destination balanced binary tree), where nodes of the T-tree store keywords ordered based on key values, so as to facilitate rapid positioning to a data location based on the keywords.
And step B300, if yes, taking the data position of the key word in the backup data block as the first position of the target data in the backup data block.
In this embodiment, the first location is a data location in the backup data block where the target data is located before data access, and the location of the target data can be rapidly located through the data index table terminal, so that the efficiency of data access is improved.
Referring to fig. 5, when a user side sends an access request to the data block management service through a data block management interface, the data block management service confirms whether the access process is in a white list, after confirming that the access process is a trusted process, if the user side sends an edit type request, data editing operation is performed based on a data index table, and after the data editing operation, the data block management service synchronizes data to a backup data block; if the user side sends a reading type request, data reading operation is performed based on the data index table, and after the data reading operation, the data block management service returns the data to the user side.
In another embodiment of the present application, in the industry data long storage method provided in the present embodiment, in step S400, based on the type, data processing is performed on the target data in the backup data block pointed to by the data processing request, so as to obtain processed data, which includes the following steps C100-C400:
step C100, copying the data in the backup data block into a memory block of the nonvolatile random access memory;
in this embodiment, the memory block stores the same data as in the backup data block.
Step C200, based on the type, performing data processing on the target data in the memory block, and obtaining processed data in the memory block;
in this embodiment, the memory block is set in the nonvolatile random access memory, and the data in the memory block is processed to synchronize the data in the backup data block, so that the security of the data in the backup data block is further enhanced.
The step of further processing the processed data based on the type to obtain a processing result comprises the following steps:
step C300, reading the memory block to obtain the processed data;
and step C400, synchronizing the processed data to the backup data block based on the type to obtain a processing result.
In this embodiment, the synchronization mode may be full synchronization or incremental synchronization, where full synchronization is implemented by exporting all data of a memory block and importing the data into a backup data block; incremental synchronization is realized by setting a trigger and an incremental table, deriving incremental data and importing the incremental data into a backup data block.
The application also provides an industry data long storage device, the industry data long storage device includes:
the receiving module is used for receiving a data processing request of the user side;
a limiting module, configured to determine an access limit of the data processing request, and determine whether the access request is secure based on the access limit;
and the type determining module is used for determining the type of the data processing request if the data processing request is safe.
The data processing module is used for carrying out data processing on the data in the backup data block based on the type to obtain processed data;
the post-processing module is used for further processing the processed data based on the type to obtain a processing result;
wherein the backup data block is arranged in a nonvolatile random access memory.
The specific implementation manner of the industry data long storage device is basically the same as that of each embodiment of the industry data long storage method, and is not repeated here.
The application also provides an industry data long storage device, which comprises: a memory, a processor, and a program stored on the memory for implementing the industry data long storage method,
the memory is used for storing a program for realizing an industry data long storage method;
the processor is used for executing a program for realizing the industry data long storage method so as to realize the steps of the industry data long storage method.
The specific implementation manner of the industry data long storage device is basically the same as that of each embodiment of the industry data long storage method, and is not repeated here.
The present application also provides a storage medium having stored thereon a program for implementing an industry data long storage method, the program for implementing an industry data long storage method being executed by a processor to implement the steps of the industry data long storage method.
The specific implementation manner of the storage medium is basically the same as that of each embodiment of the industry data long storage method, and is not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The industry data long storage method is characterized by comprising the following steps of:
receiving a data processing request of a user;
determining an access limit of the data processing request, and judging whether the data processing request is safe or not based on the access limit;
if the data processing request is safe, determining the type of the data processing request;
based on the type, carrying out data processing on target data in the backup data block pointed by the data processing request to obtain processed data;
the step of performing data processing on the target data in the backup data block pointed by the data processing request based on the type to obtain processed data includes:
acquiring a first position of the target data in the backup data block based on the backup data block management service;
processing the target data based on the type and the first position to obtain processed data;
the step of processing the target data based on the type and the first position to obtain processed data includes:
when the data processing request is of a reading type, reading the target data based on the reading type and the first position to obtain read data;
when the data processing request is of an editing type, editing the target data based on the editing type and the first position to obtain edited data;
wherein the type comprises a read type or an edit type, and the processed data comprises read data or edited data;
based on the type, further processing the processed data to obtain a processing result;
the type comprises an editing type, and the step of further processing the processed data based on the type to obtain a processing result comprises the following steps:
when the data processing request is of an editing type, in the backup data block, distributing the processed data to a second position, and storing the processed data to the second position to obtain a storage result of the target data;
wherein the backup data block is arranged in a nonvolatile random access memory.
2. The industry data long storage method of claim 1, wherein the step of determining the access limit of the data processing request and judging whether the data processing request is safe based on the access limit comprises:
invoking a backup data block management service;
determining an access limit of the data processing request based on the backup data block management service, and judging whether the data processing request is safe or not based on the access limit;
wherein the backup data block management service is configured to manage the backup data blocks.
3. The industry data long storage method of claim 1, wherein the step of obtaining the first location of the target data in the backup data block comprises:
determining a keyword carried by the data processing request;
judging whether a preset data index table contains the keywords or not;
if yes, taking the data position of the keyword in the backup data block as the first position of the target data in the backup data block.
4. The industry data long storage method of claim 1, wherein the type includes a read type, and the step of further processing the processed data based on the type to obtain a processing result includes:
and when the data processing request is of a reading type, sending the processed data to a user side to obtain a reading result of the target data.
5. The industry data long storage method of claim 1, wherein the step of determining the access limit of the data processing request and judging whether the data processing request is safe based on the access limit comprises:
detecting whether the data processing request is on a preset white list or not based on the data processing request of the user side;
and if the data processing request is on the preset white list, judging that the data processing request is safe.
6. The industry data long storage method according to claim 1, wherein the step of performing data processing on the target data in the backup data block to which the data processing request is directed based on the type to obtain processed data further comprises:
copying the data in the backup data block into a memory block of the nonvolatile random access memory;
based on the type, carrying out data processing on the target data in the memory block, and obtaining processed data in the memory block;
the step of further processing the processed data based on the type to obtain a processing result comprises the following steps:
reading the memory block to obtain the processed data;
and based on the type, synchronizing the processed data to the backup data block to obtain a processing result.
7. An industry data long storage device, characterized in that the industry data long storage device comprises: a memory, a processor, and a program stored on the memory for implementing the industry data long storage method,
the memory is used for storing a program for realizing an industry data long storage method;
the processor is configured to execute a program for implementing the industry data long storage method to implement the steps of the industry data long storage method according to any one of claims 1 to 6.
8. A storage medium having stored thereon a program for implementing an industry data long storage method, the program for implementing an industry data long storage method being executed by a processor to implement the steps of the industry data long storage method according to any one of claims 1 to 6.
CN202111629392.4A 2021-12-28 2021-12-28 Industry data long storage method, equipment and storage medium Active CN114489486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111629392.4A CN114489486B (en) 2021-12-28 2021-12-28 Industry data long storage method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111629392.4A CN114489486B (en) 2021-12-28 2021-12-28 Industry data long storage method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114489486A CN114489486A (en) 2022-05-13
CN114489486B true CN114489486B (en) 2023-07-14

Family

ID=81495792

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111629392.4A Active CN114489486B (en) 2021-12-28 2021-12-28 Industry data long storage method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114489486B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003288564A (en) * 2002-01-24 2003-10-10 Matsushita Electric Ind Co Ltd Memory card
CN107832635A (en) * 2017-11-29 2018-03-23 鼎信信息科技有限责任公司 Access right control method, device, equipment and computer-readable recording medium
CN108289080A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of methods, devices and systems accessing file system
CN110888838A (en) * 2019-10-16 2020-03-17 平安科技(深圳)有限公司 Object storage based request processing method, device, equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8353015B2 (en) * 2008-01-09 2013-01-08 Microsoft Corporation Trusted internet identity
US20140181985A1 (en) * 2012-12-21 2014-06-26 Broadcom Corporation Content Specific Data Scrambling
JP6561441B2 (en) * 2014-09-05 2019-08-21 株式会社リコー Information processing apparatus, access control method, communication system, and program
US9558128B2 (en) * 2014-10-27 2017-01-31 Seagate Technology Llc Selective management of security data
CN110651270B (en) * 2017-12-29 2023-11-10 华为技术有限公司 Data access method and device
CN110232292A (en) * 2019-05-06 2019-09-13 平安科技(深圳)有限公司 Data access authority authentication method, server and storage medium
JP2021064319A (en) * 2019-10-17 2021-04-22 富士通株式会社 Communication program, authorization server, and communication system
US11681652B2 (en) * 2019-12-06 2023-06-20 EMC IP Holding Company LLC Methods, electronic devices and computer program products for accessing data
CN113468552A (en) * 2021-05-31 2021-10-01 珠海大横琴科技发展有限公司 Data processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003288564A (en) * 2002-01-24 2003-10-10 Matsushita Electric Ind Co Ltd Memory card
CN108289080A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of methods, devices and systems accessing file system
CN107832635A (en) * 2017-11-29 2018-03-23 鼎信信息科技有限责任公司 Access right control method, device, equipment and computer-readable recording medium
CN110888838A (en) * 2019-10-16 2020-03-17 平安科技(深圳)有限公司 Object storage based request processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114489486A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US10705894B2 (en) Electronic device for authenticating application and operating method thereof
CN109964227B (en) Method and terminal for updating SELinux security policy
US20160232374A1 (en) Permission control method and apparatus
CN110457894B (en) root authority distribution method and device, storage medium and terminal equipment
CN112099979B (en) Access control method, device, computer equipment and storage medium
KR20200140555A (en) Electronic device for switching between a dual standby mode and a single standby mode and method for the same
EP4348931A1 (en) Transfer of ownership of a computing device via a security processor
CN108090345B (en) Linux system external command execution method and device
CN110851795B (en) File management method, device, equipment and readable storage medium
EP1422958B1 (en) Permission token management system, permission token management method, program and recording medium
CN101763271B (en) Method and device for loading classes and creating and accessing class objects
CN114489486B (en) Industry data long storage method, equipment and storage medium
EP1330096B1 (en) System and method for transmitting, storing and using data patterns in a mobile communications terminal
CN105144073A (en) Removable storage device identity and configuration information
CN117413267A (en) Firmware policy enforcement via secure processor
JP2007080054A (en) External-memory management device and external-memory control method
CN113890753A (en) Digital identity management method, device, system, computer equipment and storage medium
CN110753909B (en) Service scheduling method and device, computer equipment and computer readable storage medium
CN113760325A (en) Container environment updating method and device
CN112491956A (en) Method and device for upgrading communication module in Internet of things equipment and computer equipment
KR20210026233A (en) Electronic device for controlling access for device resource and operating method thereof
US20210049025A1 (en) Electronic apparatus and object sharing method thereof
CN107567627B (en) Device with test execution environment
CN110691095B (en) Data processing method, device and equipment based on data security room and storage medium
CN110442569B (en) Apparatus and method for data analysis in key value solid state device

Legal Events

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