CN1395246A - Method for implementing virtual image optical disk and and its system hardware structure - Google Patents

Method for implementing virtual image optical disk and and its system hardware structure Download PDF

Info

Publication number
CN1395246A
CN1395246A CN 02121319 CN02121319A CN1395246A CN 1395246 A CN1395246 A CN 1395246A CN 02121319 CN02121319 CN 02121319 CN 02121319 A CN02121319 A CN 02121319A CN 1395246 A CN1395246 A CN 1395246A
Authority
CN
China
Prior art keywords
optical disk
disk
virtual image
file
image optical
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
CN 02121319
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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN 02121319 priority Critical patent/CN1395246A/en
Publication of CN1395246A publication Critical patent/CN1395246A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention belongs to the technique area of the optical disc network shared storage, related to the method of realizing the virtual mirroed optical discs as well as the system hardware structure. The structure includes following parts. The virtual mirrored optical file system is constructed in the single device and the single level direction. The following procedures: picking up directions of the virtual mirrored optical disc file, labeling the storage slot, mirroring the physical optical discs according the addressing mode of the continuous logic blocks are completed. Loading the loop back device makes the operating system manage the virtual mirrored optical disc file. The invented hardware structure increases the response speed of the system greatly.

Description

The implementation method of virtual image optical disk and system hardware structure thereof
Technical field
The invention belongs to CD network shared storage technique field, the particularly implementation method of virtual image optical disk and system hardware structure thereof design.
Background technology
Share in the implementation of storage system at numerous CD networks, the mirror optical disk server system becomes the stocking system that numerous application scenario is adopted day by day with the memory capacity of its super large, cheap unit carrying cost, so-called mirror optical disk server system is exactly one and by built-in procotol and file system the memory contents of many optical disks is mirrored to system in the server data hard disk, it can many optical disks of unified management, for the user provides CD network services shared
Current mirror optical disk server system is mostly with the mode mirror optical disk data of hard copy, the mode of hard copy is called direct copy again, directly copy is meant by directly reading data of optical disk, directly CD content is kept at mode on the data hard disk by the built-in file system format of server system.The storage format of data of optical disk in hard disk drive depends on built-in file system, and general mirror optical disk server adopts (SuSE) Linux OS, and the most general file layout is the Ext2 file layout on this operating system at present.As a lot of file system, Ext2 is based upon data and is stored in the file in the data block under this prerequisite.The user will carry out the process of partition format earlier to hard disk drive before using the disk drive memory data, format is a process of creating superblock and written document node, can take the storage space on a part of hard disk drive in this process.When using mirror optical disk server, the content of mirror optical disk also can only be kept at through on the hard disk drive of partition format, and its storage format also is to leave on the hard disk drive according to formative file layout reorganization through operating system.Because the mirror optical disk of storing on the general mirror optical disk server is not the optical file form of standard, therefore there are a series of problems.
1, assurance is seldom arrived in security.Though the Ext2 file system has obtained using the most widely in the distribution version of Linux, but, because what the deviser of Ext2 mainly considered is the problem of file system performance aspect, Ext2 does not write the information relevant with file simultaneously when writing file content, for example: authority, the owner and establishment and access time, in other words, Linux writes the content of file earlier, waits until the relevant information that just writes file at odd times then.Like this if occur writing after the file content but before writing the relevant information of file system's sudden power, just may cause to be in inconsistent state in file system.There is in the heap file operated system this situation of appearance can cause very serious consequence at one.
2, the utilization ratio of hard disk drive is lower.Because mirror optical disk server adopts the directly mode mirror optical disk content of copy, and the file system that operating system adopts is not the file layout that designs for mirror optical disk server specially, create the disk space of superblock and written document node table in the time of not only will expending the disk format space, and all to write down its corresponding fileinfo when a catalogue on every copy CD or a file, cause a large amount of unnecessary disk space wasting phenomenons, and increased the addressing number of times and the addressing time of system.
3, system start-up is slow behind the abnormal shutdown.Behind machine (power failure, system crash), only after carrying out consistency desired result by disk checking routine e2fsck, the Ext2 file system just can be loaded use to the Ext2 file system when starting next time improper.The time of operation e2fsck depends primarily on the size of Ext2 file system.The file system that verification is bigger slightly (tens GB) needs for a long time.If the quantity of documents on the file system is many, the time of verification is then longer.The file system of a verification hundreds of GB may need one hour or be longer.Usually mirror optical disk server need dispose tens GB to a hundreds of GB even more hard disk space, and this has greatly limited the availability of mirror optical disk server.
4, data stream output is discontinuous.Mirror optical disk server just simply copies file in the CD and catalogue in the hard disk, and CD content depositing on hard disk is not to meet the file system of compact disk file system construction standard.When the shortcoming that this mode is brought is a mirror optical disk on the user access server, system's output be not to be continuous, stable disk format data stream, but reorganize, leave at random the data stream on the hard disk through operating system.This requires during concerning this class real time access such as VCD/DVD the audio/video file of output continous-stable data stream, user capture they the time certainly existing defective, the result causes data output discontinuous, and video, sound signal influence viewing effect off and on greatly.
Summary of the invention
The method and the system hardware structure thereof of an effective constructing virtual image optical disk have been the objective of the invention is to propose, can conveniently the content of storing on each physical disc disc be stored on the data hard disk of mirror optical disk server system by the compact disk file system construction standard on this disc fully, the addressing time of shortening system, the response speed of quickening system realizes real data of optical disk stream output.
The method of a kind of constructing virtual image optical disk that the present invention proposes is characterized in that: comprise
1) structure sets up fully on data disks, single level directory, the virtual mirror optical disk file system of continuous dispensing;
2) the virtual image optical disk file to this virtual mirror optical disk file system carries out the catalogue extraction;
3) tag slot on the storage space of data disks is set up a new virtual image optical disk record with this, presses continuous logical blocks addressing mode mirror image physical disc disc;
4) this virtual image optical disk is loaded loopback equipment, realize the management of operating system this virtual image optical disk.
The method of the invention specifically may further comprise the steps:
One, at first to construct to set up and be equipped with, single level directory, the virtual mirror optical disk file system of continuous dispensing, the file system data structure of being constructed comprises as shown in Figure 1:
1). the disk total information data structure of construction data dish comprises the total information of coiling of disk sign having comprised this disk size information, directory area length, the data structure of information such as disk slack space.
2). the data structure of structure directory area, set each data disks and be operated system's control to set up the form that is equipped with, be installed on the mounting points of operating system, set up a directory area on each data disks, the filename of all virtual image optical disks of mirror image on this data disks, start sector number, file size have been preserved in this directory area, access right, the running time record;
3). construct the data structure of the file area of said virtual mirror optical disk file system; File area order on data disks is deposited file one by one, and a file is exactly a virtual image optical disk, and a file is preserved one by the content of the physical disc disc of mirror image;
4). construct the data structure of the disk slack space information of said each data disks in the mode of classified counting, distribute simultaneously or reclaim one group of continuous disk dish piece, the data structure of this disk slack space information is the free space table of a two dimension, each entry writes down the first block address of every group of idle dish piece and the piece number of the idle dish of this group piece, the delegation of a corresponding free space table of entry, each row of free space table is counted these two by a dish block address item and a piece and is formed.
After virtual mirror optical disk file system structure was finished, the file system interface by operating system provides joined the virtual mirror optical disk file system in the kernel of operating system.
Two, be equipped with in order to realize setting up, single level directory, the virtual mirror optical disk file system of depositing continuously need be carried out catalogue in advance to the virtual image optical disk file and be extracted.
1) establishes the catalogue dir1/dir2/ by name that M opens the virtual mirror optical disk file ... / dirN, file is called mirrorcdm;
2) note system disk catalogue is tower, after the mirror image order and catalogue data that installation procedure intercepting and capturing server system keeper sends, mirror image according to virtual image optical disk under the catalogue of system disk is created the sequence number catalogue that M opens virtual image optical disk in proper order, the sequence number of virtual image optical disk is from 0 open numbering, the sequence number catalogue of this virtual image optical disk is designated as cd (M-1), simultaneously under the virtual image dish composite catalog cdromtower of virtual mirror optical disk server successively according to 1 grade of catalogue dir1,2 grades of catalogue dir2,, the order of N level catalogue dirN is created the storing directory of virtual mirror optical disk file;
3) extraction of virtual image optical disk filename: after installation procedure obtains virtual image optical disk filename mirrorcdm, under the catalogue of said foundation, create the mounting points catalogue mirrorcdm/ identical, and set up from sequence number catalogue/tower/cd (M-1)/to cdromtower/dir1/dir2/ with virtual image optical disk filename mirrorcdm ... the soft link of/dirN/mirrorcdm/ catalogue;
4) search the disk mirroring space of data disks: search and have enough continuous storage space and can store by the data disks of the physical disc disc contents of mirror image, and, be designated as .iso/ finding first to have enough continuously the catalogue of searching hiding virtual image optical disk place under the installation directory of the data disks of storage space; Find the back to create the suffix name of the virtual image optical disk file that can identify the compact disk file system form under this catalogue, note is designated iso, and this virtual image optical disk filename is designated as mirrorcdm.iso.
Three, tag slot is pressed continuous logical blocks addressing mode mirror image physical disc disc, the virtual image optical disk of the realistic physical disc disc file system standard of structure in holding tank.
1) after having obtained one section continuous disk space that is large enough to hold this virtual image optical disk content, in the data structure of this foundation, add the occupied information of this section disk space, record start piece number and the piece sum that takies are finished the mark to this holding tank;
2) in said directory area, add the fileinfo of new virtual image optical disk, comprise the virtual image optical disk filename, start sector number, file size, access right, running time record;
3) data that write down according to physical disc in the continuous logical blocks addressing mode reading system CD-ROM drive, the 0th sector begins counting on the physical disc, order reads the content in the sector successively, and write in the holding tank space of being distributed according to the continuous logical blocks addressing mode, begin to write from first sector distributing, write while reading, until last sector of physical disc record data, write last sector of the storage space that is distributed; The total data that writes down in the physical disc has been write in the continuous holding tank of the storage space that distributed according to the data layout of optical disc storage fully, on the continuous storage space of this section, the master file of having preserved the actual physics optical disk describes the width of cloth, stop volume describes the width of cloth, catalogue listing, catalogue file and all fileinfo and file datas.
Four, said virtual image optical disk is loaded loopback equipment, realize the management of operating system to this virtual image optical disk, loopback equipment is a kind of mechanism of taking file to come simulated block equipment, here, is exactly to take virtual image optical disk file simulated block equipment.Specifically may further comprise the steps:
1) reads the start sector number of virtual image optical disk file by the virtual image optical disk filename, file size, access right, information such as running time record;
2) judge according to the suffix name of virtual image optical disk file which kind of compact disk file system construction standard the data layout of being stored in this file meets, by its corresponding compact disk file system construction standard form output file data stream.Since then, having finished the structure of virtual optic disk file system and the catalogue of virtual optical disk file extracts, the mirror image of the foundation of holding tank and actual physics optical disk, and realize the management of operating system to virtual image optical disk, intactly realized virtual image optical disk.
Realization principle of the present invention is described as follows:
Realize a high performance mirror optical disk server, very important technology is exactly the memory capacity that how provides according to disk space, realize each mirror optical disk file on the storage space of server with continuously and also the mode that meets original physical compact disk file system construction standard store.
By discovering, adopt the method for holding tank mirror image physical disc to have good feasibility.Thought based on holding tank mirror image physical disc is such: is disc driver that the storage space that hard disk drive or disk array provide is divided into mass part continuously, and each part is an independently continuous holding tank; Each holding tank after cutting apart is corresponding with the memory capacity of a concrete physical disc disc, the actual physics optical disk that different holding tanks is corresponding different; The data that meet the compact disk file system construction standard of storing in the said physical disc are stored in each corresponding holding tank according to the mode that meets the compact disk file system construction standard equally; Load virtual device driver by the virtual mirror optical disk that is stored in to each in the corresponding stored groove, realize visit and the management of user virtual image optical disk.
Present disk interface agreement and CD-ROM driver interface agreement all support continuous logical blocks addressing mode (Logical BlockAddress:LBA) to carry out data read-write operation, and this just provides technical foundation for the realization of holding tank mirror image physical disc thought.
A kind of hardware implementation structure of realizing the virtual mirror optical disk server of virtual image optical disk as above-mentioned method that adopts that the present invention proposes.It is characterized in that: comprise the PC mainboard that has CPU and internal memory, network interface card in the PCI slot of insertion PC mainboard, a system disk, system's CD-ROM drive, a plurality of IDE hard disk drives, a plurality of SCSI hard disk drives, the disk array of a plurality of ide interfaces, the disk array of a plurality of scsi interfaces, scsi interface card, and the IDE bus and the SCSI bus that connect each module; Said system disk links to each other with the IDE1 mouth bus of PC mainboard with the system CD-ROM drive, said IDE expansion card links to each other with the PCI slot of scsi interface card and PC mainboard, the disk array of said a plurality of IDE hard disk drive and a plurality of ide interfaces links to each other with the IDE2 mouth bus of PC mainboard or IDE expansion card, and the disk array of said a plurality of SCSI hard disk drives and a plurality of scsi interfaces links to each other with the PC mainboard by the scsi interface card.
The present invention possesses following following advantage:
1, the data response speed is fast.Because the present invention has adopted the mode of holding tank mirror image physical disc disc contents, physical disc disc of every mirror image only need once write down the relevant information of this disc, need not repeatedly each file fileinfo relevant on the record disc with catalogue, shorten the tracking number of times and the addressing time of system greatly in the time of the same virtual mirror optical disk file of user capture, thereby improved the data in server response on the whole greatly and data stream is exported.
2, fast, the security performance raising of server power loss recovery.Owing to adopted holding tank management mirror optical disk, behind the abnormal shutdown system restart fast, need not could start through after the tediously long disk verification; Because what deposit on the disk space is the data of disk format, effectively prevented the invasion of hacker and virus.
3, output stream is continuous, stable.Because the virtual image optical disk on the holding tank is to deposit continuously, and storage format meets corresponding C D-ROM compact disk file system standard, in single user or this virtual optical disk of multi-user access, what server was exported is the data stream that meets the compact disk file system construction standard of continous-stable, this also just means when not having network failure, what the user obtained is as the smooth smooth data stream of direct visit CD-ROM drive, requires the defective of the audio/video file existence of output continous-stable data stream when having eliminated these class real time access such as user capture VCD/DVD.
4, the memory capacity allowing for expansion of system is big.Because system supports the hard disk of scsi interface, each SCSI card can external 8 SCSI hard disks, on the storage space of 2 ide interface hard disks, can increase the storage space of 8 SCSI hard disks again.
5, system design good economy performance.The hardware bundle includes network equipment that the native system design proposal adopts all is general PC parts, need not to buy the special hardware or the special-purpose network facilities, and therefore, the economy of system realization scheme is very good.
Description of drawings
Fig. 1 is the data structure synoptic diagram of virtual optic disk file of the present invention system.
Fig. 2 is a disk slack space information data structure synoptic diagram in the virtual optic disk file of the present invention system.
Fig. 3 is the corresponding relation synoptic diagram of holding tank of the present invention, virtual mirror optical disk file and virtual image optical disk.
Fig. 4 is the general structure graph of a relation of constructing virtual image optical disk of the present invention.
Fig. 5 is the hardware structure diagram that present embodiment is realized the virtual mirror optical disk server of virtual image optical disk.
Fig. 6 is the data structure diagram of the virtual mirror optical disk file system of present embodiment.
Embodiment
Below in conjunction with the embodiment of accompanying drawing detailed description virtual image optical disk of the present invention, its hardware configuration as shown in Figure 5.Comprise: the PC mainboard of band CPU and internal memory, network interface card in the PCI slot of insertion PC mainboard, a system disk, system's CD-ROM drive, two ide interface hard disks that capacity is 30.6Gb, the SCSI hard disk that capacity is 80Gb, a scsi interface card, and the IDE bus and the SCSI bus formation that connect each module; Said system disk links to each other with the IDE1 mouth bus of PC mainboard with the system CD-ROM drive, the PCI slot of said scsi interface card and PC mainboard links to each other, said IDE hard disk links to each other with the IDE2 mouth bus card of PC mainboard, and said SCSI hard disk links to each other with the PC mainboard by the scsi interface card.Annotate: 1Gb=10 9Byte, 1Mb=10 6Byte, byte: byte.
The PC mainboard of present embodiment is the hardware platform of system's operation, the embedded operating system of server operates on the system disk that links to each other with the IDE1 mouth bus of PC mainboard with all software sections such as procotol and installation administration programs, network interface card in the PCI slot of insertion PC mainboard is the required network equipment of server online, system is by reading the data of optical disk in the CD-ROM drive, it is mirrored in the IDE hard disk drive that links to each other with the IDE2 mouth bus of PC mainboard or is mirrored in the SCSI hard disk drive that links to each other with mainboard by the SCSI card store.
In the present embodiment, server inline operations system adopts (SuSE) Linux OS, behind the system boot, kernel starts the operating system earlier, comprise and load the virtual mirror optical disk file system, start the respective services process that server provides then, then read the virtual mirror optical disk file, if have, then give every virtual mirror optical disk file load loopback device driver successively, if no, then this step of skip load loopback device driver, wait for user capture or system manager's order at last.In the present embodiment, being used for the physical disc of mirror image all is that capacity is the disc that meets ISO9660 compact disk file system international standard of 680Mb, therefore, the size of each holding tank is 680Mb, account for 2656250 sectors, each disk sector comprises 256 bytes, loads the loopback device driver according to the form output stream that meets ISO 9660 compact disk file system international standards.
Each capacity is that the IDE hard disk of 30.6Gb (having 119531250 disk sectors) can be stored the virtual image optical disk of 44 680Mb sizes, capacity is the SCSI hard disk of 80Gb, can store the virtual image optical disk of 117 680Mb sizes, so present embodiment can be stored the virtual image optical disk of 205 680Mb sizes altogether.
One, the Primary Hard Drive with the IDE2 mouth is an example, the data structure of virtual mirror optical disk file system as shown in Figure 6 (shown in the n value be the shared sector number 2656250 of individual virtual image optical disk of present embodiment, the N value is the maximum sector of hard disk total volume several 119531250), comprise that disk coils total information, directory area (file description information district), 3 parts in file area, what every part comprised thes contents are as follows:
1.IDE the data structure of the disk total information of hard disk, the total information of coiling that comprises the hard disk sign, comprised this disk size information 30.6Gb (119531250 disk sectors), directory area length (being set at 44 disk sectors), disk slack space information (the disk slack space information table accounts for 4 disk sectors), etc. data structure, coil total information and account for 10 disk sectors altogether.
2. the data structure of directory area.The mounting points of the Primary Hard Drive of IDE2 mouth on operating system is/tower/cdromtower/.ftp/hda/, below this mounting points, set up a catalogue .iso, directory area length accounts for 44 disk sectors, preserved the filename of mirror image every virtual mirror optical disk on this hard disk, start sector number, file size, access right, the running time record waits other attributes.
3. the data structure of file area.The file area is deposited file one by one in proper order, and a file is exactly a virtual image optical disk, preserves one by the content of the physical disc disc of mirror image.
4. construct the data structure of the disk slack space information of each data disks in the mode of classified counting, distribute simultaneously or reclaim one group of continuous disk dish piece.The disk slack space information table accounts for 4 disk sectors, as shown in Figure 2, the data structure of disk slack space information is the free space table of a two dimension, each entry writes down the first block address of every group of idle dish piece and the piece number of the idle dish of this group piece, the delegation of a corresponding free space table of entry, each row of free space table is counted these two by a dish block address item and a piece and is formed.
After virtual mirror optical disk file system structure was finished, the file system interface VFS by (SuSE) Linux OS provides joined the virtual mirror optical disk file system in the kernel of (SuSE) Linux OS.
In the present embodiment, the concrete steps of constructing virtual image optical disk are as follows:
One, at first construct one and can be incorporated into setting up fully in the server inline operations system kernel, single level directory, the virtual mirror optical disk file system of continuous dispensing:
1. the data structure of the disk total information of construction data dish comprises the total information of coiling of disk sign having comprised this disk size information, directory area length, the data structure of information such as disk slack space.
2. construct the data structure of directory area.Set each data disks and be operated system's control to set up the form that is equipped with, be installed on the mounting points of operating system, set up a directory area on each data disks, the filename of all virtual image optical disks of mirror image on this data disks has been preserved in this directory area, start sector number, file size, access right, running time record.
3. construct the data structure of the file area of said virtual mirror optical disk file system.The file area is deposited file one by one in proper order, and a file is exactly a virtual image optical disk, and a file is preserved one by the content of the physical disc disc of mirror image.
4. construct the data structure of the disk slack space information of each data disks in the mode of classified counting, distribute simultaneously or reclaim one group of continuous disk dish piece.As shown in Figure 2, the data structure of disk slack space information is the free space table of a two dimension, each entry writes down the first block address of every group of idle dish piece and the piece number of the idle dish of this group piece, the delegation of a corresponding free space table of entry, each row of free space table is counted these two by a dish block address item and a piece and is formed.
After virtual mirror optical disk file system structure was finished, the file system interface by operating system provides joined the virtual mirror optical disk file system in the kernel of operating system.
Two, be equipped with in order to realize setting up, the virtual mirror optical disk file system of single level directory, need carry out catalogue in advance to the virtual image optical disk file and extract:
1. establishing M opens by the mirror image catalogue of mirror image physical disc dir1/dir2/ by name ... / dirN, the virtual image optical disk file is called mirrorcdm;
2. carry out the extraction of virtual mirror optical disk file directory name as follows: (note system disk catalogue is tower) creates the sequence number catalogue (being designated as cd (M-1)) that M opens virtual image optical disk according to the order of depositing of virtual image optical disk under the catalogue of system disk, (annotate: the sequence number of virtual image optical disk is from 0 open numbering), simultaneously under the virtual image dish composite catalog (being designated as cdromtower) of virtual mirror optical disk server successively according to 1 grade of catalogue dir1,2 grades of catalogue dir2,, the order of N level catalogue dirN is created the storing directory of virtual mirror optical disk file.
3. the extraction of virtual image optical disk filename.After installation procedure obtains virtual image optical disk filename mirrorcdm, the catalogue cdromtower/dir1/dir2/ that in above-mentioned steps, sets up ... under/the dirN, create the mounting points catalogue mirrorcdm/ identical, and set up from root directory/tower/cd (M-1)/to cdromtower/dir1/dir2/ with virtual image optical disk filename mirrorcdm ... the soft link of/dirN/mirrorcdm/ catalogue.
4. search the disk mirroring space of data disks.Search and have the physical disk that enough continuous storage spaces hold this virtual mirror optical disk content, and finding first to have enough continuously the catalogue (being designated as .iso/) of searching hiding virtual image optical disk place under the disk installation directory of storage space.Find the back under this catalogue, to create the virtual mirror optical disk file (note is designated iso, and the virtual image optical disk file is called mirrorcdm.iso) that the suffix name can identify the compact disk file system form.
Three, finish catalogue and extract after, carry out the mark of holding tank and the image optical disk of the realistic physical disc disc file system standard of structure in holding tank:
1. tag slot.So-called holding tank is exactly one section continuous storage space, tag slot is exactly this section continuous space to be added use or idle mark in the data structure of virtual mirror optical disk file system, a file in the corresponding virtual mirror optical disk file system files of holding tank district, in this holding tank, can preserve a virtual image optical disk, be one to one between them, corresponding relation as shown in Figure 3.According to top step, in previous step is rapid, obtained one section continuous disk space that is large enough to hold this virtual image optical disk content, in the disk total information of this data disks, add the occupied information of this section disk space this moment, record start piece number and the piece sum that takies are finished the mark to this holding tank.
2. in the directory area of this data disks, add the fileinfo of new virtual image optical disk, comprise the virtual image optical disk filename, start sector number, file size, access right, running time record etc.
3. carry out the data of physical disc record in the reading system CD-ROM drive according to continuous logical blocks addressing mode (Logical Block Address:LBA), since the 0th sector (annotate: the sector count on the physical disc is since 0), order reads the content in the sector successively, and write in the holding tank space of being distributed according to the continuous logical blocks addressing mode, begin to write from first sector distributing, write while reading, up to last sector of physical disc record data, write last sector of the storage space that is distributed.The total data that writes down in the physical disc has just fully write in the continuous holding tank of the storage space that distributed according to the data layout of optical disc storage like this, on the continuous storage space of this section, the master file of having preserved the actual physics optical disk describes the width of cloth (Primary Volume Description), stop volume describes the width of cloth (Terminal Volume Description), catalogue listing (Path Table), catalogue file (DirectoryFile) and all fileinfo and file datas.
Arrive here, realized virtual image optical disk on the storage space of server with continuously and also the mode that meets ISO 9660 compact disk file system forms on the original physical CD store.
Four, following to virtual image optical disk structure loopback equipment, realize the management of operating system to the virtual image optical disk file.Here, loopback equipment is to take ISO 9660 files to come simulated block equipment, is exactly to take virtual image optical disk file simulated block equipment.
1. read the start sector number of virtual mirror optical disk file by the virtual image optical disk filename, file size, access right, information such as running time record.
2. the suffix name .iso according to the virtual image optical disk file judges that the data layout of being stored in this file meets ISO 9660 compact disk file system construction standards, presses ISO 9660 compact disk file system construction standard form output file data stream.
So far in virtual CD server, intactly added a new virtual image optical disk.System enters the state of waiting for the order of keeper's next operation.
Relation between the above each several part can be represented with the general structure graph of a relation of virtual image optical disk shown in Figure 4, as can be seen, holding tank just virtual image optical disk is based upon on the virtual optic disk file system, operating system is passed through the management of virtual mirror optical disk file system interface realization to storage data on the data disks, and by loading the visit of loopback device driver realization to virtual image optical disk.
In the generative process of new virtual image optical disk, do not influence the visit of user to other virtual image optical disks on the server system.
The data structure of the virtual mirror optical disk file system on other data hard disks of present embodiment and the generative process of virtual image optical disk and above-mentioned similar, 2 differences are arranged, the one, the mounting points difference of hard disk on operating system, the IDE2 mouth from the mounting points of hard disk is/tower/cdromtower/.ftp/hdb/, the mounting points of SCSI hard disk is/tower/cdromtower/.ftp/sda/, another is that concrete numerical value in the data structure of virtual mirror optical disk file system is different, as long as it is just passable to replace the value of corresponding ID E2 mouth Primary Hard Drive with the value of new hard disc data.
The physical disc that present embodiment uses is the optical disk that meets ISO 9660 international standards, if use extended formatting (as: UDF, Joliet, Romeo etc.) optical disk, can also realize virtual image optical disk after the same method, just adopt holding tank mirror image physical disc disc and load the loopback device driver and realize meeting original physical compact disk file system construction standard output file data stream.

Claims (6)

1, a kind of implementation method of constructing virtual image optical disk is characterized in that, may further comprise the steps:
1) structure sets up fully on data disks, single level directory, the virtual mirror optical disk file system of continuous dispensing;
2) the virtual image optical disk file to this virtual mirror optical disk file system carries out the catalogue extraction;
3) tag slot on the storage space of data disks is set up a new virtual image optical disk record with this, presses continuous logical blocks addressing mode mirror image physical disc disc;
4) this virtual image optical disk is loaded loopback equipment, realize the management of operating system this virtual image optical disk.
2, the implementation method of constructing virtual image optical disk as claimed in claim 1 is characterized in that, said structure sets up and is equipped with, single level directory, and the method for the virtual mirror optical disk file system of continuous dispensing specifically may further comprise the steps:
1). the data structure of the disk total information of construction data dish comprises the total information of coiling of disk sign comprising this disk size information, directory area length, the data structure of disk slack space information;
2). the data structure of structure directory area, set each data disks and be operated system's control to set up the form that is equipped with, be installed on the mounting points of operating system, set up a directory area on each data disks, the filename of all virtual image optical disks of mirror image on this data disks, start sector number, file size have been preserved in this directory area, access right, the running time record;
3). construct the data structure of the file area of said virtual mirror optical disk file system; File area order on data disks is deposited file one by one, and a file is exactly a virtual image optical disk, and a file is preserved one by the content of the physical disc disc of mirror image;
4). construct the data structure of the disk slack space information of said each data disks in the mode of classified counting, distribute simultaneously or reclaim one group of continuous disk dish piece, the data structure of this disk slack space information is the free space table of a two dimension, each entry writes down the first block address of every group of idle dish piece and the piece number of the idle dish of this group piece, the delegation of a corresponding free space table of entry, each row of free space table is counted these two by a dish block address item and a piece and is formed.
3, the implementation method of constructing virtual image optical disk as claimed in claim 1 is characterized in that, the catalogue extracting method of said virtual image optical disk file specifically may further comprise the steps:
1). establish the mirror image catalogue dir1/dir2/ by name that M opens virtual mirror optical disk ... / dirN, file is called mirrorcdm;
2). note system disk catalogue is tower, after the mirror image order and catalogue data that installation procedure intercepting and capturing server system keeper sends, mirror image according to virtual image optical disk under the catalogue of system disk is created the sequence number catalogue that M opens virtual image optical disk in proper order, the sequence number of virtual image optical disk is from 0 open numbering, the sequence number catalogue of this virtual image optical disk is designated as cd (M-1), simultaneously under the virtual image dish composite catalog cdromtower of virtual mirror optical disk server successively according to 1 grade of catalogue dir1,2 grades of catalogue dir2,, the order of N level catalogue dirN is created the storing directory of virtual mirror optical disk file;
3). the extraction of virtual image optical disk filename: after installation procedure obtains virtual image optical disk filename mirrorcdm, under the catalogue of said foundation, create the mounting points catalogue mirrorcdm/ identical, and set up from sequence number catalogue/tower/cd (M-1)/to cdromtower/dir1/dir2/ with virtual image optical disk filename mirrorcdm ... the soft link of/dirN/mirrorcdm/ catalogue;
4). search the disk mirroring space of data disks: search and have enough continuous storage space and can store by the data disks of the physical disc disc contents of mirror image, and, be designated as .iso/ finding first to have enough continuously the catalogue of searching hiding virtual image optical disk place under the installation directory of the data disks of storage space; Find the back to create the suffix name of the virtual image optical disk file that can identify the compact disk file system form under this catalogue, note is designated iso, and this virtual image optical disk filename is designated as mirrorcdm.iso.
4, the implementation method of constructing virtual image optical disk as claimed in claim 3 is characterized in that, said tag slot, the method for pressing continuous logical blocks addressing mode mirror image physical disc disc specifically may further comprise the steps:
1). after having obtained one section continuous disk space that is large enough to hold this virtual image optical disk content, in the data structure of this foundation, add the occupied information of this section disk space, record start piece number and the piece sum that takies are finished the mark to this holding tank;
2). in said directory area, add the fileinfo of new virtual image optical disk, comprise the virtual image optical disk filename, start sector number, file size, access right, running time record;
3). according to the data of physical disc record in the continuous logical blocks addressing mode reading system CD-ROM drive, the 0th sector begins counting on the physical disc, order reads the content in the sector successively, and write in the holding tank space of being distributed according to the continuous logical blocks addressing mode, begin to write from first sector distributing, write while reading, until last sector of physical disc record data, write last sector of the storage space that is distributed; The total data that writes down in the physical disc has been write in the continuous holding tank of the storage space that distributed according to the data layout of optical disc storage fully, on the continuous storage space of this section, the master file of having preserved the actual physics optical disk describes the width of cloth, stop volume describes the width of cloth, catalogue listing, catalogue file and all fileinfo and file datas.
5, the implementation method of constructing virtual image optical disk as claimed in claim 4 is characterized in that, said virtual image optical disk is loaded loopback equipment, realizes the management of operating system to this virtual image optical disk, specifically may further comprise the steps;
1). read the start sector number of virtual image optical disk file, file size, access right, information such as running time record by the virtual image optical disk filename;
2). judge according to the suffix name of virtual image optical disk file which kind of compact disk file system construction standard the data layout of being stored in this file meets, by its corresponding compact disk file system construction standard form output file data stream.
6, a kind of virtual mirror optical disk server system hardware structure of storage administration virtual image optical disk of the realization of method according to claim 1, it is characterized in that: comprise the PC mainboard that has CPU and internal memory, network interface card in the PCI slot of insertion PC mainboard, a system disk, system's CD-ROM drive, a plurality of IDE hard disk drives, a plurality of SCSI hard disk drives, the disk array of a plurality of ide interfaces, the disk array of a plurality of scsi interfaces, scsi interface card, and the IDE bus and the SCSI bus that connect each module; Said system disk links to each other with the IDE1 mouth bus of PC mainboard with the system CD-ROM drive, said IDE expansion card links to each other with the PCI slot of scsi interface card and PC mainboard, the disk array of said a plurality of IDE hard disk drive and a plurality of ide interfaces links to each other with the IDE2 mouth bus of PC mainboard or IDE expansion card, and the disk array of said a plurality of SCSI hard disk drives and a plurality of scsi interfaces links to each other with the PC mainboard by the scsi interface card.
CN 02121319 2002-06-14 2002-06-14 Method for implementing virtual image optical disk and and its system hardware structure Pending CN1395246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02121319 CN1395246A (en) 2002-06-14 2002-06-14 Method for implementing virtual image optical disk and and its system hardware structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02121319 CN1395246A (en) 2002-06-14 2002-06-14 Method for implementing virtual image optical disk and and its system hardware structure

Publications (1)

Publication Number Publication Date
CN1395246A true CN1395246A (en) 2003-02-05

Family

ID=4744924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02121319 Pending CN1395246A (en) 2002-06-14 2002-06-14 Method for implementing virtual image optical disk and and its system hardware structure

Country Status (1)

Country Link
CN (1) CN1395246A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163449A (en) * 2010-12-31 2011-08-24 华为终端有限公司 Method and system for testing burning tool, and embedded equipment
CN104094225A (en) * 2011-11-28 2014-10-08 韦斯技术有限公司 Creation or installation of disk image for target device having one of a plurality of hardware platforms
CN104298466A (en) * 2013-07-17 2015-01-21 北大方正集团有限公司 Optical disc reading method and optical disc reading device
CN109326307A (en) * 2018-09-07 2019-02-12 江苏菲利斯通信息科技有限公司 CD streaming carving method
CN112256650A (en) * 2020-10-20 2021-01-22 广州市百果园网络科技有限公司 Storage space management method, device, equipment and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163449A (en) * 2010-12-31 2011-08-24 华为终端有限公司 Method and system for testing burning tool, and embedded equipment
CN102163449B (en) * 2010-12-31 2013-11-06 华为终端有限公司 Method and system for testing burning tool, and embedded equipment
CN104094225A (en) * 2011-11-28 2014-10-08 韦斯技术有限公司 Creation or installation of disk image for target device having one of a plurality of hardware platforms
CN104298466A (en) * 2013-07-17 2015-01-21 北大方正集团有限公司 Optical disc reading method and optical disc reading device
CN104298466B (en) * 2013-07-17 2017-10-20 北大方正集团有限公司 Disc reading method and device
CN109326307A (en) * 2018-09-07 2019-02-12 江苏菲利斯通信息科技有限公司 CD streaming carving method
CN109326307B (en) * 2018-09-07 2020-12-11 江苏菲利斯通信息科技有限公司 Optical disk stream recording method
CN112256650A (en) * 2020-10-20 2021-01-22 广州市百果园网络科技有限公司 Storage space management method, device, equipment and storage medium
CN112256650B (en) * 2020-10-20 2024-05-31 广州市百果园网络科技有限公司 Storage space management method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US7836107B2 (en) Disk seek optimized file system
CN103186350B (en) The moving method of mixing storage system and hot spot data block
US9189493B2 (en) Object file system
US7146455B2 (en) System and method for optimized access to memory devices requiring block writing
US8271456B2 (en) Efficient backup data retrieval
CN1770114A (en) Copy operations in storage networks
GB2383859A (en) Memory controller managing a file allocation table for a memory card
US9940331B1 (en) Proactive scavenging of file system snaps
JPH10188481A (en) Method and system for producing cd-rom
US7188147B2 (en) I/O method and apparatus for optical storage media
CN101030165A (en) Magnetic disk space management and managing system
US20070079096A1 (en) Data storage unit access authorization table automatic rebuilding method and system
MX2008014857A (en) Application program interface to manage media files.
US20080250189A1 (en) Circuit and Method for Improving Operation Life of Memory
US8239427B2 (en) Disk layout method for object-based storage devices
JP2004013276A (en) Filesystem and recording medium
CN1684049A (en) Information storage apparatus, information storage method and information storage processing program product
JP5391705B2 (en) Storage system
CN114116611A (en) File scanning method and related device
CN103778032A (en) Unix-like operating system backup method and device
CN1395246A (en) Method for implementing virtual image optical disk and and its system hardware structure
JP2011155667A (en) Multimedia system framework having layer consolidating access to a plurality of media devices
CN112597102B (en) High-efficiency mirror image file system implementation method
KR20190061549A (en) File system and method of storing files based on the file system
JP4211563B2 (en) Playback / recording device

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication