[go: up one dir, main page]

CN117113440B - Integrity protection method, system and storage medium for image file - Google Patents

Integrity protection method, system and storage medium for image file Download PDF

Info

Publication number
CN117113440B
CN117113440B CN202311379497.8A CN202311379497A CN117113440B CN 117113440 B CN117113440 B CN 117113440B CN 202311379497 A CN202311379497 A CN 202311379497A CN 117113440 B CN117113440 B CN 117113440B
Authority
CN
China
Prior art keywords
storage medium
target
image file
determining
failure probability
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311379497.8A
Other languages
Chinese (zh)
Other versions
CN117113440A (en
Inventor
吴存锋
曹军
梁尔真
楼新园
王园
郑望献
蔡利华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Xinghan Information Technology Ltd By Share Ltd
Original Assignee
Zhejiang Xinghan Information Technology Ltd By Share 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 Zhejiang Xinghan Information Technology Ltd By Share Ltd filed Critical Zhejiang Xinghan Information Technology Ltd By Share Ltd
Priority to CN202311379497.8A priority Critical patent/CN117113440B/en
Publication of CN117113440A publication Critical patent/CN117113440A/en
Application granted granted Critical
Publication of CN117113440B publication Critical patent/CN117113440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Library & Information Science (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides an integrity protection method, system and storage medium for image files, which belongs to the technical field of file processing and specifically comprises the following steps: determining target storage media through the target image files, determining failure probabilities of different target storage media according to the use data, and dividing the target storage media into problem storage media and reliable storage media by using the failure probabilities; the method comprises the steps of obtaining the duty ratio of a problem storage medium and a reliable storage medium in a target storage medium, further determining the image failure probability of a target image file by combining the failure probabilities of different target storage media, and determining the available storage medium of the unloading of the target image file according to the storage reliability and the image failure probability of the target image file when the image failure probability of the target image file does not meet the requirements, so that the safety protection of the influence file is further realized.

Description

Integrity protection method, system and storage medium for image file
Technical Field
The present invention relates to a method, a system, and a storage medium for protecting the integrity of an image file, and more particularly, to a method, a system, and a storage medium for protecting the integrity of an image file.
Background
Along with informatization and digitalization of archive storage management, more and more image archives with archive value are subjected to unified archive management, but unlike paper archives, the image archives are often stored in a certain storage medium, and due to irreversibility and secrecy of damage of the storage medium, how to realize integrity protection of the image archives becomes a technical problem to be solved urgently.
In the prior art, in order to realize the integrity protection of the image files, the archiving processing is often performed by carrying out the backup storage mode on the same image file, but once all the storage media of the backup storage are in question, the integrity protection of the image files cannot be realized.
In view of the above technical problems, the present invention provides a method, a system and a storage medium for protecting the integrity of an image file.
Disclosure of Invention
In order to achieve the purpose of the invention, the invention adopts the following technical scheme:
according to one aspect of the present invention, a method for protecting the integrity of an image file is provided.
An integrity protection method for an image file, comprising the steps of:
s1, determining a target storage medium through a target image file, determining failure probabilities of different target storage media according to use data of the target storage medium, and dividing the target storage medium into a problem storage medium and a reliable storage medium by using the failure probabilities;
S2, acquiring the duty ratio of a problem storage medium and a reliable storage medium in the target storage medium, further determining the image failure probability of the target image file by combining the failure probabilities of different target storage media, and entering the next step when the image failure probability of the target image file does not meet the requirement;
s3, screening available storage media according to failure probabilities of different storage media, determining browsing hotness of different image files according to browsing data of different image files, and determining a hot file of the image files according to the browsing hotness;
s4, obtaining storage data of the hot files and storage data of the image files in the available storage media, determining storage reliability of the available storage media by combining failure probability of the available storage media, and determining the prestored available storage media of the target image files according to the storage reliability and the image failure probability of the target image files.
The invention has the beneficial effects that:
1. by determining the failure probability of different target storage media according to the usage data of the target storage media, the difference of storage stability of the different target storage media due to the difference of the usage data is fully considered, the storage stability and the failure probability of the different target storage media are accurately evaluated, and a foundation is laid for further realizing the accurate evaluation of the failure probability of the target image file.
2. The image failure probability of the target image file is determined according to the failure probabilities of different target storage media, so that the storage stability of the target storage media in the target image file is considered, the number and the duty ratio of problem storage media in the target storage media are considered, the reliable evaluation of the failure risk of the target image file is realized, and a foundation is laid for realizing the integrity and storage reliability protection of the target image file.
3. The storage data of files in the available storage media and the failure probability of the available storage media are synthesized to determine the storage reliability of the available storage media, so that the differences of the storage stability and the failure probability of different available storage media are simply considered, the difference of browsing heat of different available storage media due to the differences of stored video files is also considered, and a foundation is laid for targeted storage processing of target image files.
The further technical scheme is that the target storage medium is determined according to the storage medium of the target image file, and particularly according to the storage medium corresponding to the file body of the target image file.
The further technical scheme is that the usage data of the target storage medium comprises the reading and writing times of the target storage medium, and the reading and writing data quantity, the number of users and the service life of different reading and writing times.
The further technical solution is that the target storage medium is divided into a problem storage medium and a reliable storage medium by using the failure probability, and the method specifically includes:
and when the failure probability of the target storage medium is not in the preset probability interval, the target storage medium is divided into problem storage media.
The further technical scheme is that the value range of the image failure probability of the target image file is between 0 and 1, wherein when the image failure probability of the target image file is larger than a preset image safety limit value, the image failure probability of the target image file is determined to not meet the requirement.
The further technical scheme is that the method for determining the browsing heat of different image files according to the browsing data of different image files specifically comprises the following steps:
Determining the browsing times and the number of browsing persons of the image file according to the browsing data of the image file, and determining the number of matched browsing persons of the image file according to the browsing times of the number of browsing persons;
and respectively determining the browsing heat of the image file under the matched browsing number, the browsing number and the browsing frequency according to the matched browsing number, the browsing number and the browsing frequency of the image file, and determining the browsing heat of different image files according to the browsing heat of the image file under the matched browsing number, the browsing number and the browsing frequency.
The further technical solution is that determining the available storage medium for the transfer of the target image file according to the storage reliability and the image failure probability of the target image file specifically includes:
determining the transfer sequence of the available storage medium for transferring the target image file according to the storage reliability;
determining the number of the available storage media transferred to the target image file according to the image failure probability of the target image file;
and determining the available storage media of the target image file through the number of the available storage media of the target image file and the storage sequence.
In a second aspect, the present invention provides a computer system comprising: a communicatively coupled memory and processor, and a computer program stored on the memory and capable of running on the processor, characterized by: the processor executes the integrity protection method of the image file when running the computer program.
In a third aspect, the present invention provides a computer storage medium having a computer program stored thereon, which when executed in a computer causes the computer to perform a method for protecting the integrity of an image file as described above.
Additional features and advantages will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings;
FIG. 1 is a flowchart of an integrity protection method for an image file;
FIG. 2 is a flow chart of a method of determining a failure probability of a target storage medium;
FIG. 3 is a flow chart of a method of determining image failure probability of a target image file;
FIG. 4 is a flow chart of a method of determining storage reliability of an available storage medium;
FIG. 5 is a block diagram of a computer system.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present disclosure.
The applicant finds that, because the image files are stored in a certain storage medium, and the damage of the storage medium has certain concealment and irreversibility, if the storage risk of the storage medium of the image files cannot be dynamically evaluated, the integrity and the storage reliability of the image files cannot be ensured.
In order to solve the technical problems, the applicant adopts the following technical scheme:
firstly, determining the failure probability of a storage medium of an image file according to the use condition of the storage medium of the image file, in one possible embodiment, determining the failure probability by the ratio of the read-write times of the storage medium to the read-write life times of the storage medium, and dividing the storage medium of the image file into a problem storage medium and a reliable storage medium according to the failure probability;
after obtaining the failure probability of the storage medium of the image file, determining the image failure probability of the image file according to the duty ratio of the problem storage medium in the storage medium of the image file and the failure probability of the storage medium, in one possible embodiment, determining the failure probability compensation amount by the product of the average value of the failure probability of the storage medium of the image file and the duty ratio of the problem storage medium in the storage medium of the image file, and determining the image failure probability of the image file according to the number of the failure probability compensation amounts and the average value of the failure probability of the storage medium of the image file;
when the image failure probability of the image file is higher, the image file needs to be transferred to other storage media, the storage reliability of the other storage media is determined according to the number of the storage files in the other storage media and the failure probability, specifically, the storage heat of the other storage media can be determined according to the ratio of the number of the storage files to the preset number limiting amount, the storage reliability of the other storage media is determined according to the product of the storage heat and the failure probability, and the transfer of the image file is determined according to the storage reliability.
The following describes the method class embodiment, the system class embodiment, and the medium class embodiment in detail.
In order to solve the above-mentioned problems, according to one aspect of the present invention, as shown in fig. 1, there is provided an integrity protection method for an image file according to one aspect of the present invention.
An integrity protection method for an image file, comprising the steps of:
s1, determining a target storage medium through a target image file, determining failure probabilities of different target storage media according to use data of the target storage medium, and dividing the target storage medium into a problem storage medium and a reliable storage medium by using the failure probabilities;
in this embodiment, the determination of the failure probability is mainly performed according to the usage data of different target storage media, so as to lay a foundation for further performing security risk assessment on archiving of the target image file.
It can be understood that the target storage medium is determined according to the storage medium of the target image file, specifically, according to the storage medium corresponding to the file body of the target image file.
The usage data of the target storage medium includes the number of times of reading and writing of the target storage medium, and the amount of data of different times of reading and writing, the number of users and the service life.
In one possible embodiment, as shown in fig. 2, the method for determining the failure probability of the target storage medium in the step S1 is as follows:
s11, determining the service life of the target storage medium according to the service life of the target storage medium, determining whether the target storage medium has failure risk or not according to the service life of the target storage medium, if so, determining the failure probability of the target storage medium according to the service life of the target storage medium, and if not, entering the next step;
s12, determining the read-write times of the target storage medium based on the use data of the target storage medium, determining whether the target storage medium has failure risk or not by combining the read-write life times of the target storage medium, if so, entering a step S15, and if not, entering a next step;
s13, determining the accumulated read-write data quantity of the target storage medium according to the read-write data quantity of different read-write times of the target storage medium, determining whether the target storage medium has failure risk according to the accumulated read-write data quantity of the target storage medium, if so, entering a step S15, and if not, determining the failure probability of the target storage medium according to the read-write times of the target storage medium and the read-write life times of the target storage medium;
S14, dividing the read-write times into severe read-write times and mild read-write times by using the read-write data quantity of different read-write times of the target storage medium, and determining the use failure probability of the target storage medium according to the read-write life times, the severe read-write times, the mild read-write times and the accumulated read-write data quantity of the target storage medium;
in one possible embodiment, the determining of the usage reference failure probability is performed through the maximum value of the ratio of the number of times of reading and writing to the number of times of reading and writing of the target storage medium and the ratio of the accumulated read and write data amount to the read and write data amount safety limit value of the target storage medium, the determining of the compensation amount of the usage reference failure probability is performed according to the ratio of the number of times of severe reading and writing to the number of times of reading and writing, and finally the determining of the usage failure probability of the target storage medium is performed according to the compensation amount of the usage reference failure probability and the usage reference failure probability.
S15, acquiring the number of users and the service life of the target storage medium, and correcting the use failure probability according to the number of users and the service life of the target storage medium to obtain the failure probability of the target storage medium.
In one possible embodiment, the dividing the target storage medium into the problem storage medium and the reliable storage medium in the step S1 by using the failure probability specifically includes:
and when the failure probability of the target storage medium is not in the preset probability interval, the target storage medium is divided into problem storage media.
In another possible embodiment, the method for determining the failure probability of the target storage medium in the step S1 is as follows:
determining the read-write times of the target storage medium based on the use data of the target storage medium, and determining the accumulated read-write data amount of the target storage medium according to the read-write data amounts of different read-write times of the target storage medium;
determining the read-write life time and the maximum read-write data volume of the target storage medium by utilizing the type of the target storage medium, and determining a read-write time safety limit value and a read-write data volume safety limit value by the read-write life time and the maximum read-write data volume of the target storage medium;
When the accumulated read-write data volume of the target storage medium is smaller than the read-write data volume safety limit value and the read-write times of the target storage medium are smaller than the read-write life times:
determining the failure probability of the target storage medium according to the ratio of the accumulated read-write data volume of the target storage medium to the read-write data volume safety limit value and the ratio of the read-write times of the target storage medium to the read-write life times;
when the accumulated read-write data volume of the target storage medium is not less than the read-write data volume safety limit value or the read-write times of the target storage medium is not less than the read-write life times:
dividing the read-write times into severe read-write times and mild read-write times by using the read-write data quantity of different read-write times of the target storage medium, and determining the use failure probability of the target storage medium according to the read-write life times, the severe read-write times, the mild read-write times and the accumulated read-write data quantity of the target storage medium;
and acquiring the number of users and the service life of the target storage medium, and correcting the use failure probability according to the number of users and the service life of the target storage medium to obtain the failure probability of the target storage medium.
In this embodiment, by determining the failure probabilities of different target storage media according to the usage data of the target storage media, the difference of storage stability of the different target storage media due to the difference of the usage data is fully considered, so that accurate evaluation of the storage stability and the failure probabilities of the different target storage media is realized, and a foundation is laid for further realizing accurate evaluation of the failure probabilities of the target image files.
S2, acquiring the duty ratio of a problem storage medium and a reliable storage medium in the target storage medium, further determining the image failure probability of the target image file by combining the failure probabilities of different target storage media, and entering the next step when the image failure probability of the target image file does not meet the requirement;
in one possible embodiment, as shown in fig. 3, the method for determining the image failure probability of the target image file in the step S2 is as follows:
s21, determining whether the target image file has failure risk or not based on the duty ratio of the problem storage medium in the target storage medium, if so, taking the duty ratio of the problem storage medium in the target storage medium as the image failure probability of the target image file, and if not, entering the next step;
S22, judging whether a problem storage medium exists in the target storage medium, if so, entering a step S24, and if not, entering a next step;
s23, determining whether a target storage medium with the failure probability larger than a preset probability exists or not according to the failure probability of the target storage medium, if so, entering a step S24, and if not, determining the image failure probability of the target image file through the mean value of the failure probabilities of the target storage medium;
s24, acquiring the number of target storage media of the target image file, and determining the reference failure probability of the target image file by combining the number of problem storage media in the target storage media and the duty ratio;
s25, determining the mean value of failure probabilities of problem storage media in the target storage media and the mean value of failure probabilities of reliable storage media by utilizing the failure probabilities of the target storage media of the target image file, determining the medium failure probability evaluation quantity of the target image file by combining the number of the target storage media with the failure probability smaller than the preset probability, and determining the image failure probability of the target image file based on the medium failure probability evaluation quantity of the target image file and the reference failure probability of the target image file.
In one possible embodiment, the determining of the image failure probability of the target image file based on the medium failure probability evaluation of the target image file and the reference failure probability of the target image file in the step S25 specifically includes:
s251, when the medium failure probability evaluation value of the target image file is not larger than a preset value, determining the image failure probability of the target image file according to the reference failure probability of the target image file;
and S252, when the medium failure probability evaluation value of the target image file is larger than a preset value, determining a correction amount through the medium failure probability evaluation value of the target image file and the preset value, and determining the image failure probability of the target image file according to the correction amount and the reference failure probability.
It should be noted that, in the step S2, the value range of the image failure probability of the target image file is between 0 and 1, where when the image failure probability of the target image file is greater than a preset image safety limit value, it is determined that the image failure probability of the target image file does not meet the requirement.
In another possible embodiment, the method for determining the image failure probability of the target image file in the step S2 is as follows:
when a problem storage medium exists in the target storage medium of the target image file:
acquiring the number of target storage media of the target image file, and determining the reference failure probability of the target image file by combining the number of problem storage media in the target storage media and the duty ratio;
determining the mean value of failure probabilities of problem storage media in the target storage media and the mean value of failure probabilities of reliable storage media by utilizing the failure probabilities of the target storage media of the target image file, and determining the medium failure probability evaluation quantity of the target image file by combining the number of target storage media with the failure probability smaller than the preset probability;
when the medium failure probability evaluation value of the target image file is not larger than a preset value, determining the image failure probability of the target image file according to the reference failure probability of the target image file;
when the medium failure probability evaluation value of the target image file is larger than a preset value, determining the image failure probability of the target image file based on the medium failure probability evaluation value of the target image file and the reference failure probability of the target image file;
When no problem storage medium exists in the target storage medium of the target image file:
and determining the image failure probability of the target image file according to the average value of the failure probabilities of the target storage media of the target image file.
In this embodiment, the determination of the image failure probability of the target image file is determined according to the failure probabilities of different target storage media, so that not only is the storage stability of the target storage media in the target image file considered, but also the number and the duty ratio of problem storage media in the target storage media are considered, the reliable evaluation of the failure risk of the target image file is realized, and a foundation is laid for realizing the integrity and storage reliability protection of the target image file.
S3, screening available storage media according to failure probabilities of different storage media, determining browsing hotness of different image files according to browsing data of different image files, and determining a hot file of the image files according to the browsing hotness;
in one possible embodiment, the determining of the browsing hotness of the different image files according to the browsing data of the different image files in the step S3 specifically includes:
Determining the browsing times and the number of browsing persons of the image file according to the browsing data of the image file, and determining the number of matched browsing persons of the image file according to the browsing times of the number of browsing persons;
and respectively determining the browsing heat of the image file under the matched browsing number, the browsing number and the browsing frequency according to the matched browsing number, the browsing number and the browsing frequency of the image file, and determining the browsing heat of different image files according to the browsing heat of the image file under the matched browsing number, the browsing number and the browsing frequency.
S4, obtaining storage data of the hot files and storage data of the image files in the available storage media, determining storage reliability of the available storage media by combining failure probability of the available storage media, and determining the prestored available storage media of the target image files according to the storage reliability and the image failure probability of the target image files.
In one possible embodiment, as shown in fig. 4, the method for determining the storage reliability of the available storage medium in the step S4 is as follows:
S41, determining the storage quantity of the image files in the available storage medium based on the storage data of the image files in the available storage medium, judging whether the storage quantity of the image files in the available storage medium is within a preset file quantity range, if so, entering the next step, and if not, entering the step S44;
s42, determining the storage quantity of the hot files in the available storage medium according to the storage data of the hot files in the available storage medium, judging whether the storage quantity of the hot files in the available storage medium meets the requirement, if so, entering the next step, and if not, entering the step S44;
s43, determining whether the heat of the available storage medium meets the requirement according to the read-write times of the available storage medium and the use time of the available storage medium, if so, determining the storage reliability of the available storage medium according to the failure probability of the available storage medium, and if not, entering the next step;
s44, determining the using heat of the available storage medium based on the reading and writing times of the available storage medium, the using time of the available storage medium, the storage quantity of the image files and the hot files, and determining the storage reliability of the available storage medium according to the using heat of the available storage medium, the failure probability and the residual storage space.
In one possible embodiment, the determining, in step S4, the available storage medium for the transfer of the target image file according to the storage reliability and the image failure probability of the target image file specifically includes:
determining the transfer sequence of the available storage medium for transferring the target image file according to the storage reliability;
determining the number of the available storage media transferred to the target image file according to the image failure probability of the target image file;
and determining the available storage media of the target image file through the number of the available storage media of the target image file and the storage sequence.
In this embodiment, the storage data of the files in the available storage medium and the failure probability of the available storage medium are integrated to determine the storage reliability of the available storage medium, which not only simply considers the differences of the storage stability and the failure probability of different available storage media, but also considers the differences of browsing heat of different available storage media due to the differences of the stored video files, thereby laying a foundation for targeted transfer processing of the target image files.
In another aspect, as shown in FIG. 5, the present invention provides a computer system comprising: a communicatively coupled memory and processor, and a computer program stored on the memory and capable of running on the processor, characterized by: the processor executes the integrity protection method of the image file when running the computer program.
The method for protecting the integrity of the image file specifically comprises the following steps:
determining a target storage medium through a target image file, determining the read-write times of the target storage medium based on the use data of the target storage medium, and determining the accumulated read-write data quantity of the target storage medium according to the read-write data quantity of different read-write times of the target storage medium;
determining the read-write life time and the maximum read-write data volume of the target storage medium by utilizing the type of the target storage medium, and determining a read-write time safety limit value and a read-write data volume safety limit value by the read-write life time and the maximum read-write data volume of the target storage medium;
when the accumulated read-write data volume of the target storage medium is smaller than the read-write data volume safety limit value and the read-write times of the target storage medium are smaller than the read-write life times:
Determining the failure probability of the target storage medium according to the ratio of the accumulated read-write data volume of the target storage medium to the read-write data volume safety limit value and the ratio of the read-write times of the target storage medium to the read-write life times;
when the accumulated read-write data volume of the target storage medium is not less than the read-write data volume safety limit value or the read-write times of the target storage medium is not less than the read-write life times:
dividing the read-write times into severe read-write times and mild read-write times by using the read-write data quantity of different read-write times of the target storage medium, and determining the use failure probability of the target storage medium according to the read-write life times, the severe read-write times, the mild read-write times and the accumulated read-write data quantity of the target storage medium;
acquiring the number of users and the service life of the target storage medium, correcting the use failure probability according to the number of users and the service life of the target storage medium to obtain the failure probability of the target storage medium, and dividing the target storage medium into a problem storage medium and a reliable storage medium by utilizing the failure probability;
Acquiring the duty ratio of a problem storage medium and a reliable storage medium in the target storage medium, further determining the image failure probability of the target image file by combining the failure probabilities of different target storage media, and entering the next step when the image failure probability of the target image file does not meet the requirement;
screening available storage media according to failure probabilities of different storage media, determining browsing hotness of different image files according to browsing data of different image files, and determining a hot file of the image files according to the browsing hotness;
and acquiring storage data of the hot files and storage data of the image files in the available storage media, determining the storage reliability of the available storage media by combining the failure probability of the available storage media, and determining the prestored available storage media of the target image files according to the storage reliability and the image failure probability of the target image files.
In another aspect, the present invention provides a computer storage medium having a computer program stored thereon, which when executed in a computer causes the computer to perform a method for protecting the integrity of an image file as described above.
The method for protecting the integrity of the image file specifically comprises the following steps:
determining a target storage medium through a target image file, determining failure probabilities of different target storage media according to using data of the target storage medium, and dividing the target storage medium into a problem storage medium and a reliable storage medium by using the failure probabilities;
when a problem storage medium exists in the target storage medium of the target image file:
acquiring the number of target storage media of the target image file, and determining the reference failure probability of the target image file by combining the number of problem storage media in the target storage media and the duty ratio;
determining the mean value of failure probabilities of problem storage media in the target storage media and the mean value of failure probabilities of reliable storage media by utilizing the failure probabilities of the target storage media of the target image file, and determining the medium failure probability evaluation quantity of the target image file by combining the number of target storage media with the failure probability smaller than the preset probability;
when the medium failure probability evaluation value of the target image file is not larger than a preset value, determining the image failure probability of the target image file according to the reference failure probability of the target image file;
When the medium failure probability evaluation value of the target image file is larger than a preset value, determining the image failure probability of the target image file based on the medium failure probability evaluation value of the target image file and the reference failure probability of the target image file;
when no problem storage medium exists in the target storage medium of the target image file:
determining the image failure probability of the target image file according to the average value of the failure probabilities of the target storage media of the target image file, and entering the next step when the image failure probability of the target image file does not meet the requirement;
screening available storage media according to failure probabilities of different storage media, determining browsing hotness of different image files according to browsing data of different image files, and determining a hot file of the image files according to the browsing hotness;
and acquiring storage data of the hot files and storage data of the image files in the available storage media, determining the storage reliability of the available storage media by combining the failure probability of the available storage media, and determining the prestored available storage media of the target image files according to the storage reliability and the image failure probability of the target image files.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, devices, non-volatile computer storage medium embodiments, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the section of the method embodiments being relevant.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing is merely one or more embodiments of the present description and is not intended to limit the present description. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of one or more embodiments of the present description, is intended to be included within the scope of the claims of the present description.

Claims (10)

1. An integrity protection method for an image file, comprising the steps of:
determining a target storage medium through a target image file, determining failure probabilities of different target storage media according to using data of the target storage medium, and dividing the target storage medium into a problem storage medium and a reliable storage medium by using the failure probabilities;
acquiring the duty ratio of a problem storage medium and a reliable storage medium in the target storage medium, further determining the image failure probability of the target image file by combining the failure probabilities of different target storage media, and entering the next step when the image failure probability of the target image file does not meet the requirement;
the method for determining the image failure probability of the target image file comprises the following steps:
s21, determining whether the target image file has failure risk or not based on the duty ratio of the problem storage medium in the target storage medium, if so, taking the duty ratio of the problem storage medium in the target storage medium as the image failure probability of the target image file, and if not, entering the next step;
s22, judging whether a problem storage medium exists in the target storage medium, if so, entering a step S24, and if not, entering a next step;
S23, determining whether a target storage medium with the failure probability larger than a preset probability exists or not according to the failure probability of the target storage medium, if so, entering a step S24, and if not, determining the image failure probability of the target image file through the mean value of the failure probabilities of the target storage medium;
s24, acquiring the number of target storage media of the target image file, and determining the reference failure probability of the target image file by combining the number of problem storage media in the target storage media and the duty ratio;
s25, determining the mean value of failure probabilities of problem storage media in the target storage media and the mean value of failure probabilities of reliable storage media by utilizing the failure probabilities of the target storage media of the target image file, determining the medium failure probability evaluation quantity of the target image file by combining the number of the target storage media with the failure probability smaller than the preset probability, and determining the image failure probability of the target image file based on the medium failure probability evaluation quantity of the target image file and the reference failure probability of the target image file;
screening available storage media according to failure probabilities of different storage media, determining browsing hotness of different image files according to browsing data of different image files, and determining a hot file of the image files according to the browsing hotness;
Acquiring storage data of a popular file and storage data of an image file in the available storage medium, determining storage reliability of the available storage medium by combining failure probability of the available storage medium, and determining a prestored available storage medium of the target image file according to the storage reliability and the image failure probability of the target image file;
the method for determining the storage reliability of the available storage medium comprises the following steps:
s41, determining the storage quantity of the image files in the available storage medium based on the storage data of the image files in the available storage medium, judging whether the storage quantity of the image files in the available storage medium is within a preset file quantity range, if so, entering the next step, and if not, entering the step S44;
s42, determining the storage quantity of the hot files in the available storage medium according to the storage data of the hot files in the available storage medium, judging whether the storage quantity of the hot files in the available storage medium meets the requirement, if so, entering the next step, and if not, entering the step S44;
s43, determining whether the heat of the available storage medium meets the requirement according to the read-write times of the available storage medium and the use time of the available storage medium, if so, determining the storage reliability of the available storage medium according to the failure probability of the available storage medium, and if not, entering the next step;
S44, determining the using heat of the available storage medium based on the reading and writing times of the available storage medium, the using time of the available storage medium, the storage quantity of the image files and the hot files, and determining the storage reliability of the available storage medium according to the using heat of the available storage medium, the failure probability and the residual storage space.
2. The method of claim 1, wherein the target storage medium is determined according to a storage medium of the target image file, and in particular, according to a storage medium corresponding to a file body of the target image file.
3. The method of claim 1, wherein the usage data of the target storage medium includes a number of times the target storage medium is read and written, and a number of times the target storage medium is read and written, a number of users, and a service life.
4. The method for protecting the integrity of an image file according to claim 1, wherein said dividing said target storage medium into a problem storage medium and a reliable storage medium using said failure probability comprises:
And when the failure probability of the target storage medium is not in the preset probability interval, the target storage medium is divided into problem storage media.
5. The method for protecting the integrity of an image file according to claim 1, wherein the method for determining the failure probability of the target storage medium comprises the steps of:
determining the read-write times of the target storage medium based on the use data of the target storage medium, and determining the accumulated read-write data amount of the target storage medium according to the read-write data amounts of different read-write times of the target storage medium;
determining the read-write life time and the maximum read-write data volume of the target storage medium by utilizing the type of the target storage medium, and determining a read-write time safety limit value and a read-write data volume safety limit value by the read-write life time and the maximum read-write data volume of the target storage medium;
when the accumulated read-write data volume of the target storage medium is smaller than the read-write data volume safety limit value and the read-write times of the target storage medium are smaller than the read-write life times:
Determining the failure probability of the target storage medium according to the ratio of the accumulated read-write data volume of the target storage medium to the read-write data volume safety limit value and the ratio of the read-write times of the target storage medium to the read-write life times;
when the accumulated read-write data volume of the target storage medium is not less than the read-write data volume safety limit value or the read-write times of the target storage medium is not less than the read-write life times:
dividing the read-write times into severe read-write times and mild read-write times by using the read-write data quantity of different read-write times of the target storage medium, and determining the use failure probability of the target storage medium according to the read-write life times, the severe read-write times, the mild read-write times and the accumulated read-write data quantity of the target storage medium;
and acquiring the number of users and the service life of the target storage medium, and correcting the use failure probability according to the number of users and the service life of the target storage medium to obtain the failure probability of the target storage medium.
6. The method for protecting the integrity of an image file according to claim 1, wherein determining the image failure probability of the target image file based on the medium failure probability evaluation of the target image file and the reference failure probability of the target image file comprises:
When the medium failure probability evaluation value of the target image file is not larger than a preset value, determining the image failure probability of the target image file according to the reference failure probability of the target image file;
and when the medium failure probability evaluation value of the target image file is larger than a preset value, determining a correction amount through the medium failure probability evaluation value of the target image file and the preset value, and determining the image failure probability of the target image file according to the correction amount and the reference failure probability.
7. The method of claim 1, wherein the image failure probability of the target image file ranges from 0 to 1, and wherein the image failure probability of the target image file is determined to be unsatisfactory when the image failure probability of the target image file is greater than a predetermined image safety limit.
8. The method of claim 1, wherein the determining the browsing hotness of different image files according to the browsing data of different image files comprises:
determining the browsing times and the number of browsing persons of the image file according to the browsing data of the image file, and determining the number of matched browsing persons of the image file according to the browsing times of the number of browsing persons;
And respectively determining the browsing heat of the image file under the matched browsing number, the browsing number and the browsing frequency according to the matched browsing number, the browsing number and the browsing frequency of the image file, and determining the browsing heat of different image files according to the browsing heat of the image file under the matched browsing number, the browsing number and the browsing frequency.
9. A computer system, comprising: a communicatively coupled memory and processor, and a computer program stored on the memory and capable of running on the processor, characterized by: the processor, when executing the computer program, performs a method for protecting the integrity of an image file according to any one of claims 1-8.
10. A computer storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform a method of integrity protection of an image file as claimed in any one of claims 1 to 8.
CN202311379497.8A 2023-10-24 2023-10-24 Integrity protection method, system and storage medium for image file Active CN117113440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311379497.8A CN117113440B (en) 2023-10-24 2023-10-24 Integrity protection method, system and storage medium for image file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311379497.8A CN117113440B (en) 2023-10-24 2023-10-24 Integrity protection method, system and storage medium for image file

Publications (2)

Publication Number Publication Date
CN117113440A CN117113440A (en) 2023-11-24
CN117113440B true CN117113440B (en) 2024-02-02

Family

ID=88811410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311379497.8A Active CN117113440B (en) 2023-10-24 2023-10-24 Integrity protection method, system and storage medium for image file

Country Status (1)

Country Link
CN (1) CN117113440B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6023710A (en) * 1997-12-23 2000-02-08 Microsoft Corporation System and method for long-term administration of archival storage
CN103996105A (en) * 2014-06-13 2014-08-20 上海珉智信息科技有限公司 Image file electronic data management system
CN107766178A (en) * 2017-10-24 2018-03-06 上海金档信息技术有限公司 Electronic record storage system, storage method and restorative procedure
WO2018126742A1 (en) * 2017-01-05 2018-07-12 福建亿榕信息技术有限公司 Electronic batch processing method and system for stored archives, and storage medium
CN112668635A (en) * 2020-12-25 2021-04-16 浙江大华技术股份有限公司 Image archiving method, device, equipment and computer storage medium
CN114647534B (en) * 2022-05-24 2022-09-20 国网山东省电力公司营销服务中心(计量中心) Data storage method and device based on digital control equipment
CN115543697A (en) * 2022-11-30 2022-12-30 北京网智易通科技有限公司 Electronic archive storage method and device, electronic equipment and storage medium
CN115544377A (en) * 2022-11-25 2022-12-30 浙江星汉信息技术股份有限公司 Cloud storage-based file heat evaluation and updating method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6023710A (en) * 1997-12-23 2000-02-08 Microsoft Corporation System and method for long-term administration of archival storage
CN103996105A (en) * 2014-06-13 2014-08-20 上海珉智信息科技有限公司 Image file electronic data management system
WO2018126742A1 (en) * 2017-01-05 2018-07-12 福建亿榕信息技术有限公司 Electronic batch processing method and system for stored archives, and storage medium
CN107766178A (en) * 2017-10-24 2018-03-06 上海金档信息技术有限公司 Electronic record storage system, storage method and restorative procedure
CN112668635A (en) * 2020-12-25 2021-04-16 浙江大华技术股份有限公司 Image archiving method, device, equipment and computer storage medium
CN114647534B (en) * 2022-05-24 2022-09-20 国网山东省电力公司营销服务中心(计量中心) Data storage method and device based on digital control equipment
CN115544377A (en) * 2022-11-25 2022-12-30 浙江星汉信息技术股份有限公司 Cloud storage-based file heat evaluation and updating method
CN115543697A (en) * 2022-11-30 2022-12-30 北京网智易通科技有限公司 Electronic archive storage method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
电子档案存储技术前期研究;冯丽伟;;中国档案(第01期);全文 *

Also Published As

Publication number Publication date
CN117113440A (en) 2023-11-24

Similar Documents

Publication Publication Date Title
JP4487978B2 (en) Semiconductor memory device management system, program, and semiconductor memory device management method
US8230184B2 (en) Techniques for writing data to different portions of storage devices based on write frequency
US8055834B2 (en) Method for preventing read-disturb happened in non-volatile memory and controller thereof
US20090044085A1 (en) Defect management method for storage medium and system thereof
US10734033B2 (en) Shingled magnetic recording storage system
US8352807B2 (en) Semiconductor memory device, host device and semiconductor memory system
CN110515549B (en) A data migration method and device
US20130132651A1 (en) Electronic system and memory managing method thereof
CN103257830A (en) Storage cell accessing method and storage cell
US11734110B1 (en) Storage device reclassification system
CN116467225A (en) Bad block management method of flash memory, storage medium, electronic device and solid state disk
US20060259814A1 (en) Method and system for optimizing testing of memory stores
CN108614743A (en) Super data block processing method and device based on NAND flash
CN117113440B (en) Integrity protection method, system and storage medium for image file
US11822429B2 (en) Storage device raid data write intermediate parity system
CN101673229A (en) Storage system and method for automatically backing up storage data of flash memory
CN110287164B (en) Data recovery method and device and computer equipment
US20230289087A1 (en) Read-disturb-based read temperature determination system
CN105224254B (en) A kind of data processing method and electronic equipment
US20100037004A1 (en) Storage system for backup data of flash memory and method for the same
US12248381B2 (en) Data retention event preparation/recovery system
CN118228282B (en) Dynamic data security full-link detection method and system
US8725930B2 (en) Semiconductor memory device
US11983424B2 (en) Read disturb information isolation system
US20230244410A1 (en) Read-disturb-based read temperature information access system

Legal Events

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