CN102467349A - Storage space virtualization method - Google Patents

Storage space virtualization method Download PDF

Info

Publication number
CN102467349A
CN102467349A CN2010105475600A CN201010547560A CN102467349A CN 102467349 A CN102467349 A CN 102467349A CN 2010105475600 A CN2010105475600 A CN 2010105475600A CN 201010547560 A CN201010547560 A CN 201010547560A CN 102467349 A CN102467349 A CN 102467349A
Authority
CN
China
Prior art keywords
storage area
storage device
expansion
virtual
configuration file
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
CN2010105475600A
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN2010105475600A priority Critical patent/CN102467349A/en
Publication of CN102467349A publication Critical patent/CN102467349A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses a storage space virtualization method. In the method, by technical means of setting a needed storage space value by a user when other expansion storage devices, except a main storage device, of an electronic device still have residual storage space, and virtualizing the storage space of the expansion storage devices into the storage space of the main storage device of the electronic device according to the needed storage space value, the storage device, except the main storage device, in the same electronic device can be properly used for expanding the storage space of the main storage device, thus the technical effect of improving the utilization rate of the storage space is realized.

Description

The storage area virtual method
Technical field
The present invention relates to a kind of storage area virtual method, be meant a kind of storage area virtual method that properly utilizes in the same electronic equipment the outer storage area of main storage device to expand the storage area of main storage device especially.
Background technology
Storage device is to be used for the device that stores data in the electronic equipment, and along with the demand difference of distinct electronic apparatuses for storage device, the various storage devices that possess different storage speed and storage volume also are developed successively.Appearance from the past IDE hard disk, SATA hard disk to storage devices such as the USB mobile memory that comprises flash memory (flash memory), various storage cards; Science and technology is fast-developing now in single demonstration, has explained that also storing technology is a considerable subject under discussion for the system development dealer.
For a user, when the data in the middle of the operating electronic equipment storage device, must first come storage device is controlled usually through operating system.In general, the system file of operating system can be stored in the storage device that operating system is installed, make whereby operating system fast reading system operate needed system file and carry out corresponding operating.Yet for aforesaid operating system, in case a plurality of storage device is judged as independent storage device behind the operating system initial setting, the accessing operation in each storage device stores space just can be regarded as independent operation.For instance; When the operating system of supposing a mobile phone judges that when initial setting only comprising this machine storage device that operating system is installed and one in the mobile phone is used for expanding the storage card of storage area; Though the file that the user can select desire to store need be stored in this machine storage device or store in the card, same document can't separated into two parts and be stored in this machine storage device respectively and store in the card.
Because must being stored in the main storage device that operating system is installed, the program of some new installation sometimes or system file just can guarantee normal operation; If this moment, the storage area of main storage device was full; The user just must select to abandon to store; Or move in other storage devices that still have the residue storage area from the data of being about in the main storage device by the user, can with the program of newly installing or system file be stored in the main storage device.It is less or though quantity of documents can go out a storage area that meets required storage area value clearly after a little while easily from main storage device when the file of needs resettlements; But when required storage area value numerical value is considerable; Except the user will repeat the loaded down with trivial details suitable inconvenience of data resettlement operation; Meet required storage area value though still can produce the total surplus spatial value of a plurality of storage devices sometimes; But all exceed the awkward situation that the residue storage area of each storage device can't be moved because of the file size of single file; The user not only can't store the program or the system file of new installation, and remaining storage area also can't obtain appropriate utilization in other storage devices.
In sum; Can know that prior art existed since the midium or long term always and can't properly utilize the problem that the outer storage area of main storage device expands the storage area of main storage device in the same electronic equipment; Therefore be necessary to propose improved technological means, solve this problem.
Summary of the invention
Can't properly utilize the problem that the outer storage area of main storage device expands the storage area of main storage device in the same electronic equipment in view of what prior art existed; So the present invention discloses a kind of storage area virtual method; Be applicable in the operating system that electronic equipment moved with main storage device and at least one expansion storage device; Wherein, Operating system is the storage area that is installed on main storage device, and described method comprises the following step: receive the virtual request that starts virtual main storage device stores space; Be received from a wherein expansion storage device of choosing at least one expansion storage device; Calculate the zone of reasonableness of required storage area value according to the residue storage area value of the value of taking up room of the required configuration file of the virtual process of carrying out main storage device stores space and the expansion storage device chosen; In setting the interface display zone of reasonableness and receive the required storage area value that the user chooses in zone of reasonableness; Set up configuration file in expanding storage device; The address configuration in first storage area, second storage area and main storage device stores space is recorded in the configuration file; Wherein, First storage area is to dispose gained according to required storage area value in expanding storage device, and second storage area is for expanding the storage area that storage device is not configured to first storage area and does not comprise configuration file; Restart; And read configuration file and combine the virtual back main storage area of first storage area as electronic equipment with main storage device stores space, carry out the data access operation and expand the storage area as the virtual back of electronic equipment with second storage area.
The disclosed storage area of the present invention virtual method as above; And the difference between the prior art is that the present invention has outside the main storage device of electronic equipment other when expanding storage devices and still having the residue storage area; Supply the user to set required storage area value, and will to expand the storage area of storage device virtual according to required storage area value be the technological means in the main storage device stores space of electronic equipment.
Through above-mentioned technological means, the present invention can properly utilize in the same electronic equipment the outer storage area of main storage device to expand the storage area of main storage device, and then reaches the technological effect that improves the storage area availability.
Description of drawings
Fig. 1 is the process flow diagram of storage area of the present invention virtual method.
Fig. 2 is the virtual preceding configuration schematic diagram in embodiment of the invention portable electric device storage area.
Fig. 3 is the virtual preceding storage area synoptic diagram of embodiment of the invention SD Card.
Fig. 4 is the storage area synoptic diagram of embodiment of the invention SD Card after virtual.
Fig. 5 is the configuration schematic diagram of embodiment of the invention portable electric device storage area after virtual.
[main element symbol description]
210 machine storage devices of 200 portable electric devices
211 machine storage device stores space 220SD Card
222 residue storage areas, 221SD Card storage area
223 have used storage area 224 configuration files
225 do not dispose 226 first storage areas, storage area
This machine storage device stores space, 231 virtual back
SD Card storage area, 232 virtual back
Embodiment
Below will cooperate graphic and embodiment specifies embodiment of the present invention, whereby to the present invention how the application technology means implementation procedure that solves the problem of the storage area that can't properly utilize the outer storage area of main storage device in the same electronic equipment to expand main storage device and reach the technological effect that improves the storage area availability can make much of and implement according to this.
Define to term of the present invention at first, earlier.
Storage area of the present invention virtual method is applicable in the operating system that electronic equipment moved with main storage device and at least one expansion storage device.What need special instruction is can be desktop computer, notebook computer, portable electric device or other electronic equipments that expansion storage device can be installed and carry out operating system in electronic equipment of the present invention.In addition, all can be IDE hard disk, SATA hard disk, the USB mobile memory that comprises flash memory (flashmemory), various storage card in main storage device of the present invention and expansion storage device ... any storage device in waiting.In addition, storage device also can be that the difference of same storage device is cut apart, as: the C dish of same hard disk and D dish also can be considered different storing devices.The difference of main storage device and expansion storage device only is equipped with storage device and other general storage devices that stores functions of operating system in order to explanation.For instance; Suppose to be equipped with in the PC hard disk and assigned a USB storage device, if operating system is installed in the hard disk, then hard disk is main storage device; The USB storage device is then for expanding storage device; If this hard disk is cut apart C dish and D dish are arranged, and operating system is installed in the C dish, then D dish and USB storage device all are regarded as expanding storage device.
Next, please refer to Fig. 1, be the process flow diagram of storage area of the present invention virtual method, will be in order to implementing procedure of the present invention to be described.Storage area of the present invention virtual method is after the operating system of electronic equipment operation receives the virtual request that starts virtual main storage device stores space, to begin to such an extent that move; The producing method of virtual request; Can the person of being to use pass through that input system instruction back produces; Also can be that operating system detects in the main storage device storage area and produces automatically when not enough, then not limit to producing method of virtual request at this.
At first, receive the virtual request (step 101) that starts virtual main storage device stores space when the operation system after, at first be received from choose at least one expansion storage device wherein one expand storage device (step 102).When a plurality of expansion storage device is installed in the electronic equipment; Operating system can read the residue storage area value of all expansion storage devices in the electronic equipment earlier; And show that the residue storage area non-vanishing expansion storage device of value supplies the user to choose; After choosing in the expansion storage device that the user shows certainly, operating system will be carried out follow-up storage area pseudo operation in the expansion storage device of choosing.In addition, when the residue storage area of all expansion storage devices value all was zero, this moment, operating system can show that the full prompting in a space can't carry out the pseudo operation of storage area at present with the prompting user.When if single expansion storage device only is installed in the middle of the electronic equipment; Operating system can read the residue storage area value that expands storage device equally; When residue storage area value is non-vanishing; Then directly with only expansion storage device as the expansion storage device of choosing, if residue storage area value is zero, can show equally that then the full prompting in a space can't carry out the pseudo operation of storage area at present to point out the user.
After operating system receives the expansion storage device of choosing, then calculate the zone of reasonableness (step 103) of required storage area value according to the residue storage area value of the value of taking up room of the required configuration file of the virtual process of carrying out main storage device stores space and the expansion storage device chosen.Configuration file; Refer to the archives of the address configuration in the time of can being used for writing down virtual storage area; Since parameter value that address configuration write down like: start and end physical storage address, store character value ... wait numeral or character data to store, so the value of taking up room of configuration file can be calculated in advance by operating system with fixing character.Operating system then will calculate the zone of reasonableness of required storage area according to the residue storage area value of the value of taking up room of configuration file and the expansion storage device of choosing.For instance; After the value of taking up room of configuration file of a 4KB has been deducted in the residue storage area of supposing 2GB; The zone of reasonableness that can draw required storage area value is 0~1.996GB; Then operating system will be in setting the interface display zone of reasonableness, and receive the required storage area value (step 104) that the user chooses in zone of reasonableness.And, can be a literal inputting interface that is available for users to direct input value, or be available for users in a plurality of options, choose the menu operation interface of setting at the setting interface of this indication.
After the operation system receives required storage area value; Then set up configuration file (step 105) in expanding storage device; And the address configuration in first storage area, second storage area and main storage device stores space is recorded in (step 106) in the configuration file; Wherein, first storage area is to dispose gained according to required storage area value in expanding storage device, and second storage area is for expanding the storage area that storage device is not configured to first storage area and does not comprise configuration file.Described configuration file; The initial storage address that can the end in main storage device stores space be stored the address and first storage area stores; So that during the storage address of layout first storage area; The end that operating system can continue main storage device stores space stores the address and continues layout, makes the formatting of in fact identical with the storage address tool in main storage device stores space and the continuity in first storage area.In addition; Because first storage area and second storage area are actually the storage area of same expansion storage device; And first storage area will be regarded as the storage area of main storage device after virtual completion; Therefore interfere with each other for the storage area management of avoiding first storage area and second storage area; The configuration of second storage area also can be stored simultaneously, make virtual first storage area afterwards will carry out the accessing operation of main storage device, and the original accessing operation that expands storage device will be carried out in second storage area.
What need special instruction is; When setting up configuration file; The user's access right that can set configuration file is read-only, and only allows that content that operating system is directed against configuration file carries out the operation of read and write, and the person of avoiding the use of alters configuration file arbitrarily and makes System Operation produce gross error.
Operating system will restart (step 107) after address configuration is recorded in configuration file; And read configuration file and combine first storage area as main storage area, the virtual back of electronic equipment with main storage device stores space, carry out data access operation (step 108) and expand the storage area as the virtual back of electronic equipment with second storage area.
Except above-mentioned step; When the operation system receives the data access operation of a reading and writing of files; Operating system will be recorded in the file information of the access program of the file path that comprises reading and writing of files at least, file correspondence and file storage address in the configuration file; Whereby; When the operation system receive with expand storage device from electronic equipment remove remove request the time can read configuration file, and point out the user to remove to expand behind the storage device with affected access program and reading and writing of files by output change caution.In addition, remove when reinstalling to electronic equipment again when expanding storage device, operating system also can be carried out the data checking routine and whether expand data that storage device removes first storage area, back through revising with comparison.
Next; Please refer to Fig. 2, will with the portable electric device that possesses this machine storage device 210 and SD Card 220 200 as how an application have operating system of the present invention that the storage area is carried out virtual process detailed embodiment of the present invention to be described as embodiment.
This machine storage device 210 of supposing portable electric device 200 is the single storage area of cutting apart; And operating system is to be stored in this machine storage device; Then this machine storage device stores space 211 and SDCard storage area 221 are two storage areas independently before virtual, can carry out independently data access operation separately.
After supposing to use operating system the present invention is arranged and run on portable electric device 200 and receiving the virtual request that starts virtual machine storage device 210 storage areas at present; Operating system will read the residue storage area value of SDCard 220; When if the residue storage area value of SD Card 220 is zero; Can export the full prompting in a space, point out the user can't carry out the pseudo operation of storage area at present whereby; Otherwise, when SD Card 220 residue storage area values are non-vanishing, then with SD Card 220 as the expansion storage device that will bring virtual machine storage device 210 storage areas.
Then, operating system will be calculated the zone of reasonableness of required storage area value according to the residue storage area value of the value of taking up room of the required configuration file of the virtual process of carrying out this machine storage device 210 storage areas and SD Card 220.For instance; Meaning as shown in Figure 3; Suppose to mark off in the SD Card storage area 221 residue storage area 222 and used storage area 223; Learn after then operating system reads after the sizes values of residue storage area 222, will calculate a zone of reasonableness according to the value of taking up room and the residue storage area value of configuration file.For instance; Suppose the configuration file of the 4KB of storage area needs of a 2GB of configuration in SD Card; Then when residue storage area value is 2.004GB, will produce the zone of reasonableness of a 0~2GB, this zone of reasonableness will be outputed to set subsequently supplies the user to choose required storage area value in the interface; And set the interface can the person of being to use the direct literal inputting interface of input value, or the user can choose the menu operation interface of setting in a plurality of options.What need special instruction is; Since parameter value that address configuration write down like: start and end physical storage address, store character value ... wait numeral or character data to store, so the value of taking up room of configuration file can be calculated in advance by operating system with fixing character.In addition; Since the value of taking up room of configuration file maybe be according to the data formats setting of various configuration rules and address configuration difference to some extent; Limit in this actual computation method that then is not directed against the value of taking up room of configuration file; The value of taking up room of the configuration file of therefore being given an example is only in order to the producing method of explanation zone of reasonableness, but not in fact calculates the mode of the value of taking up room of configuration file in order to qualification.
Please refer to Fig. 4; After the operation system receives required storage area value; Then will in the middle of SD Card, set up configuration file 224; And in SD Card, dispose one first storage area 226 according to required storage area value; And be second storage area with the storage area 223 and 225 that is not configured to first storage area 226 and does not comprise configuration file 224, the address configuration with first storage area 226 among this machine storage device and the SD Card and second storage area 223 and 225 is recorded in the configuration file 224 then, then restarts operating system.When setting up configuration file 224, the user's access right that can set configuration file 224 is read-only, and only allows that content that operating system is directed against configuration file carries out the operation of read and write.
At last; Operating system reads configuration file and combines virtual back this machine storage device stores space 231 of first storage area 226 as electronic equipment with this machine storage device stores space 221; Operate and carry out data access as the SD Card storage area, virtual back 232 of electronic equipment with second storage area 223 and 225; As shown in Figure 5; In the future any data that is stored in first storage area 226 will be regarded as in this machine of being stored in storage device, and the path of supposing this machine storage device is " .../root/ ", and the data that then is stored in first storage area 226 also can be under " .../root/ " path.
In addition; When the operation system received the data access operation of a certain reading and writing of files, operating system will be recorded in the file information of the access program of the file path that comprises this reading and writing of files at least, file correspondence and file storage address in the configuration file 224.For example: during the program data of a browser of access, the file that program data is read file name and the program data of file path, browser stores the address and all will be recorded in the configuration file 224.Whereby; When the operation system receives SD Card 220 is removed request and the time can read configuration file 224 from what portable electric device 200 removed, and point out the user to remove behind the SD Card 220 affected access program and reading and writing of files by output change caution.In addition, when SD Card 220 removes when reinstalling to portable electric device 200 again, whether operating system also can carry out data that the data checking routine removes first storage area 226, back with comparison SD Card 220 through revising.
Though the disclosed embodiment of the present invention is as above, be described content be not in order to direct qualification scope of patent protection of the present invention.Those of ordinary skill in the technical field under any the present invention under the prerequisite that does not break away from disclosed spirit of the present invention and scope, can be done a little change what implement in form and on the details.Scope of patent protection of the present invention, still must with appending claims the person of being defined be as the criterion.

Claims (9)

1. storage area virtual method; Be applicable in the operating system that a electronic equipment with a main storage device and at least one expansion storage device moved; It is characterized in that this operating system is the storage area that is installed on this main storage device, this method comprises the following step:
Receive the virtual request that starts virtual this main storage device stores space;
Be received from a wherein expansion storage device of choosing in this at least one expansion storage device;
Calculate a zone of reasonableness of required storage area value according to the residue storage area value of value of taking up room of the required configuration file in virtual this main storage device stores space and this expansion storage device of choosing;
Set this zone of reasonableness of interface display and receive the required storage area value that the user chooses in this zone of reasonableness in one;
Set up this configuration file in this expansion storage device;
The address configuration in this first storage area, this second storage area and this main storage device stores space is recorded in this configuration file; Wherein, This first storage area is to dispose gained according to this required storage area value in this expansion storage device, and this second storage area is not configured to this first storage area for this expansion storage device and do not comprise the storage area of this configuration file;
Restart; And
Read this configuration file and combine a virtual back main storage area of this first storage area, carry out the data access operation and expand the storage area as a virtual back of this electronic equipment with this second storage area as this electronic equipment with this main storage device stores space.
2. storage area as claimed in claim 1 virtual method is characterized in that, is received from the step of a wherein expansion storage device of choosing in this at least one expansion storage device, more comprises the following step:
Read the residue storage area value of this at least one expansion storage device, and show that this non-vanishing at least one expansion storage device of residue storage area value supplies the user to choose; And
Receive the wherein expansion storage device that the user chooses in this at least one expansion storage device.
3. storage area as claimed in claim 2 virtual method; It is characterized in that; Read and more comprise after the step of residue storage area value of this at least one expansion storage device when not having the non-vanishing expansion storage device of this residue storage area value, show the full step of pointing out to point out the user can't carry out the pseudo operation of storage area at present in a space.
4. storage area as claimed in claim 1 virtual method; It is characterized in that; This operating system more is contained in the residue storage area value that reads this expansion storage device when this electronic equipment only has single expansion storage device, when residue storage area value is non-vanishing, with this expansion storage device as this expansion storage device of choosing; Otherwise, show the step that the full prompting in a space can't be carried out the pseudo operation of storage area at present with the prompting user.
5. storage area as claimed in claim 1 virtual method is characterized in that, this setting interface is to be literal inputting interface or menu operation interface.
6. storage area as claimed in claim 1 virtual method is characterized in that, sets up in the step of this configuration file in this expansion storage device, and more comprising user's access right of setting this configuration file is read-only step.
7. storage area as claimed in claim 1 virtual method; It is characterized in that; This operating system more is contained in when receiving the data access operation of carrying out a reading and writing of files, and the access program of the file path that comprises this reading and writing of files at least, file correspondence and a file information of file storage address are recorded in this configuration file.
8. storage area as claimed in claim 7 virtual method; It is characterized in that; This operating system more is contained in to receive this expansion storage device the time is read this configuration file from the request that removes that this electronic equipment removes, and exports a change caution and remove behind this expansion storage device affected access program and reading and writing of files with the prompting user.
9. storage area as claimed in claim 1 virtual method; It is characterized in that; This operating system more is contained in this expansion storage device and removes when reinstalling to this electronic equipment again, carry out a data checking routine with the data of this first storage area after comparing this expansion storage device and removing whether through revising.
CN2010105475600A 2010-11-15 2010-11-15 Storage space virtualization method Pending CN102467349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105475600A CN102467349A (en) 2010-11-15 2010-11-15 Storage space virtualization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105475600A CN102467349A (en) 2010-11-15 2010-11-15 Storage space virtualization method

Publications (1)

Publication Number Publication Date
CN102467349A true CN102467349A (en) 2012-05-23

Family

ID=46071032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105475600A Pending CN102467349A (en) 2010-11-15 2010-11-15 Storage space virtualization method

Country Status (1)

Country Link
CN (1) CN102467349A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572242A (en) * 2013-10-24 2015-04-29 华为技术有限公司 Method and device for expanding disk space of virtual machine and virtual machine system
CN104866331A (en) * 2014-02-25 2015-08-26 中国电信股份有限公司 Method and device for installing and calling applications on mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572242A (en) * 2013-10-24 2015-04-29 华为技术有限公司 Method and device for expanding disk space of virtual machine and virtual machine system
CN104866331A (en) * 2014-02-25 2015-08-26 中国电信股份有限公司 Method and device for installing and calling applications on mobile terminal
CN104866331B (en) * 2014-02-25 2018-06-01 中国电信股份有限公司 The method and apparatus of application is installed, called on mobile terminals

Similar Documents

Publication Publication Date Title
CN103473067B (en) Built-in Linux subregion and data restoration method, system and system development method
CN103106091A (en) Start-up system and method of operating system based on removable storage media
CN103294657A (en) Method and system for text editing
CN103294572A (en) Electronic device to restore MBR, and method thereof
CN102270144A (en) Embedded network equipment and method for upgrading firmware by using same
CN102567136A (en) Backup and recovery method of computer system, device and computer system
CN102171668A (en) A storage device for mounting to a host
EP2169530A2 (en) Method of managing memory storage space and a computer system
CN101169729A (en) Embedded type system and method for renewing application program
CN105824678A (en) Method and device for installing operating system
CN105607972A (en) Abnormity remedying method and device
CN101403972A (en) Memory card guiding method and device of embedded system
CN105653330A (en) SD card based NorFlash programming system and method
CN102455952B (en) Data backup and recovery method, device and system
CN102262570A (en) Method for updating fan control table
CN103488516A (en) System repair method and electronic equipment
CN102075710A (en) Starting operation method for television and television
CN106775485A (en) The method and system that a kind of SD card based on mobile terminal is formatted
CN101201765A (en) Device and method for data backup
CN101118494A (en) System and method for starting up and operating system from external connected electronic card with built-in equipment
CN107153557A (en) It is a kind of based on the device and method operated under Linux system to BIOS
CN102467349A (en) Storage space virtualization method
CN104461622A (en) System update method and system update device for intelligent terminal
US20100153622A1 (en) Data Access Controller and Data Accessing Method
CN103473182A (en) Access method of non-volatile memory and non-volatile memory controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120523