CN1690984A - Virtual partition method and device for external memory - Google Patents

Virtual partition method and device for external memory Download PDF

Info

Publication number
CN1690984A
CN1690984A CNA2005100539624A CN200510053962A CN1690984A CN 1690984 A CN1690984 A CN 1690984A CN A2005100539624 A CNA2005100539624 A CN A2005100539624A CN 200510053962 A CN200510053962 A CN 200510053962A CN 1690984 A CN1690984 A CN 1690984A
Authority
CN
China
Prior art keywords
memory
virtual
storage
quantum memory
storer
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.)
Granted
Application number
CNA2005100539624A
Other languages
Chinese (zh)
Other versions
CN100476759C (en
Inventor
钟巨航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNB2005100539624A priority Critical patent/CN100476759C/en
Publication of CN1690984A publication Critical patent/CN1690984A/en
Application granted granted Critical
Publication of CN100476759C publication Critical patent/CN100476759C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The virtual separation method and its apparatus of the external memory, is used for dividing the storage space of multiple continuous or discontinuous sub-memories on the external memory logically, and form multiple virtual sub-memories according to the use, each virtual sub-memory can include one or more sub-memories, and only one can be accessed in multiple virtual sub-memories at any moment, in order to achieve the purpose of isolating different applications; the virtual sub-memories have write protection functions and can be safely shared, and the method supports replacement of storage units in the memories; and a system configuration sub-memory for providing a virtual partition configuration. The method and the device thereof are implemented in an external memory device, and are independent of the type of an interface, and the internal side of the external interface is connected with the external memory device.

Description

The virtual partition method of external storage and device thereof
Affiliated technical field
The present invention relates to the administrative skill of the external storage in the computer system, relate to a kind of method and apparatus that external storage is separated into a plurality of virtual subnet storeies specifically.
Background technology
The virtual partition of storer, finger marks off a plurality of quantum memory storage spaces in logic on a storer, and constitute a plurality of virtual subnet storeies according to purposes, but make and have only an access in a plurality of virtual subnet storeies of any moment, to reach identical functions and the effect with physically a plurality of storeies.
A storer is marked off the meaning of a plurality of virtual subnet storeies, be the raising of data security, be about to the program of different purposes and data be each defined in a plurality of quantum memories physically of equal value in, the virtual subnet storer of different purposes can be used jointly by main frame at no time.This virtual partition is different with the subregion described in the disc operating system (DOS) (FDISK), the a plurality of sub-disk (storer) of partitioning technique structure is to host computer system, can be visited simultaneously by main frame, the danger that exists is that the potential safety hazard between each subregion can be transmitted mutually, such as, any one subregion has infected virus, all may infect to other all subregions.So-called subzone hiding technology, just a kind of means that operating system is cheated, Hacker Program and the viral restriction that the visit of subregion is not subjected to operating system.
Another benefit can provide the read-write load balance of storer and bad sector/magnetic track shielding.Usually, in a single day absolute 0 sector (first sector) of external storage is damaged, and whole storer can't use.The virtual partition technology can change absolute 0 sector of quantum memory, thereby has greatly improved the availability of storer.For the quantum memory of frequent use, can adjust its physical location in external storage, thereby make being used that whole external storage can be average, improve serviceable life.
External storage and main frame between parallel interface mainly be EIDE (IDE of enhancing) interface and scsi interface, external storage and main frame between serial line interface mainly contain three kinds, be respectively IEEE 1394, USB and SATA, variation, high speed, mobile along with storer, and miniaturization, more and more bring into use serial line interface to be connected with main frame.External storage and device mainly contain hard disk, various electric board, the equivalence dish that various flash disks and various storage card are transformed and the hard-disk cartridge of various interface, card reader etc. present stage.
Chinese patent 00114264 had once proposed " hard disk being invented the apparatus and method of a plurality of independent son dishes that are isolated from each other ", this is invented described method and realizes by the BIOS system of rewriting main frame, but present operating system, use for hard disk, more and more do not rely on the BIOS system, this just makes the method for Chinese patent 00114264 no longer have practical significance more widely.
Chinese patent 00114264 described contrive equipment is implemented between hard disk and the host hard drive interface (referring to Chinese patent 00114264 instructions Fig. 1, claim 1), with host hard drive interface and hard-disk interface height correlation, should the emulation hard-disk interface, emulating host computer hard-disk interface again, also between host hard drive interface and hard-disk interface, receive, transmit data, very complicated, and receive, transmit the performance that data have reduced hard disk.In addition, the device of this invention is only at the IDE hard disk, do not see that it is to the SCSI hard disk, the explanation of the file devices applicability of the non-hand disk of various serial ports (USB, IEEE1394, SATA) hard disk and total interface, in fact, scsi interface, the working method of various serial ports (USB, IEEE1394, SATA) hard disk and file devices and IDE hard disk are handled in the interface channel to be had bigger even essential differently, and Chinese patent 00114264 described contrive equipment lacks the support explanation to these.
Chinese patent 00114264 described contrive equipment the virtual a plurality of son dishes that come out, also not quite identical with the application of reality, in the reality, if the user is ready, a plurality of physical hard disks can hang on the same computing machine simultaneously, the situation that mutual data shift between for example different hard disks.And Chinese patent 00114264 can not be accomplished.
Summary of the invention
The invention provides a kind of method and apparatus, be used for that logical partitioning goes out a plurality of continuous or discrete quantum memory storage spaces on external storage, and constitute a plurality of virtual subnet storeies according to purposes, each virtual subnet storer can comprise one or more quantum memories, but and have only an access in a plurality of virtual subnet storeies of any moment, to reach the purpose of isolating different application; The virtual subnet storer has the write-protect function, and can share safely between the quantum memory, and this method is supported the replacing of store memory storage unit; Other comprises the system configuration quantum memory, is used to provide the virtual partition configuration.Described method and device thereof are implemented in the file devices, and the external interface inboard is irrelevant with kind of interface.
Method and technical scheme
External memory device is accepted the order of host computer system (100) by external interface controller (110), and command result returned to host computer system (100) by external interface controller (110), that is to say, interior survey at external memory device external interface controller (110), between the command interpreter (182) and interface control module (181) as control module (180), what we saw is exactly order and command result, as long as we carry out logical mappings to the address information in the order here, to simulating replacement about the information of external memory device physical parameter in the command result, just can " cheat " host computer system (100), construct a host computer system (100) and think in esse " external memory device ", and in fact be certain a part of storage space on the original external storage, by the division and the management of external memory storage space, just the external storage of physics can be invented a plurality of quantum memories.Owing to avoided directly and the processing of the interface of host computer system (100) in this link, so need not be concerned about concrete interface type, simultaneously, because " mapping " and " simulation is replaced " is the physical parameter information to address information and external memory device, and these two parts proportion in the data transmission of external memory device and main frame is very little, so very little to former external memory device performance impact, can ignore.
Here, we partly are called quantum memory with a pairing memory bank of storage space in the external storage.
The storage space of external storage can be a plurality of continuous or discrete spaces by logical partitioning, that is to say to be divided into a plurality of continuous or discontinuous quantum memories;
And the virtual subnet storer refer to that host computer system (100) at a time sees by the external storage of virtual partition, it comprises selecteed this moment quantum memory and other its addressable quantum memory, that is to say, in the present invention, at least there are two kinds of situations, the virtual subnet storer can comprise a more than quantum memory: first kind of situation be, a plurality of quantum memories are selected simultaneously, and this is by specifying identical selection sequence numbers to realize to a plurality of son storages in the present invention; Second kind of situation is, certain quantum memory is not selected by " directly ", but also may be used by current virtual subnet storer, in the present invention, this realizes by sharing between the quantum memory, when a quantum memory is selected, by its quantum memory of sharing also will by " indirectly " selection.
Method of the present invention is used for marking off a plurality of quantum memory storage spaces at the storage space of external storage, and constitutes a plurality of virtual subnet storeies according to purposes, but makes to have only an access in a plurality of virtual subnet storeies of any moment.
The division of described external storage storage space can be continuous, also can be discontinuous, but not overlapping;
Described any one virtual subnet storer can be made of one or more quantum memory storage spaces that face mutually or do not face mutually;
The virtual partition method of described external storage comprises following steps:
A. mark off a plurality of quantum memory storage spaces and be stored in step in the memory storage at the storage space of external storage dividing parameter;
B. select the step of the virtual subnet storer of current use by the quantum memory selecting arrangement;
C. the address value with respect to the virtual subnet storer of current use in the data input/output method is converted to the step of the absolute physical address of external storage;
D. the physical parameter of the storer in the data output method is used the step of replacing with the physical parameter of the virtual subnet storer equivalence of current use;
The virtual partition method of described external storage comprises that also the method for building up in system configuration quantum memory district, this method are used to provide system configuration and the maintenance service of a safety and " totally ", comprise the steps:
A. the system configuration quantum memory is set up corresponding step with a chosen position of quantum memory selecting arrangement;
B. set up the step in space, system configuration quantum memory memory block;
C. set up memory block space partition zone structure (DPT) and be stored in the step in space, memory block;
D. system's Main Boot Record (MBR) is stored in the step in space, memory block;
E. operating system or operating system and instrument are stored in the step in space, memory block;
F. configuration tool or configuration tool and self upgrade-system instrument are stored in the step in space, memory block;
The virtual partition method of described external storage, use following steps that one or more storage spaces that face or do not face mutually quantum memory are mutually formed a virtual subnet memory storage space:
A., quantum memory is set to be shared shared relationship between attribute and quantum memory and is stored in step in the memory storage;
B. to the step of the quantum memory space in the described virtual subnet storer with the quantum memory space unified addressing that is shared;
C. set up the subregion/extended partition structure of described virtual subnet storer under the shared state and be stored in step in the memory storage;
The step of d. content of the subregion/extended partition structure of the relevant virtual subnet storer in data output (reading) method under the shared state being replaced or the content of the subregion/extended partition structure of the relevant virtual subnet storer in data input (writing) method under the shared state being protected;
Be security consideration, for the quantum memory that is shared, default setting is write-protect down;
Described external storage is divided into the method (can specify shared relationship simultaneously) of quantum memory, may further comprise the steps:
A. on the storage space of external storage, mark off a plurality of nonoverlapping quantum memories space, and the absolute starting position of bundle storage space in external storage, absolute end position is stored in the step in the memory storage, this step is according to the capacity of storer and user's purposes, mark off N sub-storage space outside on the storage space, N>=1, N sub-storage space can face mutually, can not face mutually yet, but can not be overlapping;
B., quantum memory is set to be shared shared relationship between attribute and quantum memory and is stored in step in the memory storage; The quantum memory that is divided may be defined as shared attribute, and can specify by which or which quantum memory and share, the quantum memory with shared attribute is when being shared, and default have a read only attribute, when not being shared, its read-write properties are determined by the write-protect mode bit;
If be not provided with, then default to no any shared attribute and shared relationship;
C. set up virtual subnet memory parameter table and be stored in the non-step of recalling body device of forgeting according to the division and shared being provided with of storage space, described virtual subnet memory parameter table comprises the feature (sequence number or mark) of this storer or its storage unit, the quantum memory number that is divided into, the absolute starting position in each quantum memory district, absolute end position, the sharable virtual subnet storer of this quantum memory sequence number etc.;
The described method of setting up current virtual subnet storer may further comprise the steps:
A. reading the quantum memory selecting arrangement obtains the virtual subnet storer sequence number of current use and is stored in the memory storage;
B. read virtual subnet memory write guard mode and be stored in the memory storage;
C. read shared state and be stored in step in the memory storage;
D. set up current virtual subnet memory parameter table according to the virtual subnet memory areas sequence number of current use and shared state and be stored in the step of memory storage, described current virtual subnet memory parameter table generally comprises following parameter: the absolute starting position of the quantum memory of current use, absolute end position, the absolute starting position of the sharable virtual subnet storer of this quantum memory, absolute end position, total sector number, cylinder number of equal value, the magnetic head number, every magnetic track sector number, the available sector number, and be used for accelerate calculating needed other intermediate data, as the ranges of logical addresses of each quantum memory or shared quantum memory, capacity or Hash table etc.;
E. set up with the physical vlan parameter list of current virtual subnet storer equivalence and be stored in step in the memory storage, the physical vlan parameter list is that the total volume in the physical parameter table of former external storage is replaced with current virtual subnet memory span (quantum memory and the quantum memory capacity sum of being shared by it), calculate of equal value cylinder number, magnetic head number and every magnetic track number of sectors and total available sector number etc. with this then, and replace relevant parameters in the physical parameter table of former external storage with these parameters; Host computer system is when inquiry external storage (virtual subnet storer) physical parameter, and the physical vlan parameter with current virtual subnet storer equivalence that firmware will be constructed passes to host computer system;
F. set up the step of current virtual subnet memory logic address space, the storage space logic of quantum memory in the current virtual subnet storer and the quantum memory that is shared is linked to each other, since 0 addressing continuously, the end address is that quantum memory subtracts 1 with the quantum memory capacity sum that is shared; Current virtual subnet storer comprises the quantum memory of current use and by its quantum memory of sharing, the latter is default to be read-only;
The method of sharing between quantum memory may further comprise the steps:
A. set up quantum memory subregion/extended partition structure and being stored in the partition table/extended partition table of quantum memory under non-shared state;
B. read shared state and be stored in the memory storage;
C. set up subregion under the shared state/extended partition structure and be stored in the memory storage, described step can be:
C1. the non-extended partition in the subregion of the quantum memory that is shared is added to successively in the Free Partition record in the disk partition table (DPT) in the Master boot sector of quantum memory;
C2. the extended partition in the subregion of the quantum memory that is shared is added successively to last in the extended partition chain among the DPT, if no extended partition record among the DPT is then created one;
If c3. the section post that idle partitioned record can not satisfy in the quantum memory that is shared among the DPT needs, then the independent partitions in the quantum memory that is shared also is added on the extended partition chain of DPT successively;
Use up if the partitioned record space c4. among the DPT is occupied, and there is not an extended partition, then select a suitable partitioned record, wherein subregion is transform as extended partition, and all subregions in the quantum memory that is shared are added on the extended partition chain; Subregion is transform as the needed extra using system sector, a sector of extended partition, hides sector or other free sector or 512 bytes of memory district virtual extended and next sector, select the strategy of suitable partitioned record to specify when the system configuration by the user, default to last suitable subregion, strategy such as that other strategy has is suitable at first, maximum is suitable, minimum is suitable, operating system is suitable;
D. sector content difference table is set up in the place that subregion/the extended partition structure is different under subregion under the shared state/extended partition structure and the non-shared state and be stored in step in the memory storage, sector content difference table can be set up like this, wherein each is the difference content of a sector, at least comprise the sector logical address, minimum skew, the length that covers of different content, new sector content, sector content difference table total item is total logarithm of described different sectors, is stored in the part that begins most of sector content difference table; The minimum covering of different content refer in two different sectors of content, first place different to a last place different between full content;
E. the step that the sector result who is arranged in content difference table in sector in the actual read command is replaced, if the sector under the finger shared state in the read command comprises the sector in the sector content difference table, represent that actual what read is the content of respective sectors under the non-shared state, after using the new sector content replacement in the sector content difference table, be only the content of respective sectors under the shared state, so the benefit of handling is to keep sharing and the non-subregion/extended partition structure of virtual memory when shared;
F. to being arranged in the write-protected step in sector of sector content difference table in the actual write order, do not allow to revise the subregion/extended partition structure of virtual memory when shared;
The method that replaceable storage unit virtual partition data consistency is set up in the file devices, table is stored in the replaceable storage unit if external storage is divided into the described virtual subnet memory parameter of the method for quantum memory, then directly read virtual subnet memory parameter table and can obtain all virtual partition data about this replaceable storage unit, otherwise, use following step:
A. " the virtual partition parameter " of setting up used replaceable storage unit tabulated and is stored in the non-step of recalling body device of forgeting, this step is kept at " the virtual partition parameter " of used all the replaceable storage unit of this memory storage in the tabulation, each of this tabulation is " the virtual partition parameter " of a replaceable storage unit and the feature that is used to discern this replaceable storage unit, this feature can be the sequence number of replaceable storage unit or special mark, tabulation is positioned at non-mistake memory bank, after the maximum column list item uses up, adopt specific algorithm to eliminate, as nearest use, minimum use, FIFO ... or the like;
The step of b. replaceable storage unit virtual partition data consistent check, sequence number by checking sequence number in the virtual subnet memory parameter table or mark and current replaceable storage unit with mark whether consistent, decide storage unit whether to change,, then change step c if change;
The step of c. replaceable storage unit virtual partition parameter matching, by scanning " virtual partition parameter " tabulation, therefrom seek " virtual partition parameter " with current replaceable storage unit characteristic matching, if find, then data consistency is set up and is finished, otherwise needs to rebuild;
Current virtual memory read/write address is converted to the method for the absolute read/write address of external storage, may further comprise the steps;
A. the logic read/write address of establishing current virtual subnet storer is addr, and the length of read-write is len, and obtain following parameter from current virtual subnet memory parameter table: current virtual subnet storer total volume is Cs, and wherein the quantum memory capacity is C 1, its absolute start address in external storage is S 1, the quantum memory capacity that is shared is respectively C 2..., Cm, the quantum memory that the is shared absolute start address in external storage is respectively S 2..., Sm is with above-mentioned address addr, length l en, capacity C 1-Cm, Cs, absolute start address S 1-Sm is stored in respectively in the memory storage, definition Sum (0)=0, Sum (n)=C 1+ ...+Cn (wherein, 0<n<=m), calculate Sum (1) respectively, Sum (2) ..., Sum (m), Cs=Sum (m), with Sum (0), Sum (1) ..., Sum (m) is stored in the memory storage respectively;
If the addr value b. in the memory storage less than 0 or more than or equal to the Cs value in the memory storage, is represented the read/write address mistake;
C., variable k circulation successively between integer 1-m is set, find the addr value that satisfies in the memory storage more than or equal to (k-1) value of the Sum in the memory storage and less than the Sum in the memory storage (k), stop circulation, the absolute read/write address that obtain this moment is: the addr value in the memory storage deducts Sum (k-1) value and adds S kValue, if the addr value in the memory storage adds the len value greater than Sum (k) value, Sum (k) value of then reading and writing length and being in the memory storage deducts the addr value, otherwise is the former read-write length l en value in the memory storage;
The method of current virtual subnet memory data output (reading) may further comprise the steps;
A. external storage receives the read command of upper strata host computer system;
B. external storage beginning sector and the sector length that from read command, obtain to read with respect to current virtual memory;
C. will begin sevtor address and be converted to the start address of the absolute sector addresses of external storage as read command reality;
D. check whether address, conversion back is legal;
E. read actual sector data
Be in shared state if f. share switchgear, and the sector of reading comprises the sector in " sector difference table ", then replace the content of respective sectors according to " sector difference table ";
For reading of system configuration quantum memory, if the memory block of system configuration quantum memory is not the part on the external storage storage unit, then the beginning sevtor address need not be converted to the absolute sector addresses of external storage, directly read corresponding non-forget recall body device and get final product.
The method of current virtual subnet memory data input (writing) may further comprise the steps;
A. external storage receives the write order of upper strata host computer system and the data of desiring to write;
B. external storage is checked the write-protect mode bit of current virtual subnet storer;
C. external storage beginning sector and the sector length that from write order, obtain to write with respect to current virtual subnet storer;
Be in shared state if d. share switchgear, and the sector that writes comprises the sector in " sector difference table ", or the sector that writes comprises sector, then write-protect in the case of non-partitioned;
D. will begin sevtor address and be converted to the start address of the absolute sector addresses of external storage as write order reality;
E. check whether address, conversion back is legal, and to the default write-protect in shared Sub memory storage area sector;
F. write actual sector data;
For writing of system configuration quantum memory, if the memory block of system configuration quantum memory is not the part on the external storage storage medium, then the beginning sevtor address need not be converted to the absolute sector addresses of external storage, write direct and correspondingly non-ly forget the relevant position of recalling body device and get final product.
The method of external storage configuration may further comprise the steps:
A., the current quantum memory sequence number of using is set is the system configuration sequence number;
B. start host computer system from the system configuration quantum memory, and on main frame the operational system configurator, or direct operational system configurator on main frame;
C. the configurator on the main frame is reminded the user that external storage is carried out virtual dividing whether the influence and the inquiry user of available data is continued operation, if the user stops virtual dividing, then configuration stops withdrawing from, otherwise carries out next step;
D. the user sets up the scheme of new external storage virtual dividing as required on main frame, or reads the scheme of existing virtual dividing on the external storage and make amendment;
E. whether the splitting scheme of the submission of the configurator inspection on the main frame is legal;
F. the configurator on the main frame submits to the user to confirm operation once more, and user's splitting scheme is converted to the form of external storage control module understanding, and being transferred to control module, configurator is by carrying out specific read-write and control module exchange system configuration information and scheme to the particular sector of system configuration subpool;
G. the external storage control module will be checked the parameter of splitting scheme once more, if there is not mistake, then be kept at " virtual subnet memory parameter table " in, otherwise return the error message of host computer system parameter list;
If do not set up system configuration quantum memory district; control module is virtual by a virtual minimum capacity " the system configuration quantum memory " support the communication with main frame; for example: a virtual physical parameter table that only has minimum capacity is given host computer system; then to the read operation of the host computer system of nonspecific sector, fixedly return complete 0 sector, write operation and return write-protect.
The purpose that the quantum memory selecting arrangement is set a system configuration sequence number is the use and the setting of storer are kept apart, and security is better.
Quantum memory sequence number (this sequence number is used for by the quantum memory selecting arrangement selected) method for building up comprises the steps:
A. set the quantum memory mark off and the corresponding relation of quantum memory selecting arrangement, and be kept at non-forget recall body device;
If this step is default, then presses the quantum memory space address automatically and distinguish corresponding from small to large with the selection sequence number of quantum memory selecting arrangement successively from small to large;
B. having the quantum memory of identical corresponding relation with the quantum memory selecting arrangement will be by virtual to same virtual subnet storage space, and precedence or other rule (as address size in-line arrangement, contrary row etc.) that foundation is set are set up logical address space, be provided with m son storage and have identical corresponding relation with the quantum memory selecting arrangement, their capacity is respectively C 1, C 2..., Cm, the absolute start address in external storage is S 1, S 2..., Sm, definition Sum (0)=0, Sum (n)=C 1+ C 2+ ... + Cn (wherein, 0<n<=m), then this virtual subnet memory logic spatial dimension is 0-Sum (m)-1, i sub-memory logic spatial dimension is Sum (i-1)-Sum (i-1)+Ci-1, for logical address addr, if addr is less than 0 or more than or equal to Sum (m), presentation address is illegal, otherwise, between 1-m, seek k successively, make addr more than or equal to Sum (k-1) and less than Sum (k), at this moment, the specific address of address addr in external storage is Sk+addr-Sum (k-1), and maximum readable length is: Sum (k)-addr
Definition: m is referred to as to make up quantum memory here with the pairing quantum memory of equal value of new storage space that the quantum memory selecting arrangement has the quantum memory storage space formation of identical corresponding relation.
The quantum memory sequence number set up with quantum memory between the relevant consideration shared: when sharing method between combination quantum memory and quantum memory and affact same quantum memory, can become complicated on the relational theory between quantum memory, and actual application does not resemble in theory complexity so, can handle like this, to make up quantum memory and do sharing between as a whole (quantum memory) participation quantum memory, in the time of the address space conversion, to carry out twice for the combination quantum memory of sharing or be shared, for the first time be that the virtual subnet storage address is to making up the quantum memory address (referring to " current virtual memory read/write address is converted to the method for the absolute read/write address of external storage ", addr value among the step c deducts Sum (k-1) and is address with respect to the combination quantum memory), for the second time being combination quantum memory address (sees quantum memory sequence number method for building up: step b) to the physical address in external storage of quantum memory.
The virtual partition method of described external storage, it is characterized in that, the corresponding relation of the quantum memory of virtual division and quantum memory selecting arrangement can be set arbitrarily, and the quantum memory that has identical corresponding relation with the quantum memory selecting arrangement will be by virtual to same virtual subnet storage space
The virtual partition method of described external storage, it is characterized in that describedly non-ly forgeting that to recall body device can be to keep the memory bank device of (not powering up under the situation at external storage) function to constitute by flash memory (FLASH MEMORY), EEPROM, FRAM, MRAM or other the data that have, perhaps use a storage space formation on the storage unit in the external memory, perhaps their combination in any constitutes;
The virtual partition method of described external storage, it is characterized in that being applicable to have IDE/EIDE (IDE of enhancing), SCSI, USB (USB (universal serial bus)), the hard disk of SATA (serial ATA), IEEE1394, PCMCIA or other any interface, electronic hard disc, various electric board, flash disk, storage card, card reader, various hard-disk cartridge, ZIP dish, CF card or arbitrarily power down non-forget recall the memory bank that body device constitutes;
The virtual partition method of described external storage, it is characterized in that to face mutually between the quantum memory physical space of described division, can not face mutually yet, but it is not overlapping, quantum memory and can be discontinuous by quantum memory physical space address that it is shared, quantum memory links to each other with the storage space logic of the quantum memory of being shared by it, addresses continuously since 0, and the end address is that quantum memory subtracts 1 with the quantum memory capacity sum that is shared;
The virtual partition method of described external storage is characterized in that having the write-protect function, but antithetical phrase memory areas data write write-protect;
The virtual partition method of described external storage, it is characterized in that described system configuration quantum memory is guidable virtual subnet memory areas, wherein comprise the operating system and the instrument that run on the main frame at least, run on the system configuration utility program on the host computer system, run on configurator on the main frame by the particular sector of system configuration subpool is carried out specific read/write access system configuration information and scheme;
The virtual partition method of described external storage, it is characterized in that having the overall situation and allow/forbid the function of sharing between quantum memory, quantum memory district and used by host computer system by the organizational form of subregion/extended partition by quantum memory that it is shared, subregion/extended partition structure when sharing between quantum memory is set up automatically by control module, need not user intervention, and do not influence the subregion/extended partition structure of non-quantum memory when shared, automatically the quantum memory district that is shared is carried out write-protect when shared, and to subregion/extended partition structure write-protect, subregion or extended partition only are present in a quantum memory (or quantum memory of the sharing) district, a quantum memory can be shared a plurality of quantum memories with shared attribute, and the quantum memory with shared attribute can be shared by a plurality of quantum memories;
The virtual partition method of described external storage is characterized in that using the quantum memory selecting arrangement to select the quantum memory of current use;
The virtual partition method of described external storage, it is characterized in that supporting the replacing of external storage stored unit, can discern the storage unit that virtual dividing crosses and set up automatically or implanting needle to " the virtual subnet memory parameter table " of this storage unit virtual dividing.
The virtual partition method of described external storage, by a control module is set, control the virtual partition of external storage, comprising: the division of external storage inside and virtual subnet storer are set up, are controlled virtual subnet memory address translation and access, control between quantum memory and share, control the foundation that replaceable storage unit virtual partition data consistency is set up, control system disposes quantum memory and control the external storage system configuration; Described control module can pass through firmware (Fireware) to be realized, firmware in devices that can shared former external storage or enlarge the capacity of the firmware in devices of former external storage;
The purpose of invention; can also further realize by the following technical programs; a kind of file devices; comprise: external interface controller (110); control module (180); contain interface control module (181); command interpreter (182) and virtual controlling module (183); storage unit (120) or contain the interface of replaceable storage unit (120); write-protect switch device (140); quantum memory selecting arrangement (150); virtual partition parameter memory storage (160); contain virtual division parameter memory storage (161) and virtual shared parameter memory storage (162); virtual partition parameter list memory storage (190) is shared switchgear (170), system configuration quantum memory device (130)
Wherein:
Virtual partition parameter memory storage (160) is used to store the virtual partition parameter to external storage;
Virtual division parameter memory storage (161) is used to store the virtual division parameter to external storage;
Virtual shared parameter memory storage (162) is used to store quantum memory and shares attribute and shared relationship parameter;
Virtual parameter list storage device (190) is used to store the virtual division parameter list of used replaceable storage unit;
Quantum memory selecting arrangement (150) is used to select the virtual subnet storer of current use;
Share switchgear (170), be used to be provided with the permission of the overall situation/forbid shared state between quantum memory;
Write-protect switch device (140) is used for the write-protect of virtual subnet reservoir;
System configuration quantum memory device (130) is guidable virtual subnet memory areas, wherein comprises the operating system that runs on the main frame at least, runs on the system configuration utility on the host computer system;
Virtual controlling module (183), division and the virtual subnet storer that is used to control external storage inside set up, share between control virtual subnet memory address translation and access, control quantum memory, the replaceable storage unit virtual partition data consistency of control is set up, the foundation of control system configuration quantum memory and control the external storage system configuration;
Virtual controlling module (183) in the described file devices can be realized by firmware and microcontroller, perhaps uses logical circuit to realize.
Quantum memory selecting arrangement (150) in the described file devices, write-protect switch device (140), share switchgear (170) can be by machinery or electronics, that select or coding, wired or wireless, or by interface selection or setting, they can be other devices of branch, also are incorporated in the sub-device in the same device;
Virtual partition parameter memory storage (160) in the described file devices, virtual parameter list storage device (190), memory bank in the system configuration quantum memory device (130) can be to be made of a storage space on flash memory (FLASH MEMORY), EEPROM, FRAM, MRAM or other non-mistake memory body or the external storage storage unit (120) or their combination in any, they can be other memory storages of branch, also can be the sub-memory storages in the memory storage;
Described file devices, can be to have IDE/EIDE (IDE of enhancing), SCSI, a USB (USB (universal serial bus)), the hard disk of SATA (serial ATA), IEEE1394, PCMCIA or other any interface, electronic hard disc, various electric board, flash disk, storage card, card reader (comprising or do not comprise storage card), various hard-disk cartridge (comprising or do not comprise hard disk), ZIP dish, CF card or arbitrarily power down non-forget recall the memory bank that body device constitutes;
Described file devices, it supports the replacing of storage unit, be that memory storage can separate with storage space, as magneto-optical drive (MO Driver), and card reader (card reader), and hard-disk cartridge (harddisk box) etc., being present on the other storage medium or storer in the physical memory space of file devices under this kind situation, file devices goes to visit them by specific interface.
Technique effect
Method and apparatus of the present invention can become a plurality of virtual subnet storeies with an external storage, for the use of different needs, has security preferably.Because irrelevant with the interface type of external storage, need between main frame and peripheral storage device, not increase emulation interface, applicable to interface external storage arbitrarily, and the performance of peripheral storage device not have to influence substantially.
The present invention can be continuous to the division of external storage, also can be discontinuous, the amount of physical memory of a virtual subnet storer can be made up of a plurality of quantum memory storage spaces, a plurality of quantum memory storage spaces can be discontinuous, can skip bad track effectively, increase the availability of external storage.
The virtual subnet storer that obtains by the present invention has the write-protect function, and can share safely between the quantum memory, has reduced shared/public data and the program repeated storage in each virtual subnet storer.Because the quantum memory that is shared is default a write-protect, unless and this write-protect user oneself change, otherwise host computer system can't change voluntarily, so very safe.
Use external storage of the present invention, its virtual partition is supported the replacing of store memory storage unit (storage medium), supports the replacing of card reader class storer and mobile class Memory Storage Unit.Available multiple mode can be used to the chooser storer, by teleswitch or code switch, can accomplish not unpack control to the external storage in the casing, and is simple and convenient.
Because having system is provided with quantum memory, can directly guide, instrument is set, upgrading tool from tape operation system and instrument, system, need not other any systems and extra interface can be finished system configuration and virtual partition functionality, avoided the propagation of the possible potential safety hazard of other system.
Description of drawings:
Fig. 1 be common external storage the inner structure theory diagram and with the annexation of host computer system, wherein: (80) external storage, (90) bus, (100) host computer system, (110) interface controller, (180) control module comprises (181) interface control module, (182) command interpreter, (120) storage unit;
Fig. 2 be file devices of the present invention Minimal Realization scheme inner structure theory diagram and with the annexation of host computer system, wherein: (80) external storage, (90) bus, (100) host computer system, (110) interface controller, (180) control module comprises (181) interface control module, (182) command interpreter and (183) virtual controlling module, (120) storage unit, (150) quantum memory selecting arrangement, (160) virtual partition parameter memory storage comprises (161) virtual division parameter memory storage;
Fig. 3 be file devices of the present invention big implementation inner structure theory diagram and with the annexation of host computer system, wherein: (80) external storage, (90) bus, (100) host computer system, (110) interface controller, (180) control module comprises (181) interface control module, (182) command interpreter, (183) virtual controlling module, (120) storage unit, (140) write-protect switch device, (150) quantum memory selecting arrangement, (160) virtual partition parameter memory storage, comprise the shared parameter memory storage in (161) virtual division parameter memory storage and (162), (190) virtual parameter list storage device, (170) share switchgear, (130) system configuration quantum memory device;
Fig. 4 is embodiments of the invention one: the structural principle block diagram with USB interface flash disk/hard disk/hard-disk cartridge of virtual partition function, storage unit in the file devices of this embodiment (120) promptly can be an one with file devices, as the USB hard disk, it also can be separable/replacing, as the hard-disk cartridge (Harddisk Box) of USB interface, this embodiment is a most preferred embodiment;
Fig. 5 is embodiments of the invention two: have the structural principle block diagram of the SATA interface hard disk of virtual partition function, this embodiment is another most preferred embodiment;
Fig. 6 is embodiments of the invention three: the structural principle block diagram of hard disk with scsi interface of virtual partition function;
Fig. 7 is embodiments of the invention four: the structural principle block diagram of hard disk/hard-disk cartridge with 1394 interfaces of virtual partition function;
Fig. 8 is embodiments of the invention five: the structural principle block diagram of ZIP dish with EIDE interface of virtual partition function;
Fig. 9 is that the address mapping and the virtual subnet storer of method and apparatus of the present invention constitutes synoptic diagram, among the figure: (200) external storage, (240) quantum memories, (300) virtual subnet storer, (20) sevtor address in the order the figure illustrates the situation that single quantum memory constitutes the virtual subnet storer;
Figure 10 is that another address mapping and the virtual subnet storer of method and apparatus of the present invention constitutes synoptic diagram, among the figure: (200) external storage, (210), (220), (230) three quantum memories, (310) virtual subnet storer, (400) subregion in the virtual subnet storer, (20) sevtor address in the order the figure illustrates the situation that three single quantum memories constitute virtual subnet storer and partition address conversion;
Figure 11 is a main flow chart of the present invention;
Figure 12 is the use process flow diagram of " sector content difference table " of the present invention;
Below, further specify in conjunction with the accompanying drawings and embodiments.
Specific embodiment:
Method of the present invention can be illustrated that embodiment is that the middle virtual controlling module (183) of the control module (180) of the USB interface inboard in USB storage locates to implement method of the present invention with embodiment shown in Figure 4.
The hard-disk capacity of supposing present embodiment is 30G, desires to do the usefulness of following each several part:
Part 1: work, 10G is divided into two districts, and C coils 6G, and D coils 4G;
Part 2: online, 5G is divided into a district, and C coils 5G;
Part 3: recreation, 12G is divided into 4 districts, and C coils 5G, and D coils 3G, and E coils 3G, and F coils 1G;
Part 4: storage system software, tool software, various driving, the 2G space is divided into a district, and C coils 2G;
Below, in conjunction with present embodiment, method of the present invention is described further:
1. hard drive space is divided into four parts, the reference position of each part is as follows:
Part 1:0.1G-10.1G
Part 2:10.5G-15.5G
Part 3:15.5G-27.5G
Part 4:28.0G-30.0G
Noting, is discontinuous between part 1 and part 2 and part 3 and the part 4, and part 1 is not also at the place that begins of hard drive space.
2. setting section 4 is for sharing attribute, and specified portions 4 can be shared by part 1 and part 2 and part 3;
3. under non-shared state part 1-4 is carried out subregion (FDISK) on request, the DPT item of each several part is respectively 2,1,2,1;
4. under the shared state, the virtual subnet storer is unified the logic addressing, as follows:
Part 1:0-12G, C:0-6G wherein, D:6-10G, E:10-12G (sharing)
Part 2:0-7G, C:0-5G wherein, D:5-7G (sharing)
Part 3:0-14G, C:0-5G wherein, D:5-8G, E:8-11G, F:11-12G, G:12-14G (sharing)
Part 4:0-2G, wherein C:0-2G
5. set up subregion new under the shared state/extended partition structure, be about to the 3rd of DPT that the shared portion subregion will directly add part 1 and 3; Second of DPT who the shared portion subregion is directly added part 2; With subregion/extended partition structure of so obtaining subregion/extended partition texture ratio when not sharing, obtaining sector difference table, should be the sector at the DPT place of part 1-3 here;
6. the part major parameter in the physical vlan parameter list of constructing under the shared state is as follows:
Part Total volume Active volume
1 ?12G ?12G
2 ?7G ?7G
3 ?14G ?14G
4 ?2G ?2G
7. the read/write address to the main frame that receives is changed under the shared state, sees Fig. 9 and Figure 10, object lesson such as following table:
The virtual subnet dish Address in the virtual subnet dish/operation Quantum memory Address in the quantum memory Specific address
??1 The 5G read-write ??1 ??5G ??5.1G
??1 11G reads ??4 ??1G ??29G
??3 The 6G read-write ??3 ??6G ??21.5G
??3 13G reads ??4 ??1G ??29G
??3 13G writes ??4 The 1G write-protect The 29G write-protect
??3 156 read-writes The illegal address The illegal address The illegal address
8. to virtual subnet dish 1-3, it is write-protected sharing dish default, does not transmit unsafe factor between the 1-3 so can not coil at son;
When sharing, forbid writing DPT, when reading DPT, the DPT that employs certainly when sharing replaces (using sector difference table);
For relating in the inventive method other step further specify as follows:
1. system configuration quantum memory district, if when realizing, designed the system configuration quantum memory, operating system (as free DOS 7.00 or (SuSE) Linux OS) can be housed therein and run on system configuration utility under the corresponding operating system, can also comprise some other disk tools or antivirus software etc.; If when realizing, there is not design system configuration quantum memory, then need by the virtual controlling module (183) in the control module (180) when the quantum memory selecting arrangement is positioned at system configuration (quantum memory) position, automatically construct the system configuration quantum memory Virtual Space of a minimum capacity, this moment, the system configuration quantum memory did not have the actual physical storage space, only be used for supporting with host computer system (100) between communicate by letter.Between control module (180) and the host computer system (100) about virtual partition administer and maintain communicate by letter and undertaken by specific read-write to the particular sector of system configuration quantum memory, particular sector can be that sevtor address is-1,0, n-1, n, n+1, m, or other certain special value, wherein m is positioned at reserve sector, and n is a system configuration quantum memory available sector number, and the data of read-write are unit with the sector, special structure and the verification of definition in the sector, further difference and the read-write of normal sector.
2. the formation of virtual partition parameter memory bank (160), system configuration quantum memory memory bank (130), can use the non-mistake memory body of independent power down or on external storage, keep the memory bank of a block space as them, the space that keeps can be beginning most of external storage or a rearmost zone, also can be other local reserve areas.
3. for the consideration of the virtual partition data consistency of replaceable storage unit (120), if virtual partition parameter memory bank (160) is stored on the storage unit (120), the virtual partition data consistency is without any problem, otherwise need be by feature to recently searching for virtual partition parameter to this replaceable storage unit (120), at this moment, to the replaceable storage unit (120) of sequence number is arranged, sequence number is feature, there is not sequence number, control module (180) will produce a unique sequence number (as when operation time+enough big random number), be kept at the ad-hoc location (ad-hoc location of particular sector) of replaceable storage unit (120), for increasing reliability, can be kept at a plurality of different local.
Fig. 9 and Figure 10 are the formation and the address translation synoptic diagram of virtual subnet storer of the present invention, and wherein figure nine is the situation that single quantum memory constitutes the virtual subnet storer, and Figure 10 is the situation that three single quantum memories constitute the virtual subnet storer.
Figure 11 and Figure 12 are process flow diagram of the present invention.
Purpose of the present invention; can also further realize by the following technical programs; a kind of flash disk/hard disk/hard-disk cartridge with USB interface of virtual partition function; as shown in Figure 4; remove the usb interface controller (110) that flash disk/hard disk/hard-disk cartridge had that comprises general USB interface; control module (180) contains interface control module (181); command interpreter (182); outside the storage unit (120); also comprise: control module (180) contains virtual controlling module (183); write-protect switch device (140); quantum memory selecting arrangement (150); share switchgear (170), virtual partition parameter memory storage (160) contains virtual division parameter memory storage (161) and virtual shared parameter memory storage (162); virtual parameter list storage device (190), system configuration quantum memory device (130)
The annexation of circuit is:
Usb interface controller (110) one ends link to each other with usb bus, the other end links to each other with storage unit (120) with control module (180), control module (180) all is connected (in some cases with storage unit (120) with usb interface controller (110), for reducing the transmission link of data, control module was realized with being connected by usb interface controller of storage unit, this relies on the function of usb interface controller), storage unit (120) all links to each other with usb interface controller (110) with control module (180), these connections all are two-way connections, the two-way flow of supporting signal and data.Interface control module (181), command interpreter (182) in the control module (180) are worked in coordination, and finish the basic read-write of storer.
Write-protect switch device (140) is shared switchgear (170), and quantum memory selecting arrangement (150) is by control module (180) access of virtual control module (183), and they are unidirectional input signals; Virtual partition parameter memory storage (160) and virtual parameter list storage device (190) are by the virtual controlling module (183) in the I2C bus access control module (180), and the I2C bus is supported the two-way flow of data and signal; System configuration quantum memory device (130) is by the virtual controlling module (183) in data bus, address bus and the control bus Access Control unit (180), the two-way flow of this interconnection supports data traffic and signal; Write-protect switch device (140), shared switchgear (170), quantum memory selecting arrangement (150), virtual partition parameter memory storage (160), virtual parameter list storage device (190), system configuration quantum memory device (130) and virtual controlling module (183) are used from the virtual partition function of storer.
Host computer system (100) is connected by the usb interface controller (110) of usb bus (90) with the flash disk/hard disk/hard-disk cartridge (80) of the USB interface with virtual partition function, transmission data and order, the interface control module (181) that has in the control module (180) of flash disk/hard disk/hard-disk cartridge (80) of the USB interface of virtual partition function is used to handle the operation relevant with interface, and the order that usb interface controller (110) is received passed to virtual controlling module (183) in the control module (180), virtual controlling module (183) determines according to the character of order whether needs carry out address mapping or constructing virtual physical parameter, or enter setting, then according to the result who handles, whether determine call instruction interpreter (182), if call instruction interpreter (182), command interpreter (182) is carried out the access of actual memory bank, and return virtual controlling module (183), virtual controlling module (183) determines whether command result is handled as required, and last virtual controlling module (183) returns to host computer system (100) by USB interface control module (181) module with the result.The main process flow diagram of whole process such as Figure 11 and shown in Figure 12, Figure 11 are command process flow process and configuration process flow process, and Figure 12 carries out the flow process that content is replaced for the use under the shared state " sector content difference table ".
Storage unit (120) can be flash memory cell or hard-disc storage unit or hard disk, the flash disk of the corresponding USB interface of difference, the hard disk of USB interface, three kinds of USB external storages of hard-disk cartridge of USB interface, flash memory cell or hard-disc storage unit are publicity mature technology or parts, the commodity that hard disk is ready-made especially.
Usb interface controller (110), control module (180) comprises that interface control module (181) and command interpreter (182) are the prior aries of its technical field maturation.
Write-protect switch device (140); share switchgear (170); quantum memory selecting arrangement (150); because the storer of USB interface generally is external use; they all can use mechanical switch to finish; wherein write-protect switch device (140) and shared switchgear (170) use toggle switch, and quantum memory selecting arrangement (150) uses rotary 8 to select 1 switch, and it is local and do not influence the placement of storer that all switches are positioned at all that the user conveniently touches.For other external storages that is positioned at casing, can consider to use teleswitch or be drawn out to the casing external setting-up by interface as scsi interface or EIDE interface.Rotary 8 select 1 switch that the selection of maximum 7 user-defined virtual subnet storeies can be provided, and another is used for system configuration.
Write-protect switch device (140); share switchgear (170); the I/O mouth that quantum memory selecting arrangement (150) can directly pass through control module (180) inserts; perhaps when the I/O of control module (180) is relatively more nervous; quantum memory selecting arrangement (150) is encoded; with minimizing I/O mouth quantity, even can come expansion I/O by latch.They are unidirectional with being connected of control module, promptly are input to control module (180).
Virtual partition parameter memory storage (160) and virtual parameter list storage device (190) use the EEPROM of serial to constitute, and as 24C16A, 24C32 etc., and use the I2C interface between the control module (180), perhaps use software simulation I2C interface.Need take two I/O mouth lines.For the hard-disk cartridge of the USB interface with virtual partition function, hard disk wherein is removable, the sequence number of hard disk can be preserved as feature in the virtual parameter list storage device (190) and as the retrieval, coupling use.
System configuration quantum memory device (130), the system configuration quantum memory capacity of present embodiment is set at 1M, is made of general parallel FLASH chip, and guidable free DOS system, system configuration utility and disk tools etc. wherein are housed.The FLASH chip is directly connected on the bus of control module (180), for the fewer control module of address wire (180), can consider by increasing the high position that latch comes the extended address line.The bit wide of FLASH chip and voltage and consistent the getting final product of control module (180).
During for the storage space on system configuration quantum memory device (130) and virtual partition parameter memory storage (160) the use storage unit (120), can handle like this: keep the storage space on the storage unit (120), can be the most preceding or last, capacity is greater than virtual partition parameter memory storage (160) and system configuration quantum memory device (130) capacity sum, system configuration quantum memory device (130) capacity can be set by system or user, but remainder is the user zoning.In addition, can also adopt another method, promptly only keep the storage space of virtual partition parameter memory storage (160), certain quantum memory district that will be divided by the user is appointed as system configuration quantum memory district.
Fig. 5 is embodiments of the invention two: the structural principle block diagram with SATA interface hard disk of virtual partition function; wherein; remove the SATA interface controller (110) that hard disk had that comprises general SATA interface; control module (180) contains interface control module (181); command interpreter (182); outside the hard-disc storage unit (120); also comprise: control module (180) contains virtual controlling module (183); write-protect switch device (140); quantum memory selecting arrangement (150); share switchgear (170); virtual partition parameter memory storage (160); contain virtual division parameter memory storage (161) and virtual shared parameter memory storage (162); virtual parameter list storage device (190), system configuration quantum memory device (130)
System configuration quantum memory device (130) is a storage space on the hard-disc storage unit (120);
Fig. 6 is embodiments of the invention three: the structural principle block diagram of hard disk with scsi interface of virtual partition function; wherein; remove the scsi interface controller (110) that hard disk had that comprises general scsi interface; control module (180) contains interface control module (181); command interpreter (182); outside the hard-disc storage unit (120); also comprise: control module (180) contains virtual controlling module (183); write-protect switch device (140); quantum memory selecting arrangement (150); share switchgear (170); virtual partition parameter memory storage (160); contain virtual division parameter memory storage (161) and virtual shared parameter memory storage (162); virtual parameter list storage device (190), system configuration quantum memory device (130)
Virtual partition parameter memory storage (160) comprises virtual division parameter memory storage (161) and shared parameter memory storage (162), is a storage space on the hard-disc storage unit (120);
Fig. 7 is embodiments of the invention four: the structural principle block diagram of hard disk/hard-disk cartridge with 1394 interfaces of virtual partition function; wherein; remove the SATA interface controller (110) that hard disk/hard-disk cartridge had that comprises general 1394 interfaces; control module (180) contains interface control module (181); command interpreter (182); outside hard-disc storage unit/hard disk (120); also comprise: control module (180) contains virtual controlling module (183); write-protect switch device (140); quantum memory selecting arrangement (150); share switchgear (170); virtual partition parameter memory storage (160); contain virtual division parameter memory storage (161) and virtual shared parameter memory storage (162), system configuration quantum memory device (130)
System configuration quantum memory device (130), virtual partition parameter memory storage (160) are storage spaces on hard-disc storage unit/hard disk (120), and virtual partition parameter list (190) is an option, no longer is necessary;
Fig. 8 is embodiments of the invention five: the structural principle block diagram of ZIP dish with EIDE interface of virtual partition function; wherein; remove the EIDE interface controller (110) that ZIP had that comprises general EIDE interface; control module (180) contains interface control module (181), command interpreter (182); outside the ZIP disc (120); also comprise: control module (180) contains virtual controlling module (183); write-protect switch device (140); quantum memory selecting arrangement (150); virtual partition parameter memory storage (160) contains virtual division parameter memory storage (161)
Storage unit (120) is removable ZIP disc;
Virtual controlling module (183) among above-mentioned all embodiment is used to control operation relevant with virtual partition and step, can be realized by microcontroller in the control module (180) and firmware, perhaps uses logical circuit to realize.Virtual controlling module (183) finish with need be following with step by the method that its cooperation is finished (different embodiment may only need a part wherein):
External storage is divided into the method for quantum memory;
Set up the method for current virtual subnet storer;
The method for building up in system configuration quantum memory district;
The method of sharing between quantum memory;
The method that replaceable storage unit virtual partition data consistency is set up in the file devices;
Current virtual memory read/write address is converted to the method for the absolute read/write address of external storage;
The method of current virtual subnet memory data output (reading);
The method of current virtual subnet memory data input (writing);
The method of external storage configuration;
Quantum memory sequence number method for building up;
Said method and step be existing the description in the virtual partition method of external storage of the present invention, no longer repeats here.

Claims (10)

1. the virtual partition method of an external storage, be used for marking off a plurality of quantum memory storage spaces, and constitute a plurality of virtual subnet storeies, but make to have only an access in a plurality of virtual subnet storeies of any moment according to purposes at the storage space of external storage, it is characterized in that, also comprise:
The division of described external storage storage space can be continuous, also can be discontinuous, but not overlapping;
Described each virtual subnet storer can be made of one or more quantum memory storage spaces that face mutually or do not face mutually;
The virtual partition method of described external storage is implemented in the file devices, and the external interface inboard is applicable to the file devices of total interface type, and comprises following steps:
A. mark off a plurality of quantum memory storage spaces and be stored in step in the memory storage at the storage space of external storage dividing parameter;
B. select the step of the virtual subnet storer of current use by the quantum memory selecting arrangement;
C. the address value with respect to the virtual subnet storer of current use in the data input/output method is converted to the step of the specific address of external storage;
D. the physical parameter of the storer in the data output method is used the step of replacing with the physical parameter of the virtual subnet storer equivalence of current use.
2. in accordance with the method for claim 1, it is characterized in that also comprise the method for building up in system configuration quantum memory district, this method comprises:
A. the system configuration quantum memory is set up corresponding step with a chosen position of quantum memory selecting arrangement;
B. set up the step in space, system configuration quantum memory memory block;
C. set up memory block space partition zone structure (DPT) and be stored in the step in space, memory block;
D. system's Main Boot Record (MBR) is stored in the step in space, memory block;
E. operating system or operating system and instrument are stored in the step in space, memory block;
F. configuration tool or configuration tool and self upgrade-system instrument are stored in the step in space, memory block.
3. one kind by the method for organizing of the storage space of the quantum memory of virtual partition, is used for one or more storage spaces that face or do not face mutually quantum memory are mutually formed a virtual subnet memory storage space, it is characterized in that, comprising:
A., quantum memory is set to be shared shared relationship between attribute and quantum memory and is stored in step in the memory storage;
B. to the step of the quantum memory space in the described virtual subnet storer with the quantum memory space unified addressing that is shared;
C. set up the subregion/extended partition structure of described virtual subnet storer under the shared state and be stored in step in the memory storage;
D. the content of the subregion/extended partition structure of the relevant virtual subnet storer in the data output method under the shared state is replaced or the content of the subregion/extended partition structure of the relevant virtual subnet storer in the data entry device under the shared state is carried out write-protected step.
4. a file devices comprises external interface controller (110), control module (180), and storage unit (120) or the interface with removable storage unit (120) is characterized in that, also comprise:
One virtual partition parameter memory storage (160) is used to store the virtual partition parameter to external storage;
One quantum memory selecting arrangement (150) is used to select the virtual subnet storer of current use;
One virtual controlling module (183) is used for control:
Acceptance is to the division of external storage and will divide parameter and be kept in the virtual partition parameter memory storage (160);
Select the virtual subnet storer of current use by the quantum memory selecting arrangement;
The address value with respect to the virtual subnet storer of current use in the data input/output method is converted to the absolute physical address of external storage;
The physical parameter of the storer in the data output method used with the physical parameter of the virtual subnet storer equivalence of current use replace.
5. according to the described device of claim 4, it is characterized in that, also comprise:
Virtual shared parameter memory storage (162) is used to store quantum memory and shares attribute and shared relationship;
Virtual controlling module (183) also is used to control with quantum memory and it is by virtual subnet storer of its quantum memory of sharing formation.
6. according to the described device of claim 5, it is characterized in that being, also comprise shared switchgear (170), be used to be provided with the permission of the overall situation/forbid shared state between quantum memory.
7. according to the described device of claim 4, it is characterized in that being, also comprise system configuration quantum memory device, described system configuration quantum memory is guidable virtual subnet memory areas, wherein comprise the operating system that runs on the main frame at least, run on the system configuration utility on the host computer system.
8. according to the described device of claim 4, it is characterized in that being, also comprise the write-protect switch device, be used for the write-protect of virtual subnet reservoir.
9. according to claim 4; 6; 8 any one described device; it is characterized in that, described quantum memory selecting arrangement (150), write-protect switch device (140), share switchgear (170) can be machinery or electronics, selection or coding; wired or wireless; or can be by interface selection or the device of setting, they can be other devices of branch, also are incorporated in the sub-device in the same device.
10. according to claim 4,5,7 any one described device, it is characterized in that being, described virtual partition parameter memory storage (160), memory bank in the system configuration quantum memory device (130) can be to be made of a storage space on flash memory (FLASH MEMORY), EEPROM, FRAM, MRAM or non-mistake memory body of other power down or the external storage storage unit (120) or their combination in any, they can be other memory storages of branch, also can be the sub-memory storages in the memory storage.
CNB2005100539624A 2004-03-16 2005-03-15 Virtual partition method and device for external memory Expired - Fee Related CN100476759C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100539624A CN100476759C (en) 2004-03-16 2005-03-15 Virtual partition method and device for external memory

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200410008720.9 2004-03-16
CN200410008720 2004-03-16
CNB2005100539624A CN100476759C (en) 2004-03-16 2005-03-15 Virtual partition method and device for external memory

Publications (2)

Publication Number Publication Date
CN1690984A true CN1690984A (en) 2005-11-02
CN100476759C CN100476759C (en) 2009-04-08

Family

ID=35346438

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100539624A Expired - Fee Related CN100476759C (en) 2004-03-16 2005-03-15 Virtual partition method and device for external memory

Country Status (1)

Country Link
CN (1) CN100476759C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882058A (en) * 2010-05-26 2010-11-10 孟智平 Method for virtually dividing storage device into a plurality of devices
CN102890618A (en) * 2011-07-19 2013-01-23 杭州华澜微科技有限公司 Storage expansion equipment with partitioned management
CN104639981A (en) * 2015-02-05 2015-05-20 深圳创维-Rgb电子有限公司 Television system starting method and television
CN111259380A (en) * 2017-08-22 2020-06-09 海光信息技术有限公司 Memory page transfer method and function call method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2335600A1 (en) * 1998-06-22 1999-12-29 Charles T. Gambetta Virtual data storage (vds) system
CN1131478C (en) * 2000-05-13 2003-12-17 苏毅 Equipment and method for inventing one hard disk being several independent and isolated subdisks
US6480845B1 (en) * 2000-06-14 2002-11-12 Bull Hn Information Systems Inc. Method and data processing system for emulating virtual memory working spaces
CN1340765A (en) * 2000-08-29 2002-03-20 廖瑞民 Method for dividing one hard disk into more partitions separated fully

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882058A (en) * 2010-05-26 2010-11-10 孟智平 Method for virtually dividing storage device into a plurality of devices
CN102890618A (en) * 2011-07-19 2013-01-23 杭州华澜微科技有限公司 Storage expansion equipment with partitioned management
CN102890618B (en) * 2011-07-19 2016-02-17 杭州华澜微电子股份有限公司 A kind of Memory Extension equipment with partition management
CN104639981A (en) * 2015-02-05 2015-05-20 深圳创维-Rgb电子有限公司 Television system starting method and television
CN104639981B (en) * 2015-02-05 2018-01-30 深圳创维-Rgb电子有限公司 Television system open method and TV
CN111259380A (en) * 2017-08-22 2020-06-09 海光信息技术有限公司 Memory page transfer method and function call method

Also Published As

Publication number Publication date
CN100476759C (en) 2009-04-08

Similar Documents

Publication Publication Date Title
CN1690946A (en) External memory interface switching device
CN1299207C (en) Large scale resource memory managing method based on network under SAN environment
CN1249586C (en) Flash memory system
CN1148687C (en) Full-match search method and device for network processor
CN1304960C (en) Method and system for implementing copy-on-write of a file
CN1249585C (en) Flash memory system
CN1265274C (en) Storage device control device and control method of storage device control device
CN1297898C (en) Partition creating method and deleting method
CN1162788C (en) Interchangeable storage medium, method of controlling same and computer system using same
CN1313938C (en) Storage system, computer system and a method of establishing volume attribute
CN100336059C (en) Intelligent use of user data to pre-emptively prevent execution of a query violating access controls
CN1516835A (en) Data storage device
CN1517906A (en) Document system and document management method
CN1846207A (en) Type path indexing
CN101064656A (en) Storage cluster system, data processing method, and program
CN1410876A (en) Microprocessor
CN1947100A (en) Nonvolatile memory system, nonvolatile memory device, memory controller, access device, and method for controlling nonvolatile memory device
CN1722107A (en) Computer system and method for migrating from one storage system to another
CN1493026A (en) Memory device and record regenerator using it
CN1174319C (en) Data structure managing device, data structure managing system, data structure managing method, and computer reconded medium for data structure managing program
KR20120022065A (en) Storage device and stream filtering method thereof, and data storage device including nonvolatile memory device
CN101061466A (en) Apparatus and method for processing data of flash memory
CN1719422A (en) Virtual access method of storage document data
CN1690984A (en) Virtual partition method and device for external memory
CN1734640A (en) Optical disc recording system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090408

Termination date: 20150315

EXPY Termination of patent right or utility model