CN113452867A - Data erasing method, host, image forming apparatus, image forming system, and storage medium - Google Patents

Data erasing method, host, image forming apparatus, image forming system, and storage medium Download PDF

Info

Publication number
CN113452867A
CN113452867A CN202110710410.5A CN202110710410A CN113452867A CN 113452867 A CN113452867 A CN 113452867A CN 202110710410 A CN202110710410 A CN 202110710410A CN 113452867 A CN113452867 A CN 113452867A
Authority
CN
China
Prior art keywords
temporary file
image forming
write
cache space
covering
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.)
Pending
Application number
CN202110710410.5A
Other languages
Chinese (zh)
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.)
Zhuhai Pantum Electronics Co Ltd
Original Assignee
Zhuhai Pantum Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Pantum Electronics Co Ltd filed Critical Zhuhai Pantum Electronics Co Ltd
Priority to CN202110710410.5A priority Critical patent/CN113452867A/en
Publication of CN113452867A publication Critical patent/CN113452867A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00127Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
    • H04N1/00132Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture in a digital photofinishing system, i.e. a system where digital photographic images undergo typical photofinishing processing, e.g. printing ordering
    • H04N1/00148Storage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00127Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture
    • H04N1/00326Connection or combination of a still picture apparatus with another apparatus, e.g. for storage, processing or transmission of still picture signals or of information associated with a still picture with a data reading, recognizing or recording apparatus, e.g. with a bar-code apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/04Scanning arrangements, i.e. arrangements for the displacement of active reading or reproducing elements relative to the original or reproducing medium, or vice versa

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The embodiment of the application provides a data clearing method, a host, an image forming device, a system and a storage medium, wherein the method comprises the steps of performing M times of covering write-in operation on a temporary file, wherein M is more than or equal to 2, and/or performing N times of covering write-in operation on a cache space, and N is more than or equal to 2; after M times of covering write-in operation is carried out on the temporary file, the temporary file is deleted, and/or after N times of covering write-in operation is carried out on the cache space, the cache space is released; the temporary file comprises at least two different overwriting contents in M times of overwriting operation on the temporary file, and/or comprises at least two different overwriting contents in N times of overwriting operation on the buffer space. In the embodiment of the application, the temporary file and/or the cache space which needs to be cleared is continuously subjected to the covering writing operation for two times or more, so that the temporary file and/or the cache data are ensured to be cleared, and the safety of the image forming operation data is ensured.

Description

Data erasing method, host, image forming apparatus, image forming system, and storage medium
Technical Field
The present application relates to the field of image forming apparatus technology, and in particular, to a data erasing method, a host, an image forming apparatus, a system, and a storage medium.
Background
An image forming apparatus is a device that forms an image on a recording medium by the principle of image formation, such as a printer, a copying machine, a facsimile machine, a multifunction image making and copying apparatus, an electrostatic printing apparatus, and any other similar apparatus. In the course of performing an image forming job, image forming job data related to the image forming job is generally formed in the image forming apparatus and/or a host connected to the image forming apparatus. In order to ensure the security of data, it is necessary to erase the image forming job data after the image forming job is completed.
In the prior art, a method for removing cache data is to write "1" or "0" in a memory area to be removed, so as to remove the cache data. However, in some special situations, such as strong radiation, strong light, high temperature, high pressure, and high humidity, the stability of the storage medium may not be high, and when a "1" or "0" write erase operation is performed on the memory, all of the areas where erase is desired cannot be changed to "1" or "0", resulting in a failure of erasing the buffered data.
In some possible system architectures, to improve system performance, when memory data needs to be cleared, a Central Processing Unit (CPU) sets a flag in a status register (e.g., a 0 indicates that the memory is cleared, and a 1 indicates that the memory is not cleared). In practice, however, from the physical level, the potential of the memory region to be cleared may not be pulled high or fully low, and a pseudo 0 clear state occurs. If the memory area is read at this time, the cache data can be actually read out, which results in the phenomenon that the content is still valid after the user issues the clearing operation. Therefore, if someone wants to steal the data, the memory data that is not cleared can be easily obtained, which causes a potential safety hazard to the image forming operation data.
Disclosure of Invention
The embodiment of the application provides a data clearing method, a host, an image forming device, a system and a storage medium, which are beneficial to solving the problem that potential safety hazards exist in image forming operation data due to the fact that the image forming operation data cannot be completely cleared in the prior art.
In a first aspect, an embodiment of the present application provides a data purging method, including:
performing M times of covering write operation on the temporary file, wherein M is more than or equal to 2, and/or performing N times of covering write operation on the cache space, wherein N is more than or equal to 2;
after M times of covering write-in operation is carried out on the temporary file, the temporary file is deleted, and/or after N times of covering write-in operation is carried out on the cache space, the cache space is released;
wherein, the M times of overwriting operation performed on the temporary file comprises at least two different overwriting contents, and/or the N times of overwriting operation performed on the buffer space comprises at least two different overwriting contents.
Preferably, the M overwriting write operations performed on the temporary file include at least one write 0 operation and at least one write 1 operation, and/or the N overwriting write operations performed on the buffer space include at least one write 0 operation and at least one write 1 operation.
Preferably, the temporary file includes a first temporary file generated according to a file to be printed, and the first temporary file is used for converting into a printer language format file.
Preferably, the temporary file includes a second temporary file generated according to the first temporary file, and the second temporary file is a printer language format file.
Preferably, the temporary file includes a third temporary file generated according to a file to be scanned, and the third temporary file is scanned original image data.
Preferably, the temporary file includes a fourth temporary file generated according to the third temporary file, and the fourth temporary file is used for restoring the original portrait data to generate a scan file conforming to a preset format.
Preferably, the performing M overwrite write operations on the temporary file, and/or performing N overwrite write operations on the cache space includes one or a combination of the following scenarios:
after completing part or all of the image forming operation, performing M times of covering write-in operation on a temporary file corresponding to the completed image forming operation, and/or performing N times of covering write-in operation on a cache space;
after an image forming device fails, performing M times of covering write operation on all temporary files in the image forming device, and/or performing N times of covering write operation on a cache space;
after a temporary file deleting instruction is received, performing M times of covering write-in operation on a temporary file corresponding to the temporary file deleting instruction, and/or performing N times of covering write-in operation on a cache space;
after the image forming operation is cancelled, performing M times of covering writing operation on a temporary file related to the image forming operation, and/or performing N times of covering writing operation on a cache space;
after an image forming device is started, performing M times of covering write-in operation on all temporary files in the image forming device, and/or performing N times of covering write-in operation on a cache space;
after the image forming device is ready, performing M times of covering writing operation on all temporary files in the image forming device, and/or performing N times of covering writing operation on a buffer space.
In a second aspect, an embodiment of the present application provides a host, including:
a processor;
a memory;
the memory has stored therein a computer program that, when executed, causes the host to perform the method of the first aspect.
In a third aspect, an embodiment of the present application provides an image forming apparatus including:
a processor;
a memory;
the memory has stored therein a computer program that, when executed, causes the image forming apparatus to perform the method of the first aspect.
In a fourth aspect, embodiments of the present application provide an image forming system including the host according to the second aspect and the image forming apparatus according to the third aspect.
In a fifth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, where the program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the method of any one of the first aspects.
In the embodiment of the application, the temporary file and/or the cache space which needs to be cleared is continuously subjected to the covering writing operation for two times or more, so that the temporary file and/or the cache data are ensured to be cleared, and the safety of the image forming operation data is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a schematic view of an image forming system according to an embodiment of the present disclosure;
FIG. 2 is a diagram illustrating a memory stack structure in the related art;
FIG. 3 is a schematic flow chart of a print job provided in an embodiment of the present application;
FIG. 4 is a diagram illustrating a method for removing cache data in the related art;
fig. 5 is a schematic flowchart of a data clearing method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another data clearing method according to an embodiment of the present application;
fig. 7 is a schematic flowchart of another data purging method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a host according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an image forming apparatus according to an embodiment of the present application.
Detailed Description
For better understanding of the technical solutions of the present application, the following detailed descriptions of the embodiments of the present application are provided with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all 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 terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Referring to fig. 1, a schematic diagram of an image forming system according to an embodiment of the present application is shown. As shown in fig. 1, the image forming system includes an image forming apparatus 100 and a host 200, and the image forming apparatus 100 and the host 200 are interconnected by a wired or wireless communication network for information transmission. The communication network may be a local area network or a wide area network that is switched over by a relay device. When the communication network is a local area network, the communication network may be a wifi hotspot network, a wifi P2P network, a bluetooth network, a zigbee network, or a Near Field Communication (NFC) network, for example. When the communication network is a wide area network, the communication network may be, for example, a third generation mobile communication technology (3rd-generation wireless telephone technology, 3G) network, a fourth generation mobile communication technology (4G) network, a fifth generation mobile communication technology (5th-generation mobile communication technology, 5G) network, a Public Land Mobile Network (PLMN) for future evolution, the internet, or the like.
It should be noted that fig. 1 is only an exemplary illustration and should not be taken as a limitation of the scope of the present application. For example, the image forming apparatus 100 includes, but is not limited to, printers, copiers, facsimile machines, scanners, and multi-function peripherals that perform the above functions in a single apparatus; the host 200 includes, but is not limited to, a mobile phone, a Personal Computer (PC), a Personal Digital Assistant (PDA), a smart watch, a netbook, and the like.
Fig. 2 is a schematic diagram of a memory stack structure in the related art. In the memory stack structure shown in fig. 2, a kernel virtual memory, a stack area, a read-write area, and a read-only area are included. The kernel virtual memory is used by the kernel; the stack area is used for storing local variables when the program runs and can extend a space downwards; the heap area is used for distributing the areas of malloc and new applications when the program runs; the readable and writable area is used for storing global variables and static variables; the read-only area is used for storing programs, constants and the like.
It is understood that the image forming apparatus forms cache data related to an image forming job in a memory of the image forming apparatus and/or the host during the image forming job.
Referring to fig. 3, a schematic flow chart of a print job provided in an embodiment of the present application is shown. In the embodiment of the present application, a temporary file and cache data during an image forming job are described by taking a print job as an example. The print job flow is applicable to the image forming system shown in fig. 1, and mainly includes the following steps, as shown in fig. 3.
Step S301: the host computer generates a first temporary file corresponding to a file to be printed.
When the printing operation needs to be executed, the application program on the host generates a first temporary file corresponding to the file to be printed and sends the first temporary file to the printing driver. The file to be printed is a file which needs to be printed by a user, such as a word document, a picture and the like of the user.
The temporary file is an operable file having print setting information and contents.
Step S302: and the host allocates a first cache space for the first temporary file.
Specifically, the print driver applies for a memory from an operating system of the host as a temporary use space, i.e., a first cache space. The cache space is a temporary use space (virtual address) in the memory, and is used for processing the first temporary file and converting the first temporary file into a file in a printer language.
Step S303: and the host processes the first temporary file based on the first cache space and converts the first temporary file into a second temporary file.
After the operating system allocates a first cache space for the first temporary file, the first temporary file is converted into a second temporary file based on the first cache space, and the second temporary file is in a printer language. The printer language is a command for controlling the operation of the image forming apparatus, which tells the image forming apparatus how to organize the printed document, and under the control of the printer language, print data transmitted from the host computer is converted into characters and images for printing, and finally recognized and output by the image forming apparatus.
Step S304: the host transmits the second temporary file to the image forming apparatus.
The host computer transmits the second temporary file to the image forming apparatus after converting the first temporary file into the second temporary file, so that the image forming apparatus performs a subsequent printing operation.
Step S305: and the image forming device allocates a second buffer space for the second temporary file.
After receiving the second temporary file, the image forming apparatus applies for a memory to an operating system of the image forming apparatus as a temporary use space, that is, a second cache space.
Step S306: and the image forming device performs data processing on the second temporary file based on the second cache space to obtain data to be printed.
The second buffer space is used for data processing, such as compression and decompression, portrait inversion and raster signal generation. And after the data processing is finished, obtaining the data to be printed.
Step S307: the image forming device analyzes the printing data into a digital signal, converts the digital signal into an analog signal, and controls a printing engine to execute printing operation.
Specifically, after the data processing is completed, the analysis module analyzes the data to be printed into a digital signal, and the digital signal is converted into an analog signal by the conversion module, so that the printing engine is controlled to perform the printing operation.
As can be seen from the above-described print job flow, during printing, buffer data is formed in the host computer and the image forming apparatus, respectively. Due to limited memory space and data security, after the printing operation is completed, the cache data needs to be cleared and then the cache space is released, or the temporary file needs to be cleared and then the temporary file is deleted, so that the security of the image forming operation data can be well ensured.
In the prior art, a data clearing method is to write "1" or "0" in a memory area desired to be cleared, so as to clear cache data. However, in some special situations, such as strong radiation, strong light, high temperature, high pressure, and high humidity, the stability of the storage medium may not be high, and when a "1" or "0" write erase operation is performed on the memory, all of the areas where erase is desired cannot be changed to "1" or "0", resulting in a failure of erasing the buffered data.
Fig. 4 is a schematic diagram illustrating a method for removing cache data in the related art. In order to improve the system performance, after the operating system issues a clear instruction, the CPU executes the clear instruction, and a flag "0" is set in the status register. In practice, however, from the physical level, the potential of the memory region to be cleared may not be pulled high or fully low, and a pseudo 0 clear state occurs. If the memory area is read at this time, the cache data can be actually read out, which results in the phenomenon that the content is still valid after the user issues the clearing operation. Therefore, if someone wants to steal the data, the memory data that is not cleared can be easily obtained, which causes a potential safety hazard to the image forming operation data.
Based on this, the embodiment of the present application provides a data clearing scheme, which continuously performs two or more times of overwriting operations on a cache space to be cleared, so as to ensure that cache data is cleared, and ensure the security of image forming operation data.
Referring to fig. 5, a schematic flow chart of a data clearing method according to an embodiment of the present application is shown. The method can be applied to a host side and/or an image forming apparatus side, as shown in fig. 5, and mainly includes the following steps.
Step S501: and performing M times of covering write operation on the temporary file, and/or performing N times of covering write operation on the cache space.
The temporary file is an operable file having setting information and contents. It can be understood that the temporary file contains information related to the image forming job, and therefore, after the image forming job is completed, M times of overwriting operation are required to be performed on the temporary file, wherein M is more than or equal to 2.
Wherein the M times of overwrite write operations include at least two different overwrite contents, for example, at least one write 0 operation and at least one write 1 operation are performed on the temporary file.
The cache space is a temporary use space applied to the memory by the operating system, and the cache space contains information related to the image forming operation, so after the image forming operation is completed, the cache space needs to be subjected to N times of overlay writing operation, wherein N is more than or equal to 2.
Wherein the N overwrite write operations comprise at least two different overwrite contents. For example, at least one write 0 operation and at least one write 1 operation are performed on the temporary file.
In one possible implementation, a write-0 operation instruction is issued first, and the status register is set to "0", which means that the cache space is cleared, but is not actually cleared; at this time, the CPU will actually clear the cache space data by issuing the write-1 operation instruction again, and all the cache space data are covered with 1. Or, a write 1 operation instruction is issued first, the status register is set to "0", which represents that the cache space is cleared, but actually the cache space is not cleared; at this time, the CPU will actually clear the cache space data by issuing the write 0 operation instruction again, and all the cache space data are covered with 0. The utilization of the printing and scanning data by other people is avoided.
It should be noted that the number of times of overwriting operations is not particularly limited in the embodiments of the present application, and for example, 3 times, 4 times, 6 times, and the like may be erased in addition to 2 times. In addition, the embodiment of the present application does not specifically limit the overwrite content in each erasing process, but at least two different overwrite contents should be included in N overwrite operations.
Step S502: deleting the temporary file and/or releasing the cache space.
Specifically, after the temporary file is subjected to the overwrite operation M times, the temporary file is deleted. Wherein, at the host side, the temporary file can be deleted by the printing driver on the host; at the image forming apparatus side, the temporary file may be deleted by a print service unit on the image forming apparatus.
It can be understood that the cache space is a temporary use space applied to the memory by the operating system, the cache space has limited resources, and after the use of the cache space is completed, the cache space needs to be released for use by other services. In the embodiment of the application, the temporary file and/or the cache space which needs to be cleared are/is continuously subjected to the covering writing operation for two or more times, then the temporary file is deleted, the cache space is released, and the safety of the image forming operation data is guaranteed.
It should be noted that, the embodiment of the present application does not limit the clearing time of the temporary file and/or the cache data, the deleting time of the temporary file, and/or the releasing time of the cache space, and for example, the following cases may be used.
In one possible implementation manner, after completing part or all of the image forming job, the temporary file corresponding to the completed image forming job may be subjected to M overwrite operations, and/or subjected to N overwrite operations on the buffer space. For example, after printing a page, the temporary file of the printed page is subjected to M overwrite write operations, and/or the buffer space is subjected to N overwrite write operations. In addition, after the overwriting operation is completed, the temporary file is deleted, and/or the buffer space is released.
In one possible implementation manner, after the image forming apparatus fails, all temporary files in the image forming apparatus may be subjected to M overwrite write operations, and/or the buffer space may be subjected to N overwrite write operations. After the image forming device breaks down, temporary files and/or cache data related to image forming operation can still be reserved in the image forming device, at the moment, after the temporary files and/or the cache data are subjected to multiple covering write-in operations, the temporary files are deleted, and/or cache space is released, so that the safety of the image forming operation data can be guaranteed.
In a possible implementation manner, after receiving the deletion instruction, performing the overwriting operation on the temporary file corresponding to the deletion instruction M times, and/or performing the overwriting operation on the cache space N times. Specifically, a user may trigger a deletion instruction through application software, and after receiving the deletion instruction, the image forming apparatus and/or the host performs an overwrite operation on a temporary file corresponding to the deletion instruction M times, and/or performs an overwrite operation on a cache space N times. In addition, after the overwriting operation is completed, the temporary file is deleted, and/or the buffer space is released.
In one possible implementation, after the image forming job is cancelled, the temporary file related to the image forming job may be subjected to M overwrite operations, and/or the buffer space may be subjected to N overwrite operations. After the image forming operation is cancelled, temporary files and/or cache data related to the image forming operation still can be reserved in the image forming device and/or the host, at the moment, after the temporary files and/or the cache data are subjected to multiple covering write-in operations, the temporary files are deleted, and/or cache space is released, so that the safety of the image forming operation data can be guaranteed.
In one possible implementation manner, after the image forming apparatus is powered on, all temporary files in the image forming apparatus may be subjected to M overwrite operations, and/or a cache space may be subjected to N overwrite operations. After the image forming apparatus is started, the temporary file and/or the cache data related to the last image forming operation may still be retained in the image forming apparatus, and at this time, after the temporary file and/or the cache data are subjected to multiple covering write operations, the temporary file is deleted, and/or the cache space is released, so that the security of the last image forming operation data can be ensured.
In one possible implementation, after the image forming apparatus is ready, all temporary files in the image forming apparatus may be subjected to M overwrite operations, and/or a buffer space may be subjected to N overwrite operations. After the image forming device is ready, temporary files and/or cache data related to the last image forming operation may still be reserved inside the image forming device, and at this time, after the temporary files and/or cache data are subjected to multiple covering write operations, the temporary files are deleted, and/or the cache space is released, so that the safety of the last image forming operation data can be guaranteed.
Referring to fig. 6, a schematic flow chart of another data clearing method provided in the embodiment of the present application is shown. In the embodiment of the present application, a method of removing a temporary file and cache data during an image forming job will be described by taking a print job as an example. Specifically, the host computer and the image forming apparatus further include the following steps after the image forming job shown in fig. 3 is completed.
Step S601: and the host carries out M times of overwriting operation on the first temporary file.
And at the host end, after the use of the first temporary file is finished, performing M times of covering write-in operation on the first temporary file, wherein M is more than or equal to 2. Specifically, at least one write 0 operation and at least one write 1 operation are performed on the first temporary file.
Step S602: and the host carries out N times of covering write-in operation on the first cache space.
And at the host end, after the temporarily distributed memory, namely the first cache space, is used, performing covering write operation on the first cache space for N times, wherein N is more than or equal to 2. Specifically, at least one write 0 operation and at least one write 1 operation are performed on the first cache space. For example, a write-once 0 operation instruction is issued first, and the status register is set to "0"; at this time, a write 1 operation instruction is issued again, the CPU clears the first cache space data, and the first cache space data is completely covered by 1. Or, a write-1 operation instruction is issued first, and the status register is set to "0"; at this time, a write 0 operation instruction is issued again, the CPU clears the first cache space data, and the first cache space data are all covered by 0.
Step S603: the host deletes the first temporary file.
At the host side, the first temporary file may be deleted by a print driver on the host.
Step S604: the host releases the first cache space.
The cache space is a temporary use space applied to the memory by the operating system, the cache space resources are limited, and after the first cache space is used, the first cache space needs to be released to recycle the memory resources.
Step S605: the image forming apparatus performs the overwrite operation M times on the second temporary file.
And at the image forming device end, after the use of the second temporary file is finished, performing the covering writing operation on the second temporary file for M times, wherein M is more than or equal to 2. Specifically, at least one write 0 operation and at least one write 1 operation are performed on the second temporary file.
Step S606: and the image forming device performs N times of covering writing operation on the second cache space.
And at the image forming device end, after the temporarily distributed memory, namely the second cache space, is used up, performing N times of covering write-in operation on the second cache space, wherein N is more than or equal to 2. Specifically, at least one write 0 operation and at least one write 1 operation are performed on the second cache space. For example, a write-once 0 operation instruction is issued first, and the status register is set to "0"; at this time, a write 1 operation instruction is issued again, the CPU clears the second cache space data, and the second cache space data is completely covered by 1. Or, a write-1 operation instruction is issued first, and the status register is set to "0"; at this time, a write 0 operation instruction is issued again, the CPU clears the second cache space data, and the second cache space data are all covered by 0.
Step S607: the image forming apparatus deletes the second temporary file.
At the image forming apparatus side, the second temporary file may be deleted by a print service unit of the image forming apparatus.
Step S608: the image forming apparatus releases the second buffer space.
The cache space is a temporary use space applied to the memory by the operating system, the cache space resources are limited, and after the second cache space is used, the second cache space needs to be released to recycle the memory resources.
Referring to fig. 7, a schematic flow chart of another data clearing method provided in the embodiment of the present application is shown. In the embodiment of the present application, a method for removing a temporary file and cache data during an image forming operation is described by taking a scanning operation as an example, and the method mainly includes the following steps.
Step S701: the image forming apparatus generates a third temporary file corresponding to a file to be scanned, the third temporary file being scanned original image data.
When the scanning operation needs to be executed, the image forming device scans the file to be scanned to obtain the original image data corresponding to the file to be scanned, wherein the original image data is the third temporary file.
Step S702: the image forming apparatus allocates a third buffer space to the third temporary file.
Specifically, the scanner unit of the image forming apparatus applies for memory as a temporary use space, i.e., a third buffer space, to the operating system of the image forming apparatus. The cache space is a temporary use space (virtual address) in the memory, and is used for storing and data processing the third temporary file, and the data processing may be compression processing of the original image data, and processing of the third temporary file is converted into a fourth temporary file.
Step S703: the image forming apparatus processes the third temporary file based on the third cache space, and converts the third temporary file into a fourth temporary file.
And after the operating system of the image forming device allocates a third cache space for the third temporary file, converting the third temporary file into a fourth temporary file based on the third cache space, wherein the fourth temporary file is used for restoring the original portrait data to generate a scan file conforming to a preset format.
Step S704: the image forming apparatus transmits the fourth temporary file to the host.
The image forming apparatus converts the third temporary file into a fourth temporary file, and then transmits the fourth temporary file to the scanning software of the host.
Step S705: and the host allocates a fourth cache space for the fourth temporary file.
After receiving the fourth temporary file, the scanning software of the host applies for a memory from the operating system of the host, and the memory is used as a temporary use space, namely a fourth cache space.
Step S706: and the host machine performs data processing on the fourth temporary file based on the fourth cache space, restores the original portrait data and generates a scanning file conforming to a preset format.
And the scanning software at the host side performs data processing on the fourth temporary file based on the fourth cache space, wherein the data processing can be data decompression processing and picture splicing processing on the fourth temporary file, restores the original portrait data and generates a scanning file conforming to a preset format.
Step S707: the image forming apparatus performs the overwrite operation M times on the third temporary file.
And at the image forming device end, after the use of the third temporary file is finished, performing the covering writing operation on the third temporary file for M times, wherein M is more than or equal to 2. Specifically, at least one write 0 operation and at least one write 1 operation are performed on the third temporary file.
Step S708: and the image forming device performs N times of covering writing operation on the third cache space.
And at the image forming device end, after the temporarily distributed memory, namely the third cache space, is used up, performing the covering write-in operation on the third cache space for N times, wherein N is more than or equal to 2. Specifically, at least one write 0 operation and at least one write 1 operation are performed on the third cache space. For example, a write-once 0 operation instruction is issued first, and the status register is set to "0"; at this time, a write 1 operation instruction is issued again, the CPU clears the third cache space data, and all the third cache space data are covered by 1. Or, a write-1 operation instruction is issued first, and the status register is set to "0"; at this time, a write 0 operation instruction is issued again, the CPU clears the third cache space data, and the third cache space data is completely covered by 0.
Step S709: the image forming apparatus deletes the third temporary file.
At the image forming apparatus side, the third temporary file may be deleted by a scan service unit of the image forming apparatus.
Step S710: the image forming apparatus releases the third buffer space.
Specifically, after the use of the third cache space is completed, the scan service unit of the image forming apparatus may release the third cache space and recycle the memory resource.
Step S711: and the host carries out M times of overwriting operation on the fourth temporary file.
And at the host end, after the use of the fourth temporary file is finished, performing M times of covering write-in operation on the fourth temporary file, wherein M is more than or equal to 2. Specifically, at least one write 0 operation and at least one write 1 operation are performed on the fourth temporary file.
Step S712: and the host performs N times of covering write-in operation on the fourth cache space.
And at the host end, after the temporarily distributed memory, namely the fourth cache space, is used up, performing N times of covering write-in operation on the fourth cache space, wherein N is more than or equal to 2. Specifically, at least one write 0 operation and at least one write 1 operation are performed on the fourth cache space. For example, a write-once 0 operation instruction is issued first, and the status register is set to "0"; at this time, a write 1 operation instruction is issued again, the CPU clears the fourth cache space data, and all the fourth cache space data are covered by 1. Or, a write-1 operation instruction is issued first, and the status register is set to "0"; at this time, a write 0 operation instruction is issued again, the CPU clears the fourth cache space data, and the fourth cache space data is completely covered by 0.
Step S713: the host deletes the fourth temporary file.
At the host side, the fourth temporary file may be deleted by scanning software on the host.
Step S714: the host frees the fourth cache space.
Specifically, after the use of the fourth cache space is completed, the scanning software on the host may release the applied memory resource, that is, release the fourth cache space.
It is to be noted that the image forming apparatus may perform other image forming jobs, such as facsimile, copying, and the like, in addition to printing and scanning, and will not be described in detail herein.
Corresponding to the method embodiment, the application also provides a host.
Referring to fig. 8, for a schematic structural diagram of a host provided in the embodiment of the present application, the host 800 may include: a processor 801, a memory 802, and a communication unit 803. The components communicate over one or more buses, and those skilled in the art will appreciate that the configuration of the servers shown in the figures are not meant to limit embodiments of the present invention, and may be in the form of buses, stars, more or fewer components than those shown, some components in combination, or a different arrangement of components.
The communication unit 803 is configured to establish a communication channel so that the storage device can communicate with other devices. Receiving the user data sent by other devices or sending the user data to other devices.
The processor 801, which is a control center of the storage device, connects various parts of the entire system using various interfaces and lines, and performs various functions of the system and/or processes data by operating or executing software programs and/or modules stored in the memory 802 and calling data stored in the memory. The processor may be composed of Integrated Circuits (ICs), for example, a single packaged IC, or a plurality of packaged ICs connected to the same or different functions.
The memory 802, for storing instructions executed by the processor 801, may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The execution instructions in the memory 802, when executed by the processor 801, enable the host 800 to perform some or all of the steps of the host side of the above-described method embodiments.
Corresponding to the method embodiment, the application also provides an image forming device.
Referring to fig. 9, for a schematic structural diagram of an image forming apparatus provided in an embodiment of the present application, the image forming apparatus 900 may include: a processor 901, a memory 902, and a communication unit 903. The components communicate over one or more buses, and those skilled in the art will appreciate that the configuration of the servers shown in the figures are not meant to limit embodiments of the present invention, and may be in the form of buses, stars, more or fewer components than those shown, some components in combination, or a different arrangement of components.
The communication unit 903 is configured to establish a communication channel, so that the storage device can communicate with other devices. Receiving the user data sent by other devices or sending the user data to other devices.
The processor 901, which is a control center of the storage device, connects various parts of the entire system using various interfaces and lines, and performs various functions of the system and/or processes data by operating or executing software programs and/or modules stored in the memory 902 and calling data stored in the memory. The processor may be composed of Integrated Circuits (ICs), for example, a single packaged IC, or a plurality of packaged ICs connected to the same or different functions.
The memory 902 is used for storing instructions executed by the processor 901, and the memory 902 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
The execution instructions in the memory 902, when executed by the processor 901, enable the image forming apparatus 900 to perform some or all of the steps on the image forming apparatus side in the above-described method embodiments.
In correspondence with the above-described embodiments, the present application also provides an image forming system including the host computer described in fig. 8 and the image forming apparatus described in fig. 9, the host computer and the image forming apparatus being communicatively connected. For the sake of brevity, detailed description is omitted here.
In specific implementation, the present application further provides a computer storage medium, where the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided in the present application when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like.
In a specific implementation, an embodiment of the present application further provides a computer program product, where the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer is caused to perform some or all of the steps in the foregoing method embodiment.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in connection with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or combinations of electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is only for the specific embodiments of the present application, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method of data purging, comprising:
performing M times of covering write operation on the temporary file, wherein M is more than or equal to 2, and/or performing N times of covering write operation on the cache space, wherein N is more than or equal to 2;
after M times of covering write-in operation is carried out on the temporary file, the temporary file is deleted, and/or after N times of covering write-in operation is carried out on the cache space, the cache space is released;
wherein, the M times of overwriting operation performed on the temporary file comprises at least two different overwriting contents, and/or the N times of overwriting operation performed on the buffer space comprises at least two different overwriting contents.
2. The method of claim 1,
the M times of overwriting writing operations performed on the temporary file comprise at least one writing 0 operation and at least one writing 1 operation, and/or the N times of overwriting writing operations performed on the cache space comprise at least one writing 0 operation and at least one writing 1 operation.
3. The method according to claim 1, wherein the temporary file comprises a first temporary file generated from a file to be printed, the first temporary file being for conversion into a printer language format file.
4. The method of claim 3, wherein the temporary file comprises a second temporary file generated from the first temporary file, the second temporary file being a printer language format file.
5. The method of claim 1, wherein the temporary file comprises a third temporary file generated from a file to be scanned, the third temporary file being scanned raw image data.
6. The method of claim 5, wherein the temporary file includes a fourth temporary file generated from the third temporary file, the fourth temporary file being used to restore the original image data to generate a scan file conforming to a predetermined format.
7. The method according to claim 1, wherein performing M overwrite write operations on the temporary file and/or performing N overwrite write operations on the buffer space includes one or a combination of the following scenarios:
after completing part or all of the image forming operation, performing M times of covering write-in operation on a temporary file corresponding to the completed image forming operation, and/or performing N times of covering write-in operation on a cache space;
after an image forming device fails, performing M times of covering write operation on all temporary files in the image forming device, and/or performing N times of covering write operation on a cache space;
after a temporary file deleting instruction is received, performing M times of covering write-in operation on a temporary file corresponding to the temporary file deleting instruction, and/or performing N times of covering write-in operation on a cache space;
after the image forming operation is cancelled, performing M times of covering writing operation on a temporary file related to the image forming operation, and/or performing N times of covering writing operation on a cache space;
after an image forming device is started, performing M times of covering write-in operation on all temporary files in the image forming device, and/or performing N times of covering write-in operation on a cache space;
after the image forming device is ready, performing M times of covering writing operation on all temporary files in the image forming device, and/or performing N times of covering writing operation on a buffer space.
8. A host, comprising:
a processor;
a memory;
the memory has stored therein a computer program that, when executed, causes the host to perform the method of any of claims 1-3, 6-7.
9. An image forming apparatus, comprising:
a processor;
a memory;
the memory has stored therein a computer program that, when executed, causes the image forming apparatus to perform the method of any of claims 1-2, 4-5, 7.
10. An image forming system comprising the host computer according to claim 8 and the image forming apparatus according to claim 9.
11. A computer-readable storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus on which the computer-readable storage medium resides to perform the method of any one of claims 1-7.
CN202110710410.5A 2021-06-25 2021-06-25 Data erasing method, host, image forming apparatus, image forming system, and storage medium Pending CN113452867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110710410.5A CN113452867A (en) 2021-06-25 2021-06-25 Data erasing method, host, image forming apparatus, image forming system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110710410.5A CN113452867A (en) 2021-06-25 2021-06-25 Data erasing method, host, image forming apparatus, image forming system, and storage medium

Publications (1)

Publication Number Publication Date
CN113452867A true CN113452867A (en) 2021-09-28

Family

ID=77812740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110710410.5A Pending CN113452867A (en) 2021-06-25 2021-06-25 Data erasing method, host, image forming apparatus, image forming system, and storage medium

Country Status (1)

Country Link
CN (1) CN113452867A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1359071A (en) * 2001-11-29 2002-07-17 上海格尔软件股份有限公司 Method for completely deleting files on hard disk
US20060272027A1 (en) * 2005-05-26 2006-11-30 Finisar Corporation Secure access to segment of data storage device and analyzer
US7275139B1 (en) * 2004-12-02 2007-09-25 Tormasov Alexander G Secure deletion of information from hard disk drive
WO2010002185A2 (en) * 2008-07-03 2010-01-07 (주) 애니컴페니언 Method for automatically and completely deleting temporary files used in application programs
CN103677977A (en) * 2013-12-19 2014-03-26 贝壳网际(北京)安全技术有限公司 Method and device for cleaning temporary files in mobile terminal and the mobile terminal
CN107025066A (en) * 2016-09-14 2017-08-08 阿里巴巴集团控股有限公司 The method and apparatus that data storage is write in the storage medium based on flash memory
CN108920271A (en) * 2018-05-17 2018-11-30 广州优视网络科技有限公司 Application cache method for cleaning, device, storage medium and terminal
CN111459890A (en) * 2020-03-10 2020-07-28 奇安信科技集团股份有限公司 File crushing method and device based on domestic operating system and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1359071A (en) * 2001-11-29 2002-07-17 上海格尔软件股份有限公司 Method for completely deleting files on hard disk
US7275139B1 (en) * 2004-12-02 2007-09-25 Tormasov Alexander G Secure deletion of information from hard disk drive
US20060272027A1 (en) * 2005-05-26 2006-11-30 Finisar Corporation Secure access to segment of data storage device and analyzer
WO2010002185A2 (en) * 2008-07-03 2010-01-07 (주) 애니컴페니언 Method for automatically and completely deleting temporary files used in application programs
CN103677977A (en) * 2013-12-19 2014-03-26 贝壳网际(北京)安全技术有限公司 Method and device for cleaning temporary files in mobile terminal and the mobile terminal
CN107025066A (en) * 2016-09-14 2017-08-08 阿里巴巴集团控股有限公司 The method and apparatus that data storage is write in the storage medium based on flash memory
CN108920271A (en) * 2018-05-17 2018-11-30 广州优视网络科技有限公司 Application cache method for cleaning, device, storage medium and terminal
CN111459890A (en) * 2020-03-10 2020-07-28 奇安信科技集团股份有限公司 File crushing method and device based on domestic operating system and electronic equipment

Similar Documents

Publication Publication Date Title
JP5142872B2 (en) Print control apparatus, print control method, and computer program
CN105450902A (en) Image forming apparatus, and method for controlling image forming apparatus
JP6447564B2 (en) Image forming apparatus, program, and information processing system
US10514871B2 (en) Print management method and print management apparatus
US20130194609A1 (en) Printing apparatus and method of controlling the same
US8339658B2 (en) Image forming apparatus and image forming method
JP5658574B2 (en) Image forming apparatus, control method therefor, and program
JP2001030564A (en) Apparatus and method for controlling printing, and memory medium with computer readable program stored therein
CN104348995A (en) Image output system and method
US6310693B1 (en) Printing control apparatus and method, and printing system for reducing processing overhead
JP2008042345A (en) Image processing method and image processor
CN113452867A (en) Data erasing method, host, image forming apparatus, image forming system, and storage medium
JP5928505B2 (en) Image processing apparatus, image processing method and image processing program in the same
US20090219566A1 (en) Image forming apparatus, security control method and security processing program
US7375833B2 (en) Information processing device, page description language generating method, program, and storage medium
JP2017146738A (en) Printing system, printing method, and printing server
US20170300789A1 (en) Image processing apparatus, image processing method, and non-transitory computer-readable medium
JP2018157418A (en) Image formation device, image formation system, and image formation method
JP6733592B2 (en) Image forming apparatus and image forming program
JP4636471B2 (en) Print log collection device, print log collection method and program thereof
JP2017022656A (en) Print control device, printer, control method and program
KR102500971B1 (en) Printing apparatus and storage medium
JP2019006044A (en) Printing system, image forming apparatus, reservation printing method, and program
US10506120B2 (en) Print control apparatus, non-transitory computer readable medium, and print system having erase processing including data overwriting
JPH09309234A (en) Information processing device, printing device, printing system, processing of data by information processing device, processing of data by printing device and storage medium storing program readable by computer

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210928