A magneto-optical disc control system and method

Abstract: A magneto-optical disc control system and method, capable of applying conventional programs directly without requiring an initialization of the whole surface of a recording medium. When a readout request of data out of the magneto-optical disc device is given from a task program via an OS, a magneto-optical disc driver outputs a readout command to the magneto-optical disc device. When returning a blank check status from the magneto-optical disc device, the magneto-optical disc driver gives a notice for representing that a normal readout is performed to the OS, sets a specific initial value for the system into a buffer designated by the task program, and writes the initial value into a readout block on the recording medium. The OS gives a notice representing that the normal readout is performed to the task program, and the task program processes the data stored in the designated buffer as the readout data of the recording medium of the magneto-optical disc device.

Description: BACKGROUND OF THE INVENTION i) Field of the Invention: The present invention relates to a magneto-optical disc control method as described in the preamble od claim 1. ii) Description of the Related Arts: Recently, attention has fallen on the use of a magneto-optical disc device as a new memory suitable for a highly computerized environment. This magneto-optical disc device has well-known characteristic features, for instance, a magnetic film as a recording medium is used and an optical head having a laser light as a light source is used as a recording head. Also, a non-contact high density recording can be performed and, since the recording medium is composed of the magnetic film, the recording information is erasable and can be repeatedly recorded. In turn, as other magnetic recording media, a floppy disc or a hard disc are used, and usually these media are distributed after certain check data are written in. However, in case of the magneto-optical disc device, only erase processing is carried out and data writing is not performed before distributing. Hence, almost all areas are in undetermined states (not "0" nor "1" state). This non initialized area where data has never been written is hereinafter referred to as "a blank check state block". Accordingly, when a user uses these devices in a DOS (disk operating system) such as MS-DOS or the like, it is necessary to perform initialization by using a prepared initializing program to write a value such as "0" on the entire surface. However, since the magneto-optical disc device has a large capacity, it takes a long time such as 40 to 60 minutes for the initialization, which imposes a large load on the user. Further, with the capacity increase of the medium, the initialization time is inclined to increase, and thus it is considered that this will bring about an even bigger problem in the future. The reason why the initialization is required will now be described. In general, when use of a new recording medium is started, a usual operation is carried out as follows. That is, certain data are written at an initial time and then the written data are read out. However, depending on application programs (task programs), it may not be possible to perform a reading operation at the initial time, and in such a case, a measure should be considered. Before the appearance of the magneto-optical disc device, floppy disc and hard disc were used as the storage medium. However, in the DOS for performing the control and operation of these devices or the user's application program, the program is designed on the supposition that "0" can be read out of the position accessed for reading at the initial time. When the value other than "0" is read out, since only a normal or abnormal message can be returned from the device, an error is adapted to be displayed regardless of its cause. Hence, even when the blank check state block is accessed for reading at the initial time by using the DOS or the application program, the error arises. Accordingly, conventionally, the initialization is required prior to the use of the device. Further, another method can be considered, for example, the DOS or the application program is changed to another system which does not expect "0". However, the system expecting "0" as the value in the position firstly accessed for reading has been used for the almost all floppy discs and hard discs for a long time and this is the system giving actual results from a historical point of view. Hence, to change this system for the magneto-optical disc system is not realistic from a view point of compatibility. As a result, when the conventional application program is used as it is, the initialization of the magneto-optical disc device must be always carried out, and thus it takes a long time for this operation before the user can actually utilize the device. To enable writing operations on a recording medium that is not formatted, it is known (JP-63-044 366). to read data of the recording medium and to search the leading code. If no leading code can be found, i.e. if the recording medium is not formatted. a head code supplied from a memory is written on the recording medium, and recording data are then recorded. A method known from EP-A-0 364 176 is provided for improving the performance of high density storage media having a large number of data storage subdivisions and requiring lengthy format time, in particular, for magneto optical data storage means. This system includes formatting means that operates during a disc idle state to successively format selected unformatted subdivision. in addition. the formatting means also operates to format an unformatted subdivision in case that the computer system requires access to a formatted subdivision but a status information indicates that no formatted subdivision exists. During processing this request from a computer system the status of a requested subdivision is checked. If the process decides that the subdivision that pertains to the requests is "untested" this subdivision is tested and erased. Thereupon, the requested operation is performed. This method enables the use of an unformatted recording medium. However, If an upper program requests access to an unformatted subdivision the procedure of the upper program is interrupted until a non-formatted or untested subdivision has been formatted or tested. The object of the present invention is to provided a further magneto-optical disc control method of the initially named kind which enables the use of a non-initialized magneto-optical disc and which avoids the interruption of the process of an upper program with the initialization. This object is achieved by the method according to claim 1. The method according to the present invention enables effective handling non-initialized blocks on a data recording medium and can accomplish a smooth read out procedure of an upper program irrespective of a non-initialized readout block of a data recording medium, in particular of a magneto-optical disc since an interruption of the procedure of the upper program is due to an error of the readout operation can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS The objects, features and advantages of the present invention will become more apparent from the consideration of the following detailed description, taken in conjunction with the accompanying drawings, in which: Fig. 1 is a block diagram of a magneto-optical disc control system according to the present invention; Fig. 2 is a block diagram of a functional structure of the system shown in Fig. 1; and Fig. 3 is a flow chart showing a process executed by a magneto-optical disc driver shown in Fig. 2. DESCRIPTION OF THE PREFERRED EMBODIMENT Referring now to the drawings, wherein like reference characters designate like or corresponding parts throughout the views and thus the repeated description thereof can be omitted for brevity, there is shown in Figs. 1 and 2 one embodiment of a magneto-optical disc control system according to the present invention. As shown in Fig. 1, in the magneto-optical disc control system, a CPU (central processing unit) 2 for performing a control of the operation of the whole system is connected with a memory 3 and various controllers such as an SCSI (small computer system interface) controller 5, a printer controller 21, a communication controller 22 and the like via a local bus 4. The memory 3 stores various control programs and possesses a buffer memory 19 for temporarily storing the data communicated among the aforementioned connected devices. The SCSI controller 5 controls the data transfer between a SCSI bus 9 and the local bus 4 and includes a command register 6 for setting commands for a magneto-optical disc device 13, a status register 7 for setting various states and various messages output from the magneto-optical disc device 13, and a message buffer 8. A magneto-optical recording medium or disk (hereinafter referred to as "disc") 10 is inserted into the magneto-optical disc device 13, and the magneto-optical disc device 13 performs the reading and writing of the data from and into the disc 10. In this case, it is assumed that only a necessary minimum control program is written within the disc 10 and a physical initialization over the entire surface of the disc 10 is not carried out. The printer controller 21 and the communication controller 22 control a printer 15 and a communication line 17, respectively. Fig. 2 shows a functional structure of the system shown in Fig. 1. In Fig. 2, an OS (operating system) 12 is a basic program which is loaded into the memory 3 from an external memory device (not shown) at a system start time and is resident therein for controlling the whole system, and under this OS 12, control programs such as a magneto-optical disc driver 14 for controlling the magneto-optical disc device 13, a printer driver 16 for controlling the printer 15 and a communication line driver 18 for controlling the communication line 17 are placed. In this embodiment, four application programs 11-1, 11-2, 11-3 and 11-4 are provided so as to perform predetermined task processings under the OS 12. Next, the operation of the above-described magneto-optical disc control system will be described in connection with Fig. 3. Fig. 3 shows a processing flow of the magneto-optical disc driver 14. First, when a request for a data readout is given against the magneto-optical disc device 13 from any application program (for example, the application program 11-1) or the OS 12, the magneto-optical disc driver 14 outputs a readout command to the magneto-optical disc device 13 in step S101. More specifically, this processing is executed as follows. That is, the CPU 2 writes the readout command into the command register 6 of the SCSI controller 5, and the written readout command is transferred to the magneto-optical disc device 13. This readout command includes a readout block on the disc 10 of the magneto-optical disc device 13 and a designation of a readout buffer (buffer memory 19) for writing in the readout data. The readout command set in the command register 6 of the SCSI controller 5 is transferred to the magneto-optical disc device 13 via the SCSI bus 9. After executing the readout of the data against the specified block, the magneto-optical disc device 13 returns a finish message to the magneto-optical disc driver 14 in step S102. More specifically, this processing is carried out by writing the finish message into the message buffer 8 of the SCSI controller 5. The finish message is either a good status message, representing the fact that the readout wasnormally performed or a check status message for representing the fact that the readout was not normally executed and a certain check is required. When the finish message is the good status message (N in step S103), the normal processing is carried out. On the other hand, when the finish message is the check status message (Y in step S103), the magneto-optical disc driver 14 outputs a request command for further inquiring the content of the check status in step S104. More specifically, this processing is carried out as follows. That is, the CPU 2 writes the request command into the command register 6 of the SCSI controller 5 and the written request command is transferred to the magneto-optical disc device 13. In response to the request command, the magneto-optical disc device 13 returns a certain check status against the magneto-optical disc driver 14 in step S105. More specifically, this processing is executed as follows. That is, the check status is written into the status register 7 of the SCSI controller 5, and the CPU 2 reads out the written check status. In this case, since the physical initialization of the disc 10 is not performed, as described above, the magneto-optical disc device 13 returns a blank check status for representing the block where the writing has never been performed to the magneto-optical disc driver 14 (Y in step S106). In response to the blank check status, the magneto-optical disc driver 14 generates a message for representing the fact that the writing was normally performed to the OS 12 in step S107 and also sets a specific initial value for the system in the buffer memory 19 of the memory 3 in step S108. Also, the magneto-optical disc driver 14 gives an instruction to the magneto-optical disc device 13 so as to write this initial value into a proper block, that is, the readout block on the disc 10. More specifically, this processing is performed by writing an initial value write command into the command register 6 of the SCSI controller 5 by means of the CPU 2. By this operation, the initial value can be initially written in the readout block on the disc 10 in step S109. In this case, the specific initial value for the system means an expected value to be read out of the block accessed by the system for reading out, for instance, a value of "0" or the like can be used. Then, when the OS 12 receives a message representing the fact that the readout can be normally carried out, the OS 12 reports the fact that the readout result is normal to the application program 11-1. Upon receiving this message, the application program 11-1 processes the content ("0") of the buffer memory 19 of the memory 3 as the readout data of the magneto-optical disc device 13. On the other hand, in step S106, when the status returned from the magneto-optical disc device 13 in response to the request command is a status other than the blank check status, for example, in the case of a readout failure, a status representing the fact that the readout has actually failed, a parity error status representing the fact that a parity error was caused, or the like, the magneto-optical disc driver 14 transfers this status to the OS 12 as it is. Upon receiving this status, the OS 12 discriminates that an error has actually occurred and executes predetermined error processing. As described above, when the block accessed for reading on the disc 10 is a blank check status block, that is, a non-initialized block, the magneto-optical disc driver 14 gives a report representing the fact that the normal readout can be carried out to the OS 12 and sets the specific initial value for the system in the readout buffer. As a result, the error can be avoided. As described above, according to the present invention, even when a readout access to a non-initialized block on a magneto-optical recording medium or disc is carried out, no error is caused, and thus physical initialization processing required on commencement of use of a new medium the conventional system can be omitted. Therefore, a user can be released from the troublesome operation of the initialization requiring a long time, and a throughput of the operation can be remarkably improved.

Claims: A magneto-optical disc control method comprising: providing a readout command from a disc control program (14) to a magneto-optical disc device (13) in response to a data readout request from an upper program (12); reading out data in the magneto-optical disc device (13); writing the data from the magneto-optical disc device (13) into a buffer (19); and causing the upper program (12) to access to the data in the buffer (19) so as to process the data: characterized by providing the upper program (12) through the disc control program (14) with notice. that a normal readout is carried out when the magneto-optical disc device (13) returns a status indicating a non initialized state of a readout block to the disc control program (14) in response to the readout command; and causing the disc control program (14) to write a specific initial value, which is the expected value to be read out during a normal readout, into the buffer (19) designated by the upper program (12) and into the readout block of the magneto-optical disc (10). A method according to claim 1, characterized in that the specific initial value to be written into the buffer (19) is a value to be written into the magneto-optical recording medium (10) at an initialisation time of the magneto-optical recording medium (10). A method according to claim 1 or 2, characterized in that, when receiving a good status indicating that the normal readout is performed from the magneto-optical disc device (13), readout data sent along with the good status are written into the buffer (19) by the disc control program (14). A method according to claim 3, characterized in that, when receiving another status different from the status indicating non initialized state ofa readout block and the good status from the magneto-optical disc device (13) said another status is transferred to the upper program (12) by the disc control program (14), and, when receiving said another status from the disc control program (14) this is discriminated as a readout error and predetermined error processing is performed by the upper program (12). A method according to claim 1, 2 or 3, characterized in that the data are read out of the buffer (19) and the readout data are processed by the upper program (12) as data read out of the magneto-optical recording medium (10) of the magneto-optical disc device (13) in response to a request of the upper program (12). A method according to claim 4, characterized in that said another status is either a readout failure status indicating that the readout is actually failed or a parity error status indicating that a parity error is generated.

Inventors: NAKAMURA KENICHI, NAKAMURA, KENICHI
Applicants: SANYO ELECTRIC CO, SANYO ELECTRIC CO., LTD.
Application year: 1992
Main classification: G11B11
IPC codes: G06F3, G11B11, G11B20, G11B19