CN112071334A - Method and device for verifying position of optical disc - Google Patents

Method and device for verifying position of optical disc Download PDF

Info

Publication number
CN112071334A
CN112071334A CN202010845073.6A CN202010845073A CN112071334A CN 112071334 A CN112071334 A CN 112071334A CN 202010845073 A CN202010845073 A CN 202010845073A CN 112071334 A CN112071334 A CN 112071334A
Authority
CN
China
Prior art keywords
optical disc
target
disc
information
preset
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
CN202010845073.6A
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.)
Shenzhen Yunxuan Technology Co ltd
Original Assignee
Shenzhen Yunxuan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yunxuan Technology Co ltd filed Critical Shenzhen Yunxuan Technology Co ltd
Priority to CN202010845073.6A priority Critical patent/CN112071334A/en
Publication of CN112071334A publication Critical patent/CN112071334A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B7/00Recording or reproducing by optical means, e.g. recording using a thermal beam of optical radiation by modifying optical properties or the physical structure, reproducing using an optical beam at lower power by sensing optical properties; Record carriers therefor
    • G11B7/004Recording, reproducing or erasing methods; Read, write or erase circuits therefor
    • G11B7/0045Recording
    • 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
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B7/00Recording or reproducing by optical means, e.g. recording using a thermal beam of optical radiation by modifying optical properties or the physical structure, reproducing using an optical beam at lower power by sensing optical properties; Record carriers therefor
    • G11B7/004Recording, reproducing or erasing methods; Read, write or erase circuits therefor
    • G11B7/0045Recording
    • G11B7/00458Verification, i.e. checking data during or after recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Optical Recording Or Reproduction (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

The invention discloses a method and a device for verifying the position of an optical disk, wherein the method comprises the following steps: acquiring target disc ID information, target disc position information and target disc directory information corresponding to a target disc to be verified; acquiring preset optical disc directory information corresponding to the target optical disc ID information in an appointed database, and judging whether the target optical disc directory information is the same as the preset optical disc directory information or not; if not, judging that the position information of the target optical disc corresponding to the target optical disc is abnormal. The invention can check the position of the optical disk in time, and avoid the problem of abnormal position of the optical disk caused by system failure or artificial misoperation.

Description

Method and device for verifying position of optical disc
Technical Field
The present invention relates to the field of optical disc verification application technology, and in particular, to a method and an apparatus for verifying the position of an optical disc.
Background
At present, the general data archiving storage media include magnetic disks, magnetic tapes and optical disks, and it is now very common to write files on optical disks. In a practical environment, more and more important data needs to be preserved for a long time, and only optical disc storage has the characteristics of long-term preservation and low maintenance cost because the optical disc can reliably preserve files for more than 30 years. Although the writing performance of the optical disc is poor and the number of writing times is small, it happens to conform to the characteristics of more reading and less writing of cold data. Therefore, more and more enterprises select the optical disc library as the storage medium based on the characteristics of the optical disc, such as high safety, strong reliability, long service life, low cost, and the like. Usually, a plurality of files are recorded in a plurality of optical discs, the capacity of each file is often different, and the total capacity of the files recorded in each optical disc may also be different. However, in the process of writing a file on an optical disc, it is very likely that the position of the optical disc is abnormal, so that the content of the file written on the optical disc is inconsistent with the content of the file pre-stored in the database, which causes various problems in the use of the optical disc, affects the user experience, and causes user loss.
Disclosure of Invention
The embodiment of the invention provides a method and a device for verifying the position of an optical disk, which aim to solve the following problems in the prior art: the position of the optical disc is abnormal in the process of recording the file, so that the content of the file recorded on the optical disc is inconsistent with the content of the file prestored in the database, the user experience is influenced, and the user loss is caused.
In order to solve the above technical problem, a first technical solution adopted in the embodiments of the present invention is as follows:
a method of verifying a position of an optical disc, comprising: acquiring target disc ID information, target disc position information and target disc directory information corresponding to a target disc to be verified; acquiring preset optical disc directory information corresponding to the target optical disc ID information in an appointed database, and judging whether the target optical disc directory information is the same as the preset optical disc directory information or not; if not, judging that the position information of the target optical disc corresponding to the target optical disc is abnormal.
Optionally, the determining that the target disc position information corresponding to the target disc is abnormal includes: acquiring preset optical disc position information corresponding to the preset optical disc directory information; and placing the target optical disc to an optical disc placing position corresponding to the preset optical disc position information according to the preset optical disc position information.
Optionally, the placing the target optical disc to the optical disc placing position corresponding to the preset optical disc position information according to the preset optical disc position information, then includes: and performing position abnormity marking and verified marking on the target optical disc placed at the optical disc placing position corresponding to the preset optical disc position information, and starting verification of the next optical disc.
Optionally, the obtaining of the target disc ID information, the target disc position information, and the target disc directory information corresponding to the target disc to be verified includes: acquiring the position information of the target optical disc according to the original position of the target optical disc to be verified; and mounting the target optical disc to be verified to a target optical drive, and reading a file directory on the target optical disc to obtain the directory information of the target optical disc.
Optionally, the determining whether the target disc directory information is the same as the preset disc directory information includes: and if the target optical disc directory information is the same as the preset optical disc directory information, taking the target optical disc out of the target optical drive, and putting the target optical disc back to the original position.
Optionally, the returning the target optical disc to its original position includes: judging whether the target optical disc to be verified is completely verified or not; if yes, stopping the checking operation, otherwise starting the checking of the next optical disc.
In order to solve the above technical problem, a second technical solution adopted in the embodiments of the present invention is as follows:
an apparatus for verifying a position of an optical disc, comprising: the acquisition module is used for acquiring target optical disc ID information, target optical disc position information and target optical disc directory information corresponding to a target optical disc to be verified; a judging module, configured to obtain preset optical disc directory information corresponding to the target optical disc ID information in an assigned database, and judge whether the target optical disc directory information is the same as the preset optical disc directory information; and the processing module is used for judging that the position information of the target optical disc corresponding to the target optical disc is abnormal if the target optical disc directory information is different from the preset optical disc directory information.
In order to solve the above technical problem, a third technical solution adopted in the embodiments of the present invention is as follows:
a storage medium having stored thereon a computer program which, when executed, implements a method of verifying a position of an optical disc as described above.
In order to solve the above technical problem, a fourth technical solution adopted in the embodiments of the present invention is as follows:
a computer device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the method of verifying the position of an optical disc as described above when executing the computer program.
The embodiment of the invention has the beneficial effects that: different from the situation in the prior art, the embodiment of the present invention obtains the target disc ID information, the target disc position information, and the target disc directory information corresponding to the target disc to be verified, then obtains the preset disc directory information corresponding to the target disc ID information in the specified database, and finally determines whether the target disc directory information is the same as the preset disc directory information, if not, determines that the target disc position information corresponding to the target disc is abnormal, so as to verify the position of the disc in time, thereby avoiding the problem of disc position abnormality caused by system failure or human misoperation.
Drawings
Fig. 1 is a flowchart illustrating an implementation of an embodiment of a method for verifying an optical disc position according to a first embodiment of the present invention;
FIG. 2 is a partial structural frame diagram of an embodiment of an apparatus for verifying the position of an optical disc according to a second embodiment of the present invention;
FIG. 3 is a partial structural framework diagram of an embodiment of a storage medium according to a third embodiment of the present invention;
fig. 4 is a partial structural framework diagram of an embodiment of a computer device according to a fourth embodiment of the present invention.
Detailed Description
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a method for verifying an optical disc position according to the present invention, which can be obtained by referring to fig. 1, and the method for verifying an optical disc position according to the present invention includes:
step S101: the ID information of the target disc, the position information of the target disc (i.e. the current placement position of the disc), and the directory information of the target disc corresponding to the target disc to be verified are obtained.
Step S102: and acquiring preset optical disc directory information corresponding to the target optical disc ID information in an appointed database, and judging whether the target optical disc directory information is the same as the preset optical disc directory information or not. Wherein the preset optical disc directory information is pre-stored in a designated database.
Step S103: if the target optical disc directory information is different from the preset optical disc directory information, it is determined that the target optical disc position information corresponding to the target optical disc is abnormal, that is, the target optical disc should be placed at a correct position again, if the target optical disc directory information is not the same as the preset optical disc directory information.
In this embodiment, optionally, the determining that the target disc position information corresponding to the target disc is abnormal includes:
first, preset disc position information corresponding to the preset disc directory information is obtained, wherein the preset disc directory information and the preset disc position information correspond to each other one to one.
Secondly, according to the preset optical disc position information, the target optical disc is placed at an optical disc placing position corresponding to the preset optical disc position information.
In this embodiment, optionally, the placing the target optical disc to the optical disc placing position corresponding to the preset optical disc position information according to the preset optical disc position information includes:
and performing position abnormity marking and verified marking on the target optical disc placed at the optical disc placing position corresponding to the preset optical disc position information, and starting verification of the next optical disc. The abnormal position marking and the verified position marking are carried out on the target optical disc, so that the checking work of workers is facilitated, and the confusion between the normally placed optical disc and the abnormally placed optical disc is avoided.
In this embodiment, optionally, the obtaining of the target disc ID information, the target disc position information, and the target disc directory information corresponding to the target disc to be verified includes:
firstly, the position information of the target optical disc is obtained according to the original position of the target optical disc to be verified.
Secondly, the target optical disc to be verified is mounted on a target optical drive, and a file directory on the target optical disc is read to obtain the target optical disc directory information.
In this embodiment, optionally, the determining whether the target disc directory information is the same as the preset disc directory information includes:
and if the target optical disc directory information is the same as the preset optical disc directory information, taking the target optical disc out of the target optical drive, and putting the target optical disc back to the original position.
In this embodiment, optionally, the returning the target optical disc to its original position includes:
first, it is determined whether the target optical disc to be verified has been completely verified.
Secondly, if the target optical disc to be verified is completely verified, the verification operation is stopped, otherwise, the verification of the next optical disc is started.
The embodiment of the invention can check the position of the optical disc in time by acquiring the target optical disc ID information, the target optical disc position information and the target optical disc directory information corresponding to the target optical disc to be checked, then acquiring the preset optical disc directory information corresponding to the target optical disc ID information in the specified database, finally judging whether the target optical disc directory information is the same as the preset optical disc directory information, and if not, judging that the target optical disc position information corresponding to the target optical disc is abnormal, thereby avoiding the problem of optical disc position abnormality caused by system failure or artificial misoperation.
Example two
Referring to fig. 2, fig. 2 is a partial structural frame diagram of an apparatus for verifying an optical disc position according to an embodiment of the present invention, which can be obtained by referring to fig. 2, and an apparatus 100 for verifying an optical disc position according to the present invention includes:
the obtaining module 110 is configured to obtain target disc ID information, target disc position information, and target disc directory information corresponding to a target disc to be verified.
The determining module 120 is configured to obtain preset optical disc directory information corresponding to the target optical disc ID information in the specified database, and determine whether the target optical disc directory information is the same as the preset optical disc directory information.
The processing module 130 is configured to determine that the target disc position information corresponding to the target disc is abnormal if the target disc directory information is different from the preset disc directory information.
The embodiment of the invention can check the position of the optical disc in time by acquiring the target optical disc ID information, the target optical disc position information and the target optical disc directory information corresponding to the target optical disc to be checked, then acquiring the preset optical disc directory information corresponding to the target optical disc ID information in the specified database, finally judging whether the target optical disc directory information is the same as the preset optical disc directory information, and if not, judging that the target optical disc position information corresponding to the target optical disc is abnormal, thereby avoiding the problem of optical disc position abnormality caused by system failure or artificial misoperation.
EXAMPLE III
Referring to fig. 3, it can be seen that, according to an embodiment of the present invention, a storage medium 10, such as: ROM/RAM, magnetic disk, optical disk, etc., on which a computer program 11 is stored, which computer program 11, when executed, implements a method of verifying the position of an optical disk as described in the first embodiment. Since the method for verifying the position of the optical disc has been described in detail in the first embodiment, the description is not repeated here.
The method for verifying the position of the optical disc, which is realized by the embodiment of the invention, comprises the steps of obtaining target optical disc ID information, target optical disc position information and target optical disc directory information corresponding to a target optical disc to be verified, then obtaining preset optical disc directory information corresponding to the target optical disc ID information in an appointed database, finally judging whether the target optical disc directory information is the same as the preset optical disc directory information or not, if not, judging that the target optical disc position information corresponding to the target optical disc is abnormal, and timely verifying the position of the optical disc to avoid the problem of abnormal position of the optical disc caused by system failure or artificial misoperation.
Example four
Referring to fig. 4, a computer apparatus 20 according to an embodiment of the present invention includes a processor 21, a memory 22, and a computer program 221 stored in the memory 22 and executable on the processor 21, where the processor 21 executes the computer program 221 to implement the method for checking the position of the optical disc according to an embodiment. Since the method for verifying the position of the optical disc has been described in detail in the first embodiment, the description is not repeated here.
The method for verifying the position of the optical disc, which is realized by the embodiment of the invention, comprises the steps of obtaining target optical disc ID information, target optical disc position information and target optical disc directory information corresponding to a target optical disc to be verified, then obtaining preset optical disc directory information corresponding to the target optical disc ID information in an appointed database, finally judging whether the target optical disc directory information is the same as the preset optical disc directory information or not, if not, judging that the target optical disc position information corresponding to the target optical disc is abnormal, and timely verifying the position of the optical disc to avoid the problem of abnormal position of the optical disc caused by system failure or artificial misoperation.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method of verifying a position of an optical disc, comprising:
acquiring target disc ID information, target disc position information and target disc directory information corresponding to a target disc to be verified;
acquiring preset optical disc directory information corresponding to the target optical disc ID information in an appointed database, and judging whether the target optical disc directory information is the same as the preset optical disc directory information or not;
if not, judging that the position information of the target optical disc corresponding to the target optical disc is abnormal.
2. The method of claim 1, wherein the determining that the target disc position information corresponding to the target disc is abnormal comprises:
acquiring preset optical disc position information corresponding to the preset optical disc directory information;
and placing the target optical disc to an optical disc placing position corresponding to the preset optical disc position information according to the preset optical disc position information.
3. The method of claim 2, wherein the placing the target disc to the disc placing position corresponding to the preset disc position information according to the preset disc position information comprises:
and performing position abnormity marking and verified marking on the target optical disc placed at the optical disc placing position corresponding to the preset optical disc position information, and starting verification of the next optical disc.
4. The method of claim 1, wherein the obtaining target disc ID information, target disc position information, and target disc directory information corresponding to a target disc to be verified comprises:
acquiring the position information of the target optical disc according to the original position of the target optical disc to be verified;
and mounting the target optical disc to be verified to a target optical drive, and reading a file directory on the target optical disc to obtain the directory information of the target optical disc.
5. The method of claim 4, wherein said determining whether the target disc directory information is the same as the preset disc directory information comprises:
and if the target optical disc directory information is the same as the preset optical disc directory information, taking the target optical disc out of the target optical drive, and putting the target optical disc back to the original position.
6. A method of verifying optical disc position as claimed in claim 1, wherein said placing said target optical disc back to its original position, thereafter comprises:
judging whether the target optical disc to be verified is completely verified or not;
if yes, stopping the checking operation, otherwise starting the checking of the next optical disc.
7. The method of claim 1, wherein the target disc position information comprises a placement box information and a placement level information corresponding to the target disc.
8. An apparatus for verifying a position of an optical disc, comprising:
the acquisition module is used for acquiring target optical disc ID information, target optical disc position information and target optical disc directory information corresponding to a target optical disc to be verified;
a judging module, configured to obtain preset optical disc directory information corresponding to the target optical disc ID information in an assigned database, and judge whether the target optical disc directory information is the same as the preset optical disc directory information;
and the processing module is used for judging that the position information of the target optical disc corresponding to the target optical disc is abnormal if the target optical disc directory information is different from the preset optical disc directory information.
9. A storage medium having stored thereon a computer program which, when executed, implements a method of verifying a position of an optical disc as claimed in any one of claims 1 to 7.
10. A computer device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for verifying the position of an optical disc according to any one of claims 1 to 7 when executing the computer program.
CN202010845073.6A 2020-08-20 2020-08-20 Method and device for verifying position of optical disc Pending CN112071334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010845073.6A CN112071334A (en) 2020-08-20 2020-08-20 Method and device for verifying position of optical disc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010845073.6A CN112071334A (en) 2020-08-20 2020-08-20 Method and device for verifying position of optical disc

Publications (1)

Publication Number Publication Date
CN112071334A true CN112071334A (en) 2020-12-11

Family

ID=73660892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010845073.6A Pending CN112071334A (en) 2020-08-20 2020-08-20 Method and device for verifying position of optical disc

Country Status (1)

Country Link
CN (1) CN112071334A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107112035A (en) * 2015-01-22 2017-08-29 索尼公司 Information processor, information recording carrier, information processing method and program
CN111666042A (en) * 2020-04-08 2020-09-15 深圳市瑞飞科技有限公司 Method and device for verifying position of optical disc

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107112035A (en) * 2015-01-22 2017-08-29 索尼公司 Information processor, information recording carrier, information processing method and program
CN111666042A (en) * 2020-04-08 2020-09-15 深圳市瑞飞科技有限公司 Method and device for verifying position of optical disc

Similar Documents

Publication Publication Date Title
US8332695B2 (en) Data storage device tester
US8626463B2 (en) Data storage device tester
US8458526B2 (en) Data storage device tester
WO2020042593A1 (en) Production method for solid-state hard disk and solid-state hard disk
CN112416670B (en) Hard disk testing method, device, server and storage medium
CN113049939A (en) Chip aging self-testing method and system
CN111666042A (en) Method and device for verifying position of optical disc
US9257201B2 (en) Memory testing method and apparatus
US7484221B2 (en) Method and apparatus for logging the execution history of an operating system kernel
CN112071334A (en) Method and device for verifying position of optical disc
CN111897685A (en) Method and device for checking data in power failure, storage medium and electronic equipment
CN109582513B (en) JBOD test method and system based on general server
CN112071335A (en) Method and device for verifying optical disc recording file
CN110413463A (en) A kind of SMART information inspection method of hard disk
US6229743B1 (en) Method of a reassign block processing time determination test for storage device
US20220223177A1 (en) System and method for write-retry management
CN113190179B (en) Method for prolonging service life of mechanical hard disk, storage device and system
US8416660B2 (en) Recording quality evaluation method of optical disk and optical disk storage system
CN113625957B (en) Method, device and equipment for detecting hard disk faults
US9262264B2 (en) Error correction code seeding
CN111857573A (en) Intelligent replacement method and system based on RAID (redundant array of independent disks) fault member disk
US20120210061A1 (en) Computer and method for testing redundant array of independent disks of the computer
CN112732494B (en) Bad disk replacement method, device, equipment and medium of storage system
CN112071336A (en) Method and device for controlling operation of optical disc
US8179625B1 (en) Method for fast verification of servo patterns and test on magnetic media

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20201211

WD01 Invention patent application deemed withdrawn after publication