Information processing apparatus, method for controlling information processing apparatus, and program
By isolating mapped and unmapped area operations with a Write Protect command before Sanitize, the Purge-level erasure in nonvolatile memory devices is expedited, addressing the inefficiency of existing methods.
Patent Information
- Application Number
- JP2023080811
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2024-11-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing nonvolatile memory devices require Purge-level erasure, which involves erasing all data stored in both mapped and unmapped areas, taking extra time due to unnecessary access to mapped areas during Sanitize commands.
A method that issues a Write Protect command to mapped areas before executing a Sanitize command to erase unmapped areas, thereby preventing access to already erased mapped areas, thus optimizing the Purge-level erasure process.
This approach significantly reduces the time required for Purge-level erasure by isolating mapped and unmapped area operations, ensuring efficient data deletion.
Smart Images

Figure 2024165010000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, a control method for an information processing device, and a program. [Background technology]
[0002] In recent years, non-volatile memory devices such as eMMC, UFS, and SSD are used as storage devices along with the miniaturization and increased capacity of NAND flash memory. In information processing devices such as PCs and MFPs, for example, eMMC is used as a small-capacity storage device at boot time, and SSD is used as a large-capacity storage device.
[0003] The nonvolatile memory device has a feature that data cannot be overwritten in the storage area, so that if data continues to be written, unnecessary data remains in the storage area, resulting in a decrease in write performance. The unnecessary data is data that has been deleted in a file system that manages data stored in the nonvolatile memory device, but is actual data that remains in the storage area of the nonvolatile memory device. In order to prevent a decrease in write performance caused by such remaining unnecessary data, a Trim command is used (see, for example, Patent Document 1).
[0004] The Trim command is a command issued from a host such as an operating system to the nonvolatile memory device. The nonvolatile memory device that receives the Trim command initializes the block by draining the charge of a block including a cell that stores unnecessary data among a plurality of cells that constitute the nonvolatile memory device and charging all cells included in the block. By initializing the block in this manner, unnecessary data remaining in the storage area of the nonvolatile memory device is erased. The data to be erased by the Trim command is data stored in a map area that can be specified by the host.
[0005] Furthermore, in the nonvolatile memory device, bad block management is performed in which blocks unsuitable for storing data (bad blocks) are detected and marked, and surplus blocks secured in an unmapped area that cannot be specified by the host are replaced with the bad blocks. By performing bad block management, it is possible to prevent data from being written to bad blocks. A Sanitize command is used to erase data in the unmapped area. The Sanitize command is also a command issued from the host to the nonvolatile memory device, similar to the Trim command. Upon receiving the Sanitize command, the nonvolatile memory device erases the data stored in the unmapped area, and further organizes the mapped area. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2020-095388 A Summary of the Invention [Problem to be solved by the invention]
[0007] Incidentally, in the non-volatile memory device, a Purge level erase may be required as a data erasure requirement when the device is disposed of. In the Purge level erase, it is necessary to make the data unrecoverable even by using a laboratory level restoration tool (software / hardware), and it is necessary to erase all data stored in the mapped area and the unmapped area. For this reason, when performing a Purge level erase in the non-volatile memory device, it is necessary to issue a Trim command to erase data stored in the mapped area and a Sanitize command to erase data stored in the unmapped area to the non-volatile memory device. However, since the non-volatile memory device that has received the Sanitize command accesses not only the unmapped area but also the mapped area to be erased by the Trim command, it takes extra time to perform the Purge level erase.
[0008] An object of the present invention is to provide an information processing device, a control method for the information processing device, and a program that can reduce the time required for erasing the Purge level. [Means for solving the problem]
[0009] In order to achieve the above-mentioned object, the information processing device of the present invention comprises a control means for issuing commands, and a non-volatile memory device having a storage area including a mapped area that can be designated by the control means and an unmapped area that cannot be designated by the control means, and the non-volatile memory device is characterized in that after completing a first erase process of erasing data stored in the mapped area in accordance with a first erase command issued from the control means, it write-protects the mapped area in accordance with a write protect command issued from the control means, and after write-protecting the mapped area, it executes a second erase process of erasing data stored in the unmapped area in accordance with a second erase command different from the first erase command and issued from the control means. Effect of the Invention
[0010] According to the present invention, the time required for erasing the Purge level can be reduced. [Brief description of the drawings]
[0011] [Figure 1] 1 is a diagram illustrating a hardware configuration of an image forming apparatus as an information processing apparatus according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram for explaining the configuration of a storage area of the non-volatile memory unit of FIG. [Diagram 3] 2 is a block diagram illustrating a schematic configuration of a software module of the image forming apparatus of FIG. 1. [Figure 4] 4 is a flowchart showing the procedure of a data erasure control process executed by the image forming apparatus of FIG. 1. [Diagram 5] FIG. 5 is a diagram for explaining the process of S414 in FIG. [Figure 6] 10 is a flowchart showing another procedure of the control process executed by the CPU of FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. However, the configurations described in the following embodiments are merely examples, and the scope of the present invention is not limited to the configurations described in the embodiments.
[0013] 1 is a diagram showing a schematic hardware configuration of an image forming apparatus 100 as an information processing apparatus according to the present embodiment. In FIG. 1, the image forming apparatus 100 includes a CPU 101, a RAM 102, a display unit I / F 103, a display unit 104, an operation unit I / F 105, an operation unit 106, an external I / F 107, and an RTC 108. The image forming apparatus 100 further includes a scan I / F 109, a scan unit 110, a printer I / F 111, a printing unit 112, a memory host I / F 113, and an eMMC 114. Note that eMMC stands for embedded Multi Media Card. The CPU 101, the RAM 102, the display unit I / F 103, the operation unit I / F 105, the external I / F 107, the RTC 108, the scan I / F 109, the printer I / F 111, and the memory host I / F 113 are connected to each other via a system bus 121.
[0014] The CPU 101 is a central processing unit that controls the entire image forming apparatus 100. The RAM 102 is a system work memory for the operation of the CPU 101. The CPU 101 loads a program stored in the eMMC 114 into the RAM 102 and executes the program loaded into the RAM 102 to perform various types of control.
[0015] A display unit 104 is connected to the display unit I / F 103. The display unit I / F 103 is an interface that outputs a control signal to the display unit 104 under the control of the CPU 101. The display unit 104 is made up of a liquid crystal panel, an LED, etc., and conveys information to a user by displaying a screen and turning on, blinking, turning off, etc., based on a control signal received from the display unit I / F 103.
[0016] An operation unit 106 is connected to the operation unit I / F 105. The operation unit I / F 105 is an interface that outputs an electrical signal received from the operation unit 106 to the CPU 101. The operation unit 106 is made up of a touch panel, keys, etc., and outputs information indicating the content of an operation performed by a user on the operation unit 106 to the operation unit I / F 105 as an electrical signal.
[0017] The external I / F 107 inputs and outputs data to and from an external device via an interface such as a USB. The RTC 108 is a functional unit that keeps track of the current time and is installed to manage time. The RTC 108 is configured to be battery-powered so that it can operate even when the image forming apparatus 100 body is powered off.
[0018] A scanning unit 110 is connected to the scanning I / F 109. The scanning I / F 109 is an interface that controls the scanning unit 110. The scanning unit 110 reads an original placed on a platen or an original conveyed by an automatic document feeder (ADF) (not shown) and generates image data of the original. The generated image data is transmitted to the CPU 101 via the scanning I / F 109. The CPU 101 stores the received image data in the RAM 102 or eMMC 114, or transmits the image data to the printer I / F 111. A printing unit 112 is connected to the printer I / F 111. The printer I / F 111 is an interface that controls the printing unit 112. The printing unit 112 executes a printing process of the image data processed by the CPU 101.
[0019] The memory host I / F 113 is connected to the eMMC 114 via a bus 122. The memory host I / F 113 is an interface that inputs and outputs data to and from the eMMC 114 under the control of the CPU 101.
[0020] The eMMC 114 is a non-volatile memory device equipped with a memory controller, and has a storage area composed of a plurality of cells. In the present embodiment, the image forming apparatus 100 is described as being equipped with an eMMC as an example of a non-volatile memory device, but is not limited to this configuration. For example, the non-volatile memory device equipped in the image forming apparatus 100 may be another non-volatile memory device such as an SSD or UFS.
[0021] The eMMC 114 includes a memory I / F 115, a memory controller 116, and a memory unit 119. The memory I / F 115 is an interface that inputs and outputs data to and from the memory host I / F 113. The memory controller 116 is connected to the memory I / F 115 and the memory unit 119.
[0022] The memory controller 116 interprets various commands received via the memory I / F 115 and performs an operation according to the received command. Examples of the commands include a read command that instructs reading data, a write command that instructs writing data, and an erase command that instructs erasing data. Data is read, written, or erased from a cell at an address specified by these commands. When accessing data, the memory controller 116 uses a data management table 117 stored in its own internal memory (not shown) to link a logical address accessed under the control of the CPU 101 with a physical address where the data is actually stored. The memory controller 116 also uses the data management table 117 to manage a physical address where invalid data, the allocation of which has been changed by an erase command, is stored. The data management table 117 may be stored in the memory unit 119.
[0023] The memory unit 119 is a non-volatile storage area for recording data, and includes a non-volatile memory unit 120 composed of a plurality of cells. The memory unit 119 records data by determining whether or not a charge is held in a cell in the non-volatile memory unit 120 under the control of the memory controller 116. As shown in FIG. 2, the non-volatile memory unit 120 is composed of a user area 201 and a redundant area 202. The user area 201 is a mapped area that can be specified by a host such as the CPU 101, an operating system 305 in FIG. 3 described later, a memory driver 301, etc. The redundant area 202 is an unmapped area that cannot be specified by the host. The user area 201 stores a main program for operating the system, image data to be printed, etc. In this embodiment, which of the user area 201 and the redundant area 202 is to be used is controlled by the memory controller 116.
[0024] Fig. 3 is a block diagram showing a schematic configuration of software modules of the image forming apparatus 100 shown in Fig. 1. The image forming apparatus 100 includes the software modules shown in Fig. 3, specifically, a memory driver 301, a write protect unit 302, a lifespan determination unit 303, a threshold change unit 304, and an operating system 305.
[0025] The memory driver 301 controls when the CPU 101 controls the memory host I / F 113 to access various data in the eMMC 114 .
[0026] The write protector 302 protects data in an area of the storage area of the non-volatile memory unit 120 that corresponds to an address designated by the CPU 101 using the memory driver 301 .
[0027] The lifespan determination unit 303 requests the memory driver 301 to check the lifespan. Upon receiving the request, the memory driver 301 controls the memory host I / F 113 to issue a lifespan check command to the eMMC 114. Here, the cells of the non-volatile memory unit 120 deteriorate as data is repeatedly read, written, and erased. For this reason, in this embodiment, cells in the user area 201 that have reached the end of their lifespan (hereinafter, referred to as "defective cells") are not used, and cells in the redundant area 202 are used as substitutes for the defective cells. As information indicating the degree of deterioration of the cells in the user area 201, information on the number of rewrites and the number of surplus blocks is managed as lifespan information by the lifespan management unit 118. Upon receiving the lifespan check command, the eMMC 114 returns, as a response, an evaluation value of the lifespan based on the number of rewrites of the cells and an evaluation value of the lifespan based on the usage rate of the redundant area 202 as lifespan information.
[0028] In the eMMC 114, the number of rewrites of each cell is averaged by wear leveling. Therefore, the evaluation value of the life based on the number of rewrites of the cell is calculated based on the average value of the number of rewrites of each cell. In this embodiment, a value indicating the degree of rewrite (value indicating the progress of the number of rewrites) performed with respect to the number of rewrites (life rewrite number) treated as having reached the life in the image forming apparatus 100 is calculated as the evaluation value of the life based on the number of rewrites of the cell, expressed in 10% increments. In this embodiment, an arbitrary value is set as the life rewrite number based on the results of various evaluation indexes. Note that the increment width in the evaluation value of the life based on the number of rewrites of the cell is not limited to 10%, and the increment width may be, for example, 5% or 20%. In addition, the evaluation value of the life based on the number of rewrites of the cell may be, for example, the average value of the number of rewrites of each cell itself, or a value indicating the progress of the number of rewrites in multiple stages. Furthermore, when the average number of times each cell is rewritten reaches the lifetime rewrite count, the eMMC 114 returns a status indicating that the lifetime of the eMMC 114 has been reached. When this status is returned, the eMMC 114 will thereafter operate at an unguaranteed level of capability (performance).
[0029] The evaluation value of the lifespan based on the number of surplus blocks in the redundant area 202 indicates the ratio of the area in the redundant area 202 used as a substitute for a defective cell in the user area 201 in multiple stages. For example, when 80% of the redundant area 202 is used as a substitute for the defective cell, the evaluation value of the lifespan based on the number of surplus blocks in the redundant area 202 becomes "Warning status". When 100% of the redundant area 202 is used as a substitute for the defective cell, the evaluation value of the lifespan based on the number of surplus blocks in the redundant area 202 becomes "Urgent status". When the eMMC 114 becomes "Urgent status", data writing and erasing cannot be performed thereafter, and only reading is possible. The image forming apparatus 100 can grasp the remaining lifespan of the eMMC 114 based on the evaluation value of the lifespan based on the number of times the cells are rewritten and the evaluation value of the lifespan based on the number of surplus blocks in the redundant area 202.
[0030] The threshold change unit 304 issues a threshold change request to the memory driver 301 to change a predetermined threshold used to determine a lifespan, such as the number of lifespan rewrites. Upon receiving the threshold change request, the memory driver 301 controls the memory host I / F 113 to issue a threshold change command to the eMMC 114. Upon receiving the threshold change command, the eMMC 114 changes the predetermined threshold to a value indicated by the threshold change command.
[0031] The operating system 305 issues various commands via the memory driver 301 according to instructions from the CPU 101. For example, the operating system 305 issues a Trim command or a Sanitize command to the eMMC 114 via the memory driver 301. The Trim command is an erase command (first erase command) for erasing data stored in a mapped area that can be specified by a host such as the CPU 101, the operating system 305, the memory driver 301, etc. The Sanitize command is an erase command (second erase command) for erasing data stored in an unmapped area that cannot be specified by the host. Upon receiving the Sanitize command, the eMMC 114 erases the data stored in the unmapped area, and further accesses the mapped area to organize the mapped area.
[0032] Incidentally, in a non-volatile memory device such as the eMMC 114, a Purge level erase may be required as a data erasure requirement when the device is disposed of. In the Purge level erase, it is necessary to make the data unrecoverable even by using a laboratory-level restoration tool (software / hardware), and it is necessary to erase all data stored in the mapped area and the unmapped area. For this reason, when performing a Purge level erase in the eMMC 114, it is necessary to issue a Trim command to the eMMC 114 to erase the data stored in the mapped area, and further issue a Sanitize command to erase the data stored in the unmapped area. However, since the eMMC 114 that has received the Sanitize command accesses not only the unmapped area but also the mapped area that is the target of erasure by the Trim command, it takes extra time to perform the Purge level erase.
[0033] In contrast, in this embodiment, when erasing at the Purge level in the eMMC 114, the data erasure control process of FIG.
[0034] Fig. 4 is a flowchart showing the procedure of a data erasure control process executed by the image forming apparatus 100 in Fig. 1. This data erasure control process is executed by the CPU 101 and the memory controller 116 of the eMMC 114.
[0035] First, the processing by CPU 101 will be described. Fig. 4(a) shows the procedure of the control processing executed by CPU 101. The control processing in Fig. 4(a) is realized by CPU 101 executing a program stored in RAM 102. The control processing in Fig. 4(a) is started when image forming apparatus 100 receives an instruction from a user to execute data erasure at the Purge level.
[0036] In Fig. 4(a), first, CPU 101 starts preparation for data erasure (S (step) 401). Next, CPU 101 controls operating system 305 to issue a Trim command to eMMC 114 via memory driver 301 (S402). Thereafter, when CPU 101 receives a completion notification of the Trim command sent from eMMC 114 (S403), the control process in Fig. 4(a) proceeds to S404.
[0037] In S404, the CPU 101 determines whether or not the eMMC 114 is a device that accesses the map area according to the Sanitize command. For example, the CPU 101 obtains capability information of the eMMC 114 from the eMMC 114, and performs the determination in S404 based on the capability information. The capability information includes information indicating whether or not the eMMC 114 is a device that accesses the map area according to the Sanitize command. If it is determined in S404 that the eMMC 114 is not a device that accesses the map area according to the Sanitize command, the control process in FIG. 4(a) proceeds to S406, which will be described later. If it is determined in S404 that the eMMC 114 is a device that accesses the map area according to the Sanitize command, the control process in FIG. 4(a) proceeds to S405.
[0038] In S405, the CPU 101 controls the operating system 305 to issue a Write Protect command to the eMMC 114 via the memory driver 301 in order to restrict access to the map area.
[0039] Next, CPU 101 controls operating system 305 to issue a Sanitize command to eMMC 114 via memory driver 301 (S406). Thereafter, when CPU 101 receives a completion notification of the Sanitize command sent from eMMC 114 (S407), the control process in FIG. 4A proceeds to S408.
[0040] In S408, if the CPU 101 issued a Write Protect command in S405, the CPU 101 controls the operating system 305 to issue a Write Protect release command to the eMMC 114 via the memory driver 301. Then, the control process in FIG. 4A ends.
[0041] Next, a description will be given of the processing by the eMMC 114. Fig. 4(b) shows the procedure of the erasure processing executed by the eMMC 114. The erasure processing in Fig. 4(b) is realized by the memory controller 116 of the eMMC 114 executing a program stored in its own internal memory (not shown) or the like.
[0042] 4B, when the memory controller 116 receives the Trim command issued in S402 via the memory I / F 115 (S411), it executes the Trim command (S412). As a result, in the eMMC 114, the map area of the non-volatile memory unit 120 is drained of electric charge, and all cells included in the map area are charged, thereby initializing the map area. By initializing the map area in this manner, all data stored in the user area 201, which is the map area, is erased. Upon completing the initialization of the map area, the memory controller 116 transmits a completion notification of the Trim command to the CPU 101 via the memory I / F 115.
[0043] Next, the memory controller 116 judges whether or not a Write Protect command has been received. For example, if it is judged that a Write Protect command has not been received, the erase process of FIG. 4B proceeds to S415, which will be described later. On the other hand, if it is judged that a Write Protect command (for example, the Write Protect command issued in S405) has been received, the erase process of FIG. 4B proceeds to S414.
[0044] In S414, the memory controller 116 executes the received Write Protect command, which places Write Protect on the user area 201, which is a map area, and restricts access to the user area 201, as shown in FIG.
[0045] Next, when the memory controller 116 receives a Sanitize command (for example, the Sanitize command issued in S406) via the memory I / F 115 (S415), it executes the Sanitize command (S416). This erases all data stored in the redundant area 202, which is an unmapped area. Note that when the Write Protect command is executed in S414, Write Protect is applied to the user area 201, which is a mapped area, as described above. Therefore, when the memory controller 116 executes the Sanitize command in S416, it does not access the user area 201.
[0046] Next, when the memory controller 116 receives a command to cancel Write Protect via the memory I / F 115 (S417), it cancels Write Protect for the user area 201, which is a map area (S418). Then, the erase process in FIG. 4B ends.
[0047] According to the above-described embodiment, when performing a Purge level erase of data stored in the eMMC 114, after the process of erasing data stored in the map area according to the Trim command (first erase process) is completed, Write Protect is applied to the map area according to the Write Protect command. Then, the process of erasing data stored in the unmapped area according to the Sanitize command (second erase process) is executed. That is, when performing a Purge level erase of data stored in the eMMC 114, the memory controller 116 of the eMMC 114 does not access the map area from which data erasure according to the Trim command has been completed according to the Sanitize command. This makes it possible to reduce the time required for the Purge level erase.
[0048] In the above embodiment, the Write Protect of the map area is released after the process of erasing the data stored in the unmapped area is completed, which prevents access to the map area from being restricted after the Purge level erasure is completed when the user issues an instruction to execute the Purge level data erasure for reasons other than the disposal of the device.
[0049] In the embodiment described above, when it is determined that the eMMC 114 is a device that accesses the map area in accordance with the Sanitize command, a Write Protect command is issued to the eMMC 114. This makes it possible to prevent the memory controller 116 of the eMMC 114, which accesses the map area in accordance with the Sanitize command, from accessing, in accordance with the Sanitize command, the map area from which data erasure has been completed in accordance with the Trim command.
[0050] In the embodiment described above, the image forming apparatus 100 is an apparatus that stores image data to be printed in the eMMC 114. This makes it possible to delete all image data stored in the eMMC 114 while shortening the time required for erasing the Purge level.
[0051] Although the present invention has been described above using the above-mentioned embodiment, the present invention is not limited to the above-mentioned embodiment. For example, when the execution of an erase command is interrupted in the eMMC 114, the erase command may be reissued. In such a configuration, when erasing the data stored in the eMMC 114 at the Purge level, the eMMC 114 executes the erase process shown in FIG. 4(b) described above, and the CPU 101 executes the control process shown in FIG. 6, which is different from the control process shown in FIG. 4(a) described above.
[0052] Fig. 6 is a flow chart showing another procedure of the control process executed by CPU 101 of Fig. 1. The control process of Fig. 6 is similar to the control process of Fig. 4(a) described above, and the following will particularly explain the contents different from the control process of Fig. 4(a) described above. The control process of Fig. 6 is also realized by CPU 101 executing a program stored in RAM 102, similar to the control process of Fig. 4(a) described above. The control process of Fig. 6 is also started when image forming apparatus 100 receives an instruction to execute data erasure at the Purge level from a user, similar to the control process of Fig. 4(a) described above.
[0053] 6, first, S601 and S602, which are the same processes as S401 and S402 described above, are performed. Memory controller 116 of eMMC 114 executes the received Trim command, and when the execution of the Trim command is completed, transmits a completion notification of the Trim command indicating the completion to CPU 101 via memory I / F 115. On the other hand, when memory controller 116 of eMMC 114 interrupts the execution of the Trim command, transmits an interruption notification of the Trim command indicating the interruption to CPU 101 via memory I / F 115. In this embodiment, the execution of the Trim command is interrupted due to, for example, a momentary power outage of image forming apparatus 100, the start of a hard reset, or the start of a soft reset.
[0054] Next, CPU 101 determines whether execution of the Trim command has been interrupted (S603). For example, if a Trim command interruption notification is received between the issuance of the Trim command and the reception of a Trim command completion notification, it is determined that execution of the Trim command has been interrupted. In this case, the control process of FIG. 6 returns to S602, and CPU 101 controls operating system 305 to issue a Trim command to eMMC 114 via memory driver 301. Thus, in this embodiment, if execution of the Trim command is interrupted, the Trim command is reissued to eMMC 114.
[0055] On the other hand, if the interruption notice of the Trim command is not received during the period from when the Trim command is issued until when the completion notice of the Trim command is received, it is determined that the execution of the Trim command is not interrupted. In this case, the control process of FIG. 6 proceeds to S604, which is the same process as S403 described above. Next, in the control process of FIG. 6, S605 to S607, which are the same processes as S404 to S406 described above, are performed. The memory controller 116 of the eMMC 114 executes the received Sanitize command, and when the execution of the Sanitize command is completed, transmits a completion notice of the Sanitize command indicating that to the CPU 101 via the memory I / F 115. On the other hand, when the memory controller 116 of the eMMC 114 interrupts the execution of the Sanitize command, transmits a interruption notice of the Sanitize command indicating that to the CPU 101 via the memory I / F 115. In this embodiment, the execution of the Sanitize command is interrupted due to, for example, a momentary interruption of the image forming apparatus 100, the start of a hard reset, or the start of a soft reset.
[0056] Next, CPU 101 determines whether execution of the Sanitize command has been interrupted (S608). For example, if a notification of interruption of the Sanitize command is received between the issuance of the Sanitize command and the reception of a notification of completion of the Sanitize command, it is determined that execution of the Sanitize command has been interrupted. In this case, the control process of FIG. 6 returns to S607, and CPU 101 controls operating system 305 to issue a Sanitize command to eMMC 114 via memory driver 301. Thus, in this embodiment, if execution of the Sanitize command is interrupted, the Sanitize command is reissued to eMMC 114.
[0057] On the other hand, if a Sanitize command interruption notification is not received between the issuance of the Sanitize command and the reception of the Sanitize command completion notification, it is determined that the execution of the Sanitize command is not interrupted. In this case, the control process in Fig. 6 proceeds to S609, which is the same process as S407 described above, and after S610, which is the same process as S408 described above, the control process in Fig. 6 ends.
[0058] In the embodiment described above, if execution of the Trim command is interrupted in the eMMC 114, the Trim command is reissued to the eMMC 114. This makes it possible to avoid a situation in which execution of the Trim command is unintentionally interrupted and data remains in the map area.
[0059] Furthermore, in the above-described embodiment, if the execution of the Sanitize command is interrupted in the eMMC 114, the Sanitize command is reissued to the eMMC 114. This makes it possible to avoid a situation in which the execution of the Sanitize command is unintentionally interrupted and data remains in the unmapped area.
[0060] In the present embodiment, an image forming apparatus equipped with a non-volatile memory device has been described as an example of an information processing apparatus, but the information processing apparatus is not limited to an image forming apparatus. For example, the information processing apparatus may be an apparatus equipped with a non-volatile memory device, such as a PC.
[0061] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
[0062] The disclosure of this embodiment includes the following configurations and methods. (Configuration 1) An information processing apparatus comprising: a control means for issuing commands; and a non-volatile memory device having a storage area including a mapped area that can be designated by the control means and an unmapped area that cannot be designated by the control means, wherein the non-volatile memory device, after completing a first erase process for erasing data stored in the mapped area in accordance with a first erase command issued from the control means, write-protects the mapped area in accordance with a write protect command issued from the control means, and, after write-protecting the mapped area, executes a second erase process for erasing data stored in the unmapped area in accordance with a second erase command different from the first erase command and issued from the control means. (Configuration 2) The information processing device according to configuration 1, wherein the nonvolatile memory device releases the write protection of the map area after completing the second erase process. (Configuration 3) An information processing device as described in configuration 1 or 2, further comprising a means for determining whether the nonvolatile memory device is a device that accesses the map area in accordance with the second erase command, and when it is determined that the nonvolatile memory device is a device that accesses the map area in accordance with the second erase command, the control means issues the write protect command to the nonvolatile memory device. (Configuration 4) An information processing device described in any one of configurations 1 to 3, characterized in that when the first erase process is interrupted in the non-volatile memory device, the control means reissues the first erase command to the non-volatile memory device. (Configuration 5) An information processing device described in any one of configurations 1 to 4, characterized in that when the second erase process is interrupted in the non-volatile memory device, the control means reissues the second erase command to the non-volatile memory device. (Configuration 6) The information processing device according to any one of configurations 1 to 5, wherein the first erase command is a Trim command. (Configuration 7) The information processing device according to any one of configurations 1 to 6, wherein the second erase command is a Sanitize command. (Configuration 8) The information processing device according to any one of configurations 1 to 7, which is an image forming device that stores image data to be printed in the non-volatile memory device. [Explanation of symbols]
[0063] 100 Image forming device 101 CPU 114 eMMC 119 Memory section 120 Non-volatile memory section 201 User Area 202 Redundant area 301 Memory Driver 302 Write protection unit 305 Operating Systems
Claims
1. a control means for issuing commands; a non-volatile memory device having a storage area including a mapped area that can be designated by the control means and an unmapped area that cannot be designated by the control means; The non-volatile memory device comprises: after completing a first erasure process for erasing data stored in the map area in accordance with a first erasure command issued from the control means, write-protecting the map area in accordance with a write-protect command issued from the control means; An information processing device characterized in that, after write-protecting the mapped area, a second erase process is executed to erase data stored in the unmapped area in accordance with a second erase command different from the first erase command issued by the control means.
2. 2 . The information processing apparatus according to claim 1 , wherein the nonvolatile memory device releases the write protection of the map area after completing the second erasing process.
3. a means for determining whether the non-volatile memory device is a device that accesses the map area in accordance with the second erase command; 2. The information processing apparatus according to claim 1, wherein when it is determined that the non-volatile memory device is a device that accesses the map area in accordance with the second erase command, the control means issues the write protect command to the non-volatile memory device.
4. 2. The information processing apparatus according to claim 1, wherein, when the first erase process is interrupted in the nonvolatile memory device, the control means reissues the first erase command to the nonvolatile memory device.
5. 2. The information processing apparatus according to claim 1, wherein, when the second erase process is interrupted in the nonvolatile memory device, the control means reissues the second erase command to the nonvolatile memory device.
6. 2. The information processing apparatus according to claim 1, wherein the first erase command is a Trim command.
7. 2. The information processing apparatus according to claim 1, wherein the second erase command is a Sanitize command.
8. 2. The information processing apparatus according to claim 1, wherein the information processing apparatus is an image forming apparatus that stores image data to be printed in the non-volatile memory device.
9. 1. A method for controlling an information processing apparatus comprising: a control means for issuing a command; and a non-volatile memory device having a storage area including a mapped area that can be designated by the control means and an unmapped area that cannot be designated by the control means, a step of, after the non-volatile memory device completes a first erase process for erasing data stored in the map area in accordance with a first erase command issued from the control means, write-protecting the map area in accordance with a write protect command issued from the control means; and executing a second erase process in which the non-volatile memory device erases data stored in the unmapped area in accordance with a second erase command issued by the control means, the second erase command being different from the first erase command, after write protection is applied to the mapped area.
10. A program causing a computer to execute the method for controlling an information processing device according to claim 9.
Citation Information
Patent Citations
Information processing device
JP2020095388A
