CN111666042A - 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
CN111666042A
CN111666042A CN202010271132.3A CN202010271132A CN111666042A CN 111666042 A CN111666042 A CN 111666042A CN 202010271132 A CN202010271132 A CN 202010271132A CN 111666042 A CN111666042 A CN 111666042A
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.)
Withdrawn
Application number
CN202010271132.3A
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 Ruifei Technology Co ltd
Original Assignee
Shenzhen Ruifei 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 Ruifei Technology Co ltd filed Critical Shenzhen Ruifei Technology Co ltd
Priority to CN202010271132.3A priority Critical patent/CN111666042A/en
Publication of CN111666042A publication Critical patent/CN111666042A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0677Optical disk device, e.g. CD-ROM, DVD
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B17/00Guiding record carriers not specifically of filamentary or web form, or of supports therefor
    • G11B17/02Details
    • G11B17/04Feeding or guiding single record carrier to or from transducer unit
    • G11B17/05Feeding or guiding single record carrier to or from transducer unit specially adapted for discs not contained within cartridges

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (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.
CN202010271132.3A 2020-04-08 2020-04-08 Method and device for verifying position of optical disc Withdrawn CN111666042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010271132.3A CN111666042A (en) 2020-04-08 2020-04-08 Method and device for verifying position of optical disc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010271132.3A CN111666042A (en) 2020-04-08 2020-04-08 Method and device for verifying position of optical disc

Publications (1)

Publication Number Publication Date
CN111666042A true CN111666042A (en) 2020-09-15

Family

ID=72382664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010271132.3A Withdrawn CN111666042A (en) 2020-04-08 2020-04-08 Method and device for verifying position of optical disc

Country Status (1)

Country Link
CN (1) CN111666042A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112071334A (en) * 2020-08-20 2020-12-11 深圳云宣科技有限公司 Method and device for verifying position of optical disc

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112071334A (en) * 2020-08-20 2020-12-11 深圳云宣科技有限公司 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
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
CN110413463A (en) A kind of SMART information inspection method of hard disk
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
US11682429B2 (en) System and method for write-retry management
US6229743B1 (en) Method of a reassign block processing time determination test for storage device
CN113190179B (en) Method for prolonging service life of mechanical hard disk, storage device and 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
US8416660B2 (en) Recording quality evaluation method of optical disk and optical disk storage system
CN111813748A (en) File system mounting method and device, electronic equipment and storage medium
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
CN112562774B (en) Storage device mounting method and device, computer device and storage medium
CN112071336A (en) Method and device for controlling operation of optical disc

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20200915

WW01 Invention patent application withdrawn after publication