CN115168921B - Lossless deletion management device suitable for multi-solid-state hard disk system - Google Patents

Lossless deletion management device suitable for multi-solid-state hard disk system Download PDF

Info

Publication number
CN115168921B
CN115168921B CN202211092542.7A CN202211092542A CN115168921B CN 115168921 B CN115168921 B CN 115168921B CN 202211092542 A CN202211092542 A CN 202211092542A CN 115168921 B CN115168921 B CN 115168921B
Authority
CN
China
Prior art keywords
deletion
signal
solid state
deleting
state disk
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
CN202211092542.7A
Other languages
Chinese (zh)
Other versions
CN115168921A (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.)
CETC 15 Research Institute
Original Assignee
CETC 15 Research Institute
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 CETC 15 Research Institute filed Critical CETC 15 Research Institute
Priority to CN202211092542.7A priority Critical patent/CN115168921B/en
Publication of CN115168921A publication Critical patent/CN115168921A/en
Application granted granted Critical
Publication of CN115168921B publication Critical patent/CN115168921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • G06F21/79Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in semiconductor storage media, e.g. directly-addressable memories
    • 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
    • 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/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Abstract

The application discloses a lossless deletion management device suitable for a multi-solid-state hard disk system, which comprises a deletion control module, wherein when a deletion signal is received, deletion log data containing a deletion sequence number are generated according to a deletion flag bit and deletion task generation time which are indicated by the deletion signal; storing the deleted log data to a log storage module; and filling the deletion result into a deletion result flag bit of the deleted log data stored in a log storage module so as to modify the deleted log data stored in the log storage module. According to the method and the device, effective management of data deletion operation of the solid state disks can be realized, and data deletion which cannot be executed due to power failure before power failure can be executed after the power failure of the solid state disk system occurs, so that data which need to be deleted from the solid state disks cannot be stored in the solid state disks continuously, and the risk of leakage of the data which need to be deleted is reduced.

Description

Lossless deletion management device suitable for multi-solid-state hard disk system
Technical Field
The application belongs to the field of data processing research, and particularly relates to a lossless deletion management device suitable for a multi-solid-state disk system.
Background
Data deletion is an indispensable technique in the computer field to prevent data leakage. The deletion technology of the solid state disk comprises two categories of logic deletion and physical destruction, wherein the logic deletion does not cause physical damage to hardware, and the solid state disk can be repeatedly utilized, so that the cost is reduced compared with the physical destruction. However, with the development of technology, the complexity of the solid state disk system is also increased, and the performance requirements of people on the solid state disk system are also increased, so that a multi-solid state disk system including a plurality of solid state disks is produced.
On one hand, the multi-solid-state disk system can be matched with the requirements of users to a certain extent, and on the other hand, the problem of difficult management exists because the number of the contained solid-state disks is not unique. For example, in the case of sudden power failure, the deletion operation originally directed at data in a certain solid state disk is not performed, and after the power is turned on, data that should be deleted originally is still stored in the solid state disk, thereby causing a risk of data leakage.
In view of the above problems, the present application provides a lossless deletion management device suitable for a multi-solid-state disk system, which improves the management effect on a plurality of solid-state disks in the multi-solid-state disk system.
Disclosure of Invention
In order to solve the defects of the prior art, the application provides a lossless deletion management device suitable for a multi-solid-state disk system, on one hand, effective management of data deletion operations of a plurality of solid-state disks in the multi-solid-state disk system can be realized, and the problem that the plurality of solid-state disks are difficult to manage is solved to a certain extent; on the other hand, even if the number of solid state disks included in the multi-solid state disk system is changed (increased or decreased), the implementation of the technical scheme in the application is not affected. In addition, according to the technical scheme, the data deletion which cannot be executed due to power failure before can be executed under the condition that power on is recovered in time after the power failure occurs to the multi-solid state disk system, so that the data which need to be deleted from the solid state disk cannot be stored in the solid state disk continuously, and the risk of leakage of the data which need to be deleted is reduced.
The technical effect that this application will reach is realized through following scheme:
in a first aspect, the present application provides a lossless deletion management apparatus for a multi-solid-state disk system, where the apparatus includes:
a deletion control module configured to: when a deleting signal is received, generating deleting log data containing a deleting serial number according to a deleting flag bit and deleting task generation time shown by the deleting signal; storing the deleted log data to a log storage module; then, filling the deletion result into a deletion result flag bit of the deleted log data stored in the log storage module so as to modify the deleted log data stored in the log storage module; the deleting control module deletes the data stored in the target solid state disk for which the deleting signal is directed; wherein the deleting flag bit comprises: deleting a flag bit and a deletion result flag bit, wherein the deletion flag bit is used for identifying a target solid state disk targeted by a deletion signal, and the deletion result flag bit is used for identifying a deletion result of data stored in the target solid state disk; the deletion sequence number is used for representing the sequence of the deletion signal;
the log storage module is configured to: storing the deleted log data generated by the deletion control module, and modifying the deleted log data stored by the deleted log data according to the signal of the deletion control module;
in addition, in the case of the present invention,
the deletion control module is further configured to: when the multi-solid-state hard disk system is detected to be powered on, sequentially reading deleted log data stored in the log storage module according to the sequence indicated by the deletion sequence number, and determining the deletion result indicated by the deletion result flag bit as undeleted deleted log data as target data; deleting data stored in the target solid state disk shown by the target data;
the device also comprises a solid state disk online state indicating module and a deleting state indicating module, wherein the deleting control module is respectively connected with the solid state disk, the solid state disk online state indicating module and the deleting state indicating module; the performing the deletion includes:
detecting the online state of the target solid state disk aimed at by the deleting signal:
if the target solid state disk is in an online state, controlling a solid state disk online state indicating module corresponding to the target solid state disk to generate an online state signal, and deleting data stored in the target solid state disk for which the deleting signal is directed;
judging whether the deletion is successfully executed; if the deletion is successful, controlling a deletion state indicating module corresponding to the target solid state disk to generate a deletion success signal; and if the deletion fails, controlling a deletion state indicating module corresponding to the target solid state disk to generate a deletion failure signal.
In an optional embodiment of the present application, the deletion log data is stored in a fixed address (0 × 00 to 0 × 01) of the log storage module, the character length of the deletion sequence number a is 16 bits, the character length of the deletion flag bit is 16 bits, and the character length of the deletion result flag bit is 16 bits;
the deletion control module is specifically configured to: when the multi-solid-state hard disk system is detected to be powered on, reading a deletion sequence number a of the last deleted log data from the deletion log data of the fixed addresses (0x00 to 0x01) of the log storage module, and determining that the address of the last deleted log data is 0x [8 (a-1) +2] - [ 0x [8 (a-1) +9]; and if the flag bit of the deletion result in the address 0x [8 (a-1) +2] -0 x [8 (a-1) +9] is not zero, deleting the data stored in the target solid state disk of 0x [8 (a-1) +2] -0 x [8 (a-1) +9].
In an optional embodiment of the present application, the apparatus further comprises a timer and a deletion control channel;
the deletion control module is specifically configured to: and when the deletion is executed, setting the timer, and pulling down the deletion control channel corresponding to the target solid state disk for 3.5 seconds to start the target solid state disk so that the target solid state disk is in an online state.
In an alternative embodiment of the present application,
the deletion control module is specifically configured to: when judging whether the deletion is successfully executed, setting the overflow time of the timer to be 1.2 times of the time required by the execution of the deletion, after finishing the deletion within the overflow time and returning a value to the deletion control module, resetting the deletion flag bit, after the interruption of the timer is triggered, entering a corresponding interruption service function, and filling the result of the execution of the deletion into the deletion result flag bit of the deleted log data stored in the log storage module by the function; judging whether the flag bit of the deletion result is nonzero, if so, deleting successfully; if not, the deletion fails.
In an alternative embodiment of the present application, the apparatus further comprises a control unit, the control unit comprising: the system comprises a clock, an interrupt, a GPIO (general purpose input/output) interface, an I2C (inter-integrated circuit) interface, a serial port, a network port and a timer;
the deletion control module is specifically configured to: and initializing the control component when the multi-solid-state hard disk system is detected to be powered on.
In an optional embodiment of the present application, the deleting signal includes a hard deleting signal, and the apparatus further includes a hard deleting signal generating module; the hard deleting signal generating module comprises a pull-up resistor, a trigger switch and a dial switch; the dial switch is connected with the deletion control module and the dial switch through the pull-up resistor, and one end of the trigger switch is grounded;
the hard delete signal generation module is configured to: controlling the trigger switch to be in a normally open state; when a hard deletion signal is generated, closing a dial switch corresponding to the target solid state disk, and adjusting the trigger switch to a closed state for a specified time to generate the hard deletion signal; wherein the specified duration is greater than 3 seconds.
In an optional embodiment of the present application, the deleting signal includes a soft deleting signal, and the apparatus further includes a soft deleting signal generating module; the soft deleting signal generating module is respectively connected with the upper computer and the deleting control module;
the soft deleting signal generating module comprises a serial port circuit, and the serial port circuit comprises: the level conversion chip is used for converting the TTL level into the UART level; and/or the presence of a gas in the gas,
the soft deleting signal generating module comprises a PHY chip, and the PHY chip is communicated with the deleting control module by adopting an RMII signal.
In an alternative embodiment of the present application,
a deletion control module further configured to: when a multi-solid-state disk system is detected to be powered on, determining the number of solid-state disks in the multi-solid-state disk system, and allocating 6 GPIO interfaces to each solid-state disk; allocating 1 GPIO interface for a deleting control signal for executing deleting, an online detection signal for detecting the online state of the solid state disk, a hard deleting signal and a soft deleting signal; and respectively allocating 1 GPIO interface for the deletion success signal and the deletion failure signal.
In an optional embodiment of the present application, the deletion control module further includes an interface extension unit, where the interface extension unit is configured to extend a GPIO interface.
In a second aspect, the present application provides a multi-solid state disk system, wherein the system includes:
the lossless deletion management means according to any one of the first aspect; and the solid state disks are respectively connected with the lossless deletion management device.
Drawings
In order to more clearly illustrate the embodiments or prior art solutions of the present application, the drawings needed for describing the embodiments or prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and that other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a flowchart of a lossless deletion management apparatus for a multi-solid-state drive system according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following embodiments and accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings. Wherein like elements in different embodiments have been given like element numbers associated therewith. In the following description, numerous details are set forth in order to provide a better understanding of the present application. However, those skilled in the art will readily recognize that some of the features may be omitted or replaced with other elements, materials, methods in different instances. In some instances, certain operations related to the present application have not been shown or described in detail in order to avoid obscuring the core of the present application from excessive description, and it is not necessary for those skilled in the art to describe these operations in detail, so that they may be fully understood from the description in the specification and the general knowledge in the art.
Furthermore, the described features, operations, or characteristics may be combined in any suitable manner to form various embodiments. Also, the various steps or actions in the method descriptions may be transposed or transposed in order, as will be apparent to one of ordinary skill in the art. Thus, the various sequences in the specification and drawings are for the purpose of describing certain embodiments only and are not intended to imply a required sequence unless otherwise indicated where such sequence must be followed.
The numbering of the components as such, e.g., "first", "second", etc., is used herein only to distinguish the objects as described, and does not have any sequential or technical meaning. The term "connected" and "coupled" as used herein includes both direct and indirect connections (couplings), unless otherwise specified.
In a complex computer architecture, there are multiple compute blades (motherboards) and storage blades, and each blade has different requirements for data security due to different factors such as its application environment.
The current mainstream data deletion technology has the following problems: in a complex system comprising a plurality of solid state disks, unified management cannot be performed according to different deletion requirements; and unexpected power failure occurs in the deletion process, the deletion work is terminated, and the hidden danger of data leakage exists.
Various non-limiting embodiments of the present application are described in detail below with reference to the attached drawing figures.
The application provides a lossless deletion management device suitable for a multi-solid-state hard disk system, exemplarily, the structure of the device is as shown in fig. 1, and the lossless deletion management device suitable for the multi-solid-state hard disk system comprises a deletion control module and the log storage module. In an optional embodiment of the present application, the deletion control module may be an MCU, and the log storage module may be an EEPROM. The EEPROM is communicated with the deletion control module through an I2C bus.
The lossless deletion management device applicable to the multi-solid-state hard disk system at least comprises: when the multi-solid state disk system is in a power-on state and a deleting signal is received, deleting data in the solid state disk to which the deleting signal aims; and when the solid state disk system is powered on again after being powered off, deleting the data in the solid state disk for which the deleting signal aims according to the historically received deleting signal. Therefore, according to the technical scheme, even if unexpected power failure occurs, when the multi-solid-state disk system is powered on again, the data which are stored in the solid-state disk and should be deleted originally can be deleted effectively. The data leakage caused by the deleted data can be effectively avoided.
Specifically, the method comprises the following steps:
when the multi-solid-state hard disk system is in a power-on state (power failure does not occur), the lossless deletion management device performs deletion:
the deletion control module executes: when a deleting signal is received, generating deleting log data containing a deleting serial number according to a deleting flag bit and deleting task generation time shown by the deleting signal; and storing the deleted log data to a log storage module. The log storage module performs: and storing the deleting log data generated by the deleting control module.
Thereafter, the deletion control module performs: and the deleting control module deletes the data stored in the target solid state disk for which the deleting signal is directed. And filling the deletion result into a deletion result flag bit of the deletion log data stored in the log storage module so as to modify the deletion log data stored in the log storage module. The log storage module executes: and modifying the deletion log data stored in the deletion control module according to the signal of the deletion control module.
Wherein the deleting flag bit comprises: the method comprises the steps of deleting a flag bit and a deletion result flag bit, wherein the deletion flag bit is used for identifying a target solid state disk for which a deletion signal is specific (in the present application, a solid state disk in which data for which the deletion signal is specific is stored in a plurality of solid state disks of a multi-solid state disk system is referred to as a target solid state disk), and the deletion result flag bit is used for identifying a deletion result for the data stored in the target solid state disk; the deletion sequence number is used to indicate the order of the deletion signal.
Hereinafter, the technical solution in the present application will be described by taking an example in which a system includes 16 solid state disks. The sequence number indicates the x-th erasure, which is 16 bits in length. The character length of the deleting flag bit should not be less than 2 times of the number of the managed hard disks.
Optionally, the deleted log data is stored in a fixed address (0 x00 to 0 x01) of the log storage module, the character length of the deletion sequence number a is 16 bits, the character length of the deletion flag bit is 16 bits, and the character length of the deletion result flag bit is 16 bits.
In an optional embodiment of the present application, after the deletion control module stores the deletion log data in the log storage module, the deletion log data stored in the log storage module is read. If a deletion sequence number a of the last deleted log data is read from the deleted log data of the fixed addresses (0x00 to 0x01) of the log storage module, determining that the address of the last deleted log data is 0x [8 (a-1) +2] ~0x [8 (a-1) +9]; and if the flag bit of the deletion result in the address 0x [8 (a-1) +2] -0 x [8 (a-1) +9] is not zero, deleting the data stored in the target solid state disk of 0x [8 (a-1) +2] -0 x [8 (a-1) +9].
In another optional embodiment of the present application, the deletion control module performs deletion on data in the target solid state disk while storing the deletion log data in the log storage module, instead of performing deletion based on the data stored in the log storage module.
Secondly, when the multi-solid state disk system is powered on again (power failure occurs once), the lossless deletion management device in the application executes deletion:
the deletion control module executes: when the multi-solid-state hard disk system is detected to be powered on, sequentially reading deleted log data stored in the log storage module according to the sequence indicated by the deletion sequence number, and determining the deletion result indicated by the deletion result flag bit as undeleted deleted log data as target data; and deleting the data stored in the target solid state disk shown by the target data. After the deletion is executed, the deletion control module further executes the result of the deletion to be executed, and fills the deletion result flag bit of the deletion log data stored in the log storage module so as to modify the deletion log data stored in the log storage module.
Specifically, when detecting that the multi-solid-state hard disk system is powered on, the deletion control module reads a deletion sequence a of the last deleted log data from the deletion log data of the fixed addresses (0x00 to 0x01) of the log storage module, and determines that the address of the last deleted log data is 0x [8 (a-1) +2] - [ 0x [8 (a-1) +9]; and if the flag bit of the deletion result in the address 0x [8 (a-1) +2] -0 x [8 (a-1) +9] is not zero, deleting the data stored in the target solid state disk of 0x [8 (a-1) +2] -0 x [8 (a-1) +9].
Therefore, on one hand, the lossless deletion management device suitable for the multi-solid-state disk system can effectively manage data deletion operations of the plurality of solid-state disks in the multi-solid-state disk system, and solves the problem that the plurality of solid-state disks are difficult to manage to a certain extent; on the other hand, even if the number of the solid state disks included in the multi-solid state disk system is changed (increased or decreased), the implementation of the technical scheme in the application is not affected. In addition, according to the technical scheme, the data deletion which cannot be executed due to power failure before can be executed under the condition that power on is recovered in time after the power failure occurs to the multi-solid state disk system, so that the data which need to be deleted from the solid state disk cannot be stored in the solid state disk continuously, and the risk of leakage of the data which need to be deleted is reduced. The methods of the present application are applicable to data processing systems or methods for administrative, business, financial, administrative, supervisory or forecasting purposes; data processing systems or methods specifically adapted for administrative, commercial, financial, administrative, supervisory or prognostic purposes, not otherwise provided for.
In addition, through the technical scheme in the application, dozens of solid state disks can be managed simultaneously, and the specific number of the solid state disks is positively correlated with the processing capacity of the deletion control module. Whether to delete can be set separately for different solid state disks. The data deleting operation of all solid state disks in the system can be started by one key. The invention provides a lossless deletion method suitable for a multi-solid-state disk system, which comprises two modes of hardware control and software control, wherein each solid-state disk can be independently set whether to execute deletion, a log storage module can record the deletion information of the previous time, a state indication module can identify the online state and the deletion execution condition of the solid-state disk in real time, and deletion failure caused by accidental power failure can automatically recover the deletion operation after power on. The invention has flexible composition, easy transplantation and high reliability, and can be widely applied to the field of data security.
In an optional embodiment of the present application, the lossless deletion management apparatus further has a function of displaying information.
Specifically, the device further comprises a solid state disk online state indicating module and a deletion state indicating module, wherein the deletion control module is respectively connected with the solid state disk, the solid state disk online state indicating module and the deletion state indicating module. The deletion control module executes, when executing deletion: and detecting the online state of the target solid state disk aimed at by the deleting signal. And if the target solid state disk is in an online state, controlling a solid state disk online state indicating module corresponding to the target solid state disk to generate an online state signal, and deleting data stored in the target solid state disk for which the deleting signal is directed.
Further optionally, the apparatus in this application further includes a timer and a deletion control channel. When the deletion control module executes deletion, the following steps are executed: and setting the timer, and pulling down the deletion control channel corresponding to the target solid state disk for 3.5 seconds to start the target solid state disk so that the target solid state disk is in an online state. The solid state disk online indicating circuit (forming a solid state disk online state indicating module) comprises 16 indicating lamps (green), the positive pole of the solid state disk online indicating circuit is connected with 3.3V, and the negative pole of the solid state disk online indicating circuit is connected with the deletion control module. The deletion state indicating circuit (forming a deletion state indicating module) comprises 16 double-color (red and green) indicating lamps, the positive electrode of the deletion state indicating circuit is connected with 3.3V, and the negative electrode of the deletion state indicating circuit is connected with the control core.
The deletion signal interruption service function firstly analyzes the deletion signal to obtain a pre-deletion flag bit, then writes the time information and the pre-deletion flag bit into an EEPROM according to the format of a deletion log, and sets the deletion sequence number as a, and the write address is 0x [8a +4] ~0x [8a +9].
Thereafter, the deletion control module performs: judging whether the deletion is successfully executed; if the deletion is successful, controlling a deletion state indicating module corresponding to the target solid state disk to generate a deletion success signal; and if the deletion fails, controlling a deletion state indicating module corresponding to the target solid state disk to generate a deletion failure signal.
Specifically, the deletion control module performs: when judging whether the deletion is successfully executed, setting the overflow time of the timer to be 1.2 times of the time required by the execution of the deletion, after finishing the deletion within the overflow time and returning a value to the deletion control module, resetting the deletion flag bit, triggering the interruption of the timer to enter a corresponding interruption service function, and filling the result 1 of the execution of the deletion into the deletion result flag bit of the deleted log data stored in the log storage module by the function; judging whether the flag bit of the deletion result is nonzero, if so, deleting successfully; if not, the deletion fails.
If the target solid state disk is not in an online state, in a specified time period, a result 0 of deletion indicates that deletion is not performed or is completed, and 1 indicates that deletion and deletion are failed, for example, 0x7FFF0000 indicates that all solid state disks except the solid state disk numbered 16 perform deletion, and the deletion result is that all solid state disks are successful. The generation time of the deletion task is composed of year, month, day, hour, minute and second, 32 bits of data are needed in total, 64 bits of data are counted by adding a deletion flag bit (32), the time information is in front (high bit), and the deletion flag bit is in back (low bit). A fixed address field is selected from the EEPROM to store the deletion sequence number, and in this example, a data field (8-bit EEPROM) with addresses of 0x00 to 0x01 is selected. The deletion log is stored from the address 0x02, and 16383 deletion logs can be stored in an EEPROM of 1Mb capacity, for example.
And (presetting time length) detecting the online state of the target solid state disk again.
In a further optional embodiment of the present application, the lossless deletion management apparatus further comprises a control unit, and the control unit comprises: clock, interrupt, GPIO interface, I2C interface, serial port, network port and timer. And when detecting that the multi-solid-state hard disk system is powered on, the deletion control module initializes the control component.
In an alternative embodiment of the present application, the lossless deletion management apparatus may perform management of the multi-solid-state hard disk system based on the soft deletion signal and the hard deletion signal.
Specifically, the deleting signal comprises a hard deleting signal, and the apparatus further comprises a hard deleting signal generating module; the hard deleting signal generating module comprises a pull-up resistor, a trigger switch and a dial switch; the dial switch is connected with the deletion control module and connected with the dial switch through the pull-up resistor, and one end of the trigger switch is grounded. A hard delete signal generation module configured to: controlling the trigger switch to be in a normally open state; when a hard deletion signal is generated, closing a dial switch corresponding to the target solid state disk, adjusting the trigger switch to a closed state, and keeping the closed state for a specified time to generate a hard deletion signal; wherein the specified duration is greater than 3 seconds.
The deleting signal comprises a soft deleting signal, and the device also comprises a soft deleting signal generating module; the soft deleting signal generating module is connected with the upper computer and the deleting control module respectively.
The soft deletion signal generation module comprises a serial port circuit, and the serial port circuit comprises: the level conversion chip is used for converting the TTL level into the UART level;
the soft deleting signal generating module comprises a PHY chip, and the PHY chip is communicated with the deleting control module by adopting an RMII signal.
Therefore, the technical scheme in the application can realize the compatibility of soft deletion and hard deletion, and the two modes can be simultaneously selected or alternatively selected, thereby solving the technical problem that the soft deletion and the hard deletion in the prior art are difficult to be compatible.
Further optionally, the deletion control module is further configured to: when a multi-solid-state disk system is detected to be powered on, determining the number of solid-state disks in the multi-solid-state disk system, and allocating 6 GPIO interfaces to each solid-state disk; allocating 1 GPIO interface for a deletion control signal for executing deletion, an online detection signal for detecting the online state of the solid state disk, a hard deletion signal and a soft deletion signal respectively; and respectively allocating 1 GPIO interface for the deletion success signal and the deletion failure signal. The deletion control module further comprises an interface extension unit, and the interface extension unit is used for extending the GPIO interface.
In addition, the system in the application further comprises a solid state disk online detection channel, the solid state disk online detection channel is connected with the deletion control module and the solid state disk, the solid state disk is pulled up through a resistor, the solid state disk is pulled down through an internal circuit of the solid state disk after being installed, and the deletion control module judges whether the solid state disk is online or not through detecting the pull-up and pull-down state of the signal.
And the solid state disk deleting control channel is connected with the deleting control module and the solid state disk, and the solid state disk executes deleting operation after the signal is pulled down by the deleting control module for more than 3 seconds through resistance pull-up.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 2, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other by an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 2, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program, and a lossless deletion management device suitable for the multi-solid-state hard disk system is formed on the logic level. And the processor is used for executing the program stored in the memory and is particularly used for executing any one of the lossless deletion management devices suitable for the multi-solid-state hard disk system.
The lossless deletion management apparatus for a multi-solid-state disk system according to the embodiment shown in fig. 1 of the present application may be applied to or implemented by a processor (i.e., a deletion control module in the present application). The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, etc. as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and combines hardware thereof to complete the steps of the method.
The electronic device may further execute the lossless deletion management apparatus applicable to the multi-solid-state drive system in fig. 1, and implement the functions of the embodiment shown in fig. 1, which are not described herein again.
The embodiment of the present application also provides a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which, when executed by an electronic device including a plurality of application programs, can cause the electronic device to perform the method performed by the lossless deletion management apparatus for a multi-solid-state hard disk system in the embodiment shown in fig. 1, and in particular to perform any one of the foregoing lossless deletion management apparatuses for a multi-solid-state hard disk system.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A lossless deletion management apparatus for a multi-solid state disk system, the apparatus comprising:
a deletion control module configured to: when a deleting signal is received, generating deleting log data containing a deleting serial number according to a deleting flag bit and deleting task generation time shown by the deleting signal; storing the deleted log data to a log storage module; then, filling the deletion result into a deletion result flag bit of the deleted log data stored in the log storage module so as to modify the deleted log data stored in the log storage module; the deleting control module deletes the data stored in the target solid state disk for which the deleting signal is directed; wherein, the deleting flag bit comprises: deleting a flag bit and a deletion result flag bit, wherein the deletion flag bit is used for identifying a target solid state disk targeted by a deletion signal, and the deletion result flag bit is used for identifying a deletion result of data stored in the target solid state disk; the deletion sequence number is used for representing the sequence of the deletion signal;
the log storage module is configured to: storing the deleted log data generated by the deletion control module, and modifying the deleted log data stored by the deleted log data according to the signal of the deletion control module;
in addition to this, the present invention is,
the deletion control module is further configured to: when the multi-solid-state hard disk system is detected to be powered on, sequentially reading deleted log data stored in the log storage module according to the sequence indicated by the deletion sequence number, and determining the deletion result indicated by the deletion result flag bit as undeleted deleted log data as target data; deleting data stored in the target solid state disk shown by the target data;
the device also comprises a solid state disk online state indicating module and a deleting state indicating module, wherein the deleting control module is respectively connected with the solid state disk, the solid state disk online state indicating module and the deleting state indicating module; the performing deletion includes:
detecting the online state of a target solid state disk aimed at by the deleting signal:
if the target solid state disk is in an online state, controlling a solid state disk online state indicating module corresponding to the target solid state disk to generate an online state signal, and deleting data stored in the target solid state disk for which the deleting signal is directed;
judging whether the deletion is successfully executed; if the deletion is successful, controlling a deletion state indicating module corresponding to the target solid state disk to generate a deletion success signal; and if the deletion fails, controlling a deletion state indicating module corresponding to the target solid state disk to generate a deletion failure signal.
2. The lossless deletion management apparatus for multiple solid-state disk systems according to claim 1, wherein the deletion log data is stored in fixed addresses 0x00 to 0x01 of the log storage module, a character length of a deletion sequence number a is 16 bits, a character length of a deletion flag bit is 16 bits, and a character length of a deletion result flag bit is 16 bits;
the deletion control module is specifically configured to: when the multi-solid-state hard disk system is detected to be powered on, reading a deletion sequence number a of the last deleted log data from the deleted log data with fixed addresses ranging from 0x00 to 0x01 of the log storage module, and determining that the address of the last deleted log data is 0x [8 (a-1) +2] - [ 0x [8 (a-1) +9]; and if the flag bit of the deletion result in the address 0x [8 (a-1) +2] -0 x [8 (a-1) +9] is not zero, deleting the data stored in the target solid state disk of 0x [8 (a-1) +2] -0 x [8 (a-1) +9].
3. The apparatus for lossless erasure management of multiple solid state disk systems according to claim 1, wherein the apparatus further comprises a timer and an erasure control channel;
the deletion control module is specifically configured to: and when the deletion is executed, setting the timer, and pulling down the deletion control channel corresponding to the target solid state disk for 3.5 seconds to start the target solid state disk so that the target solid state disk is in an online state.
4. The apparatus for lossless deletion management for multiple solid state disk systems according to claim 3,
the deletion control module is specifically configured to: when judging whether the deletion is successfully executed, setting the overflow time of the timer to be 1.2 times of the time required by the execution of the deletion, after finishing the deletion within the overflow time and returning a value to the deletion control module, resetting the deletion flag bit, after the interruption of the timer is triggered, entering a corresponding interruption service function, and filling the result of the execution of the deletion into the deletion result flag bit of the deleted log data stored in the log storage module by the function; judging whether the flag bit of the deletion result is nonzero, if so, deleting successfully; if not, the deletion fails.
5. The apparatus for lossless deletion management for multiple solid state disk systems according to claim 1, wherein the apparatus further comprises a control means, the control means comprising: the system comprises a clock, an interrupt, a GPIO (general purpose input/output) interface, an I2C (inter-integrated circuit) interface, a serial port, a network port and a timer;
the deletion control module is specifically configured to: and initializing the control component when the multi-solid-state hard disk system is detected to be powered on.
6. The apparatus of claim 1, wherein the delete signal comprises a hard delete signal, the apparatus further comprising a hard delete signal generation module; the hard deleting signal generating module comprises a pull-up resistor, a trigger switch and a dial switch; the dial switch is connected with the deletion control module and is connected with the dial switch through the pull-up resistor, and one end of the trigger switch is grounded;
the hard delete signal generation module is configured to: controlling the trigger switch to be in a normally open state; when a hard deletion signal is generated, closing a dial switch corresponding to the target solid state disk, adjusting the trigger switch to a closed state, and keeping the closed state for a specified time to generate a hard deletion signal; wherein the specified duration is greater than 3 seconds.
7. The apparatus of claim 1, wherein the erasure signal comprises a soft erasure signal, the apparatus further comprising a soft erasure signal generating module; the soft deleting signal generating module is respectively connected with the upper computer and the deleting control module;
the soft deleting signal generating module comprises a serial port circuit, and the serial port circuit comprises: the level conversion chip is used for converting the TTL level into the UART level; and/or the presence of a gas in the gas,
the soft deletion signal generation module comprises a PHY chip, and the PHY chip is communicated with the deletion control module by adopting an RMII signal.
8. The apparatus of claim 5, wherein the apparatus further comprises a controller,
a deletion control module further configured to: when a multi-solid-state disk system is detected to be powered on, determining the number of solid-state disks in the multi-solid-state disk system, and allocating 6 GPIO interfaces to each solid-state disk; allocating a GPIO interface for each of a deletion control signal for executing deletion, an online detection signal for detecting the online state of the solid state disk, a hard deletion signal and a soft deletion signal; and allocating a GPIO interface for each of the deletion success signal and the deletion failure signal.
9. The apparatus of claim 8, wherein the deletion control module further comprises an interface extension unit, and the interface extension unit is configured to extend a GPIO interface.
10. A multi-solid state disk system, the system comprising:
the device as claimed in any one of claims 1 to 9, wherein the device is suitable for a multi-solid-state hard disk system; and the solid state disks are respectively connected with the lossless deletion management device.
CN202211092542.7A 2022-09-08 2022-09-08 Lossless deletion management device suitable for multi-solid-state hard disk system Active CN115168921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211092542.7A CN115168921B (en) 2022-09-08 2022-09-08 Lossless deletion management device suitable for multi-solid-state hard disk system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211092542.7A CN115168921B (en) 2022-09-08 2022-09-08 Lossless deletion management device suitable for multi-solid-state hard disk system

Publications (2)

Publication Number Publication Date
CN115168921A CN115168921A (en) 2022-10-11
CN115168921B true CN115168921B (en) 2022-11-18

Family

ID=83480462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211092542.7A Active CN115168921B (en) 2022-09-08 2022-09-08 Lossless deletion management device suitable for multi-solid-state hard disk system

Country Status (1)

Country Link
CN (1) CN115168921B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180206A (en) * 2016-03-11 2017-09-19 中国电子科技集团公司电子科学研究院 A kind of solid state hard disk secure control method and device based on CDMA
CN108170562A (en) * 2018-01-12 2018-06-15 深圳大普微电子科技有限公司 A kind of solid state disk and its data processing method and system
CN109634873A (en) * 2018-12-10 2019-04-16 浪潮(北京)电子信息产业有限公司 Solid-state disk host system log information method, apparatus, equipment and medium
CN109997144A (en) * 2017-01-31 2019-07-09 净睿存储股份有限公司 Separated encryption for solid state drive

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10210168B2 (en) * 2015-02-23 2019-02-19 International Business Machines Corporation Managing data in storage according to a log structure

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180206A (en) * 2016-03-11 2017-09-19 中国电子科技集团公司电子科学研究院 A kind of solid state hard disk secure control method and device based on CDMA
CN109997144A (en) * 2017-01-31 2019-07-09 净睿存储股份有限公司 Separated encryption for solid state drive
CN108170562A (en) * 2018-01-12 2018-06-15 深圳大普微电子科技有限公司 A kind of solid state disk and its data processing method and system
CN109634873A (en) * 2018-12-10 2019-04-16 浪潮(北京)电子信息产业有限公司 Solid-state disk host system log information method, apparatus, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于持久性内存和SSD的后端存储MixStore;屠要峰,陈正华,韩银俊,陈兵,关东海;《计算机研究与发展》;20210309;第58卷(第2期);第1-12页 *

Also Published As

Publication number Publication date
CN115168921A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
CN107193750A (en) A kind of script method for recording and device
CN102135927B (en) Method and device for system booting based on NAND FLASH
CN107957906A (en) Application management method, computer installation, the computer-readable recording medium of terminal device
US9983987B2 (en) Method, apparatus, and device for locating a software failure
CN110795400B (en) File management method, device, equipment and medium
CN110851535B (en) Data processing method and device based on block chain, storage medium and terminal
CN109726821B (en) Data equalization method and device, computer readable storage medium and electronic equipment
CN106227625A (en) The restoration methods of a kind of flash data damaged because of power down and system
CN107015878A (en) For system for computer restorative procedure and system
JP2019096281A (en) Data storage device and associated operating method
CN109783005A (en) Control method, memory storage and its controller and electronic device of memory storage
US20140281736A1 (en) Self-diagnosing method of a volatile memory device and an electronic device performing the same
CN115168921B (en) Lossless deletion management device suitable for multi-solid-state hard disk system
CN107204206A (en) A kind of electrical fuse programming method, terminal and computer-readable recording medium
CN106681893B (en) A kind of implementation method of NAND FLASH simulator
CN109271009A (en) A kind of method, apparatus that control server backboard powers on and CPLD
US10275299B2 (en) Efficient transfer of data from CPU to onboard management device
CN109254820B (en) Window closing method, device, terminal and computer readable storage medium
CN101320389A (en) File management method and apparatus
CN105912431A (en) Reboot testing method of server, server, control device and system
CN114816269A (en) Method, device, system, server and medium for erasing server data
CN114300026A (en) Monotonic counter, counting method, electronic device and storage medium
CN113655958A (en) Application data storage method
CN114328280A (en) Log access method and device based on Flash, storage medium and terminal
TW201426544A (en) Electronic system and boot management method

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