CN102486773A - Virtual disk content updating method and virtual disk device as well as terminal equipment and system - Google Patents

Virtual disk content updating method and virtual disk device as well as terminal equipment and system Download PDF

Info

Publication number
CN102486773A
CN102486773A CN2009102441883A CN200910244188A CN102486773A CN 102486773 A CN102486773 A CN 102486773A CN 2009102441883 A CN2009102441883 A CN 2009102441883A CN 200910244188 A CN200910244188 A CN 200910244188A CN 102486773 A CN102486773 A CN 102486773A
Authority
CN
China
Prior art keywords
virtual disk
file content
file
content
source 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.)
Granted
Application number
CN2009102441883A
Other languages
Chinese (zh)
Other versions
CN102486773B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN200910244188.3A priority Critical patent/CN102486773B/en
Publication of CN102486773A publication Critical patent/CN102486773A/en
Application granted granted Critical
Publication of CN102486773B publication Critical patent/CN102486773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The embodiment of the invention discloses a virtual disk content updating method and a virtual disk device as well as terminal equipment and a system. The method comprises the following steps of: when receiving an accessing request to a virtual disk sector by the terminal equipment, judging whether the virtual disk sector is located a file content area of a virtual disk or not; if so, obtaining a source file content corresponding to the sector; judging whether the source file content needs to be updated or not; if so, carrying out updating operation on the source file content; and after the updating, reconstructing the file content area corresponding to the source file content and returning data of the vector to the terminal equipment. According to the technical scheme provided by the invention, when the source content of the virtual disk needs to be updated, the constructed virtual disk content is synchronously and transparently updated, so that a user can play the content, which is updated in real time, through the virtual disk.

Description

Virtual disk content update method, virtual disk device, terminal device and system
Technical field
The present invention relates generally to the virtual disk field, is meant a kind of virtual disk content update method, virtual disk device, terminal device and terminal system especially.
Background technology
Increasing household electronic consumer device is (like televisor, digital photo frame, DVD (Digital VideoDisc; Digital video disc) terminal device such as) support USB (Universal Serial Bus; USB), SD interfaces such as (Secure Digital Memory Card, safe digital cards).The user can expand the content of being play through these interfaces, like film or online music on individual photograph, the line.The user will realize these function needs: 1, from the internet or the LAN media content download to PC (PersonalComputer, personal computer); 2 copy media content to USB flash disk/memory devices such as SD card from PC; 3, USB flash disk/memory devices such as SD card are inserted on the terminal device and play.The user hopes when using this function: 1, need not frequently to do operations such as download, copy and plug; 2, institute's play content is supported real-time update, and like the digital photograph up-to-date photo of uploading of playing network photograph album always, TV can be play different period hot news on the same day always; 3, transparent fully to the user during USB flash disk/SD card content update, the user need not to do any operation can watch what be new.
Existing virtual disk technology has realized that any file group in the operating system is dressed up one can be by the virtual disk of household electronic consumer device (terminal device) identification.Remove the user from and frequently copied, plugged operation.But the virtual disk of being constructed can't reflect the content update in the physical disk, when source contents changes, can cause virtual disk to lose efficacy, and needs again structure to work.
Summary of the invention
The embodiment of the invention proposes a kind of virtual disk content update method, virtual disk device, terminal device and terminal system; When the virtual disk source contents upgrades; The virtual disk content synchronization transparent refreshing of being constructed, thus realize that the user plays the content of real-time update through virtual disk.
The technical scheme of the embodiment of the invention is achieved in that
A kind of virtual disk content update method comprises:
When receiving terminal device, judge whether said sector is in the file content district of said virtual disk to the access request of virtual disk sector;
If said sector is in the file content district of said virtual disk, then obtain the corresponding source file content in said sector;
Judge whether said source file content needs to upgrade;
If said source file content needs to upgrade, then said source file content is carried out and upgraded operation, after renewal finishes, construct said source file content corresponding file content regions again, and return said sectors of data to said terminal device.
Preferably, said judge before whether said sector is in the file content district step of said virtual disk also comprise:
Construct the file allocation table FAT list area and the file entries meta-data region of said virtual disk;
Construct the file content district of said virtual disk.
Preferably, the FAT list area of the said virtual disk of said structure and file entries meta-data region step are specially:
Calculate the maximum file size of said source file content after renewal according to the file layout of source file content and the processing power of said terminal device;
Constructing the FAT list area of said virtual disk, is the enough number of clusters of said source file content allocation in said FAT list area according to said maximum file size;
Construct the file entries meta-data region of said virtual disk, indicate that in said file entries meta-data region the length of said source file content is said maximum file size.
Preferably, the file content district step of the said virtual disk of said structure is specially:
According to the file content district of the said virtual disk of source file composition of content, and in the head or the afterbody zero padding of said source file content, make the file size after the zero padding equal said maximum file size.
Preferably, saidly also comprise before after renewal finishes, constructing said source file content corresponding file content regions step again:
Judge that whether the file layout of upgrading the said source file content after finishing is by said terminal device support;
If the file layout of upgrading the said source file content after finishing is not by said terminal device support, the file layout of the said source file content after then renewal being finished converts the file layout that said terminal device is supported into.
Preferably, saidly also comprise before after renewal finishes, constructing said source file content corresponding file content regions step again:
Judge that whether the file size that upgrades the said source file content after finishing is greater than said maximum file size;
If the file size that upgrades the said source file content after finishing is greater than said maximum file size, the file size of the said source file content after then renewal being finished is compressed to said maximum file size.
A kind of virtual disk device comprises:
First judging unit is used for when receiving terminal device to the access request of virtual disk sector, judging whether said sector is in the file content district of said virtual disk;
Acquiring unit is used for when the said sector of said first judgment unit judges is in the file content district of said virtual disk, obtains the corresponding source file content in said sector;
Second judging unit is used to judge whether said source file content needs to upgrade;
Processing unit; The said source file content of said second judgment unit judges is used for when need be upgraded; Said source file content is carried out the renewal operation, after renewal finishes, construct said source file content corresponding file content regions again, and return said sectors of data to said terminal device.
Preferably, also comprise:
First tectonic element is used to construct the file allocation table FAT list area and the file entries meta-data region of said virtual disk;
Second tectonic element is used to construct the file content district of said virtual disk.
Preferably, said first tectonic element comprises:
Computation subunit is used for calculating the maximum file size of said source file content after renewal according to the file layout of source file content and the processing power of said terminal device;
The 3rd constructor unit is used to construct the FAT list area of said virtual disk, is the enough number of clusters of said source file content allocation in said FAT list area according to said maximum file size;
The 4th constructor unit is used to construct the file entries meta-data region of said virtual disk, indicates that in said file entries meta-data region the length of said source file content is said maximum file size.
Preferably, said second tectonic element comprises:
The 5th constructor unit is used for the file content district according to the said virtual disk of source file composition of content, and in the head or the afterbody zero padding of said source file content, makes the file size after the zero padding equal said maximum file size.
Preferably, also comprise:
The 3rd judging unit is used to judge that whether the file layout of upgrading the said source file content after finishing is by said terminal device support;
Converting unit; Be used for when the file layout that said the 3rd judgment unit judges is upgraded the said source file content after finishing is not supported by said terminal device, the file layout of the said source file content after renewal is finished converts the file layout that said terminal device is supported into.
Preferably, also comprise:
The 4th judging unit is used to judge that whether the file size that upgrades the said source file content after finishing is greater than said maximum file size;
Compression unit, the file size that is used for upgrading the said source file content after finishing when said the 4th judgment unit judges be during greater than said maximum file size, and the file size of the said source file content after renewal is finished is compressed to said maximum file size.
A kind of terminal device is used for the accesses virtual disk set and the data that said virtual disk device returns is play, and said virtual disk device comprises:
First judging unit is used for when receiving terminal device to the access request of virtual disk sector, judging whether said sector is in the file content district of said virtual disk;
Acquiring unit is used for when the said sector of said first judgment unit judges is in the file content district of said virtual disk, obtains the corresponding source file content in said sector;
Second judging unit is used to judge whether said source file content needs to upgrade;
Processing unit; The said source file content of said second judgment unit judges is used for when need be upgraded; Said source file content is carried out the renewal operation, after renewal finishes, construct said source file content corresponding file content regions again, and return said sectors of data to said terminal device;
Said terminal device comprises:
Transmitting element is used to send the access request to said virtual disk sector;
Receiving element is used to receive the data that said virtual disk sector is returned;
Broadcast unit is used to play the data that said virtual disk sector is returned.
A kind of terminal system comprises terminal device and virtual disk device, and said terminal device comprises:
Transmitting element is used to send the access request to said virtual disk sector;
Receiving element is used to receive the data that said virtual disk sector is returned;
Broadcast unit is used to play the data that said virtual disk sector is returned;
Said virtual disk device comprises:
First judging unit is used for when receiving said terminal device to the access request of said virtual disk sector, judging whether said sector is in the file content district of said virtual disk;
Acquiring unit is used for when the said sector of said first judgment unit judges is in the file content district of said virtual disk, obtains the corresponding source file content in said sector;
Second judging unit is used to judge whether said source file content needs to upgrade;
Processing unit; The said source file content of said second judgment unit judges is used for when need be upgraded; Said source file content is carried out the renewal operation, after renewal finishes, construct said source file content corresponding file content regions again, and return said sectors of data to said terminal device.
Preferably, said virtual disk device also comprises: first tectonic element is used to construct the file allocation table FAT list area and the file entries meta-data region of said virtual disk;
Second tectonic element is used to construct the file content district of said virtual disk.
Embodiment of the invention technical scheme is through judging whether the corresponding source file content in terminal device visit sector needs to upgrade; If said source file content needs to upgrade; Again construct said source file content corresponding file content regions after then said source file content being carried out the renewal operation; And the data after will upgrading are back to terminal device, make the renewal operation of virtual disk transparent fully to the user, realize that the user plays the content of real-time update through virtual disk.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of virtual disk content update of the present invention method preferred embodiment;
Fig. 2 is the composition structural representation of a kind of virtual disk device of the present invention preferred embodiment;
Fig. 3 is the composition structural representation of a kind of terminal device preferred embodiment of the present invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
With reference to Fig. 1, show the schematic flow sheet of a kind of virtual disk content update of the present invention method preferred embodiment, comprise step:
Step S110, receiving terminal apparatus are to the access request of virtual disk sector.
In various embodiments of the present invention, said terminal device comprises equipment such as televisor, digital photo frame, DVD, notebook computer, music player, the present invention to this not one by one example go out.
Step S120, judge whether said sector is in the file content district of said virtual disk.
Virtual disk generally includes disk promoter region, file allocation table (file allocation table; FAT) ingredients such as list area, file entries data field, file content district, so terminal device might be in different ingredients to the access request of virtual disk sector.
If said sector is in non-file content district, then get into step S130, if said sector is in the file content district, then get into step S140.
Step S130, return the data of respective sectors.
Step S140, obtain the corresponding source file content in said sector, get into step S150.
Step S150, judge whether said source file content needs to upgrade.
If said source file content does not need to upgrade, then get into step S130, if said source file content needs to upgrade, then get into step S160.
Step S160, said source file content carried out upgrade operation.
Said source file content can be the various files that come from Internet, like music file, video file etc., also can be the various files that come from LAN or other approach.
Step S170, construct said source file content corresponding file content regions again, get into step S130.
After renewal finishes, construct said source file content corresponding file content regions again, after the file content district constructed again, the data of respective sectors were returned the data of respective sectors and are given said terminal device by real-time update.
In another embodiment of the present invention, can also comprise step before the said step S110:
The file allocation table FAT list area and the file entries meta-data region of step S180, the said virtual disk of structure.
Each ingredient of constructing virtual disk and constructing virtual disk can realize that through virtual disk technology the present invention no longer details this, can realize with reference to the introduction that has related data now.
The file content district of step S190, the said virtual disk of structure.
Wherein, said step S180 comprises:
Step S181, calculate the maximum file size of said source file content after renewal according to the file layout of source file content and the processing power of said terminal device.
The FAT list area of step S182, the said virtual disk of structure is the enough number of clusters of said source file content allocation in said FAT list area according to said maximum file size.
When structure FAT list area and file entries meta-data region; Possible maximum file size after calculating this document future content and upgrade according to the processing power of the file layout of current traversal and terminal device (televisor, DPF etc.) can not surpass this maximum length to guarantee following length after up-to-date.According to the maximum file size that calculates, distribute enough family's numbers in the FAT list area.
The file entries meta-data region of step S183, the said virtual disk of structure indicates that in said file entries meta-data region the length of said source file content is said maximum file size.
Indicate that in the file entries meta-data region this document length is said maximum length according to the maximum file size that calculates, rather than physical length.
Wherein, said step S190 is specially:
According to the file content district of the said virtual disk of source file composition of content, and in the head or the afterbody zero padding of said source file content, make the file size after the zero padding equal said maximum file size.
To source file composition of content file content district the time; Because the family's number that distributes in the FAT list area among the step S182 is more than the actual required family of file number; Therefore need be in top of file or afterbody zero padding, make file size after the zero padding equal the maximum file size that calculates among the step S181.
In another embodiment of the present invention, also comprise before the said step S170:
Whether the file layout that the said source file content after finishing is upgraded in step S171, judgement is by said terminal device support.
If the file layout of upgrading the said source file content after finishing is then got into said step S170 by said terminal device support, if the file layout of upgrading the said source file content after finishing then gets into step S172 not by said terminal device support.
The file layout of step S172, the said source file content after renewal finished converts the file layout that said terminal device is supported into.
In another embodiment of the present invention, also comprise before the said step S170:
Whether the file size that the said source file content after finishing is upgraded in step S173, judgement is greater than said maximum file size.
Be not more than said maximum file size if upgrade the file size of the said source file content after finishing; Then get into said step S170; And when constructing the file content district again in the head or the afterbody zero padding of file, make the file size after the zero padding equal said maximum file size.
If the file size that upgrades the said source file content after finishing then gets into step S174 greater than said maximum file size.
The file size of step S174, the said source file content after renewal finished is compressed to said maximum file size.
Need to prove that technical scheme according to the invention is not only applicable to the virtual disk technology of FAT form, can also be applicable to other form, the present invention does not limit this.
Embodiment of the invention technical scheme is through judging whether the corresponding source file content in terminal device visit sector needs to upgrade; If said source file content needs to upgrade; Again construct said source file content corresponding file content regions after then said source file content being carried out the renewal operation; And the data after will upgrading are back to terminal device, make the renewal operation of virtual disk transparent fully to the user, realize that the user plays the content of real-time update through virtual disk.
With reference to Fig. 2, show the composition structural representation of a kind of virtual disk device of the present invention preferred embodiment.Said virtual disk device 200 comprises:
First judging unit 210 is used for when receiving terminal device to the access request of virtual disk sector, judging whether said sector is in the file content district of said virtual disk.
Acquiring unit 220 is used for when said first judging unit 210 judges that said sector is in the file content district of said virtual disk, obtaining the corresponding source file content in said sector.
Second judging unit 230 is used to judge whether said source file content needs to upgrade.
Processing unit 240; Be used for when said second judging unit 230 judges that said source file content need be upgraded; Said source file content is carried out the renewal operation; After renewal finishes, construct said source file content corresponding file content regions again, and return said sectors of data to said terminal device.
In another embodiment of the present invention, said virtual disk device 200 also comprises:
First tectonic element is used to construct the file allocation table FAT list area and the file entries meta-data region of said virtual disk.
Second tectonic element is used to construct the file content district of said virtual disk.
Wherein, said first tectonic element comprises:
Computation subunit is used for calculating the maximum file size of said source file content after renewal according to the file layout of source file content and the processing power of said terminal device.
The 3rd constructor unit is used to construct the FAT list area of said virtual disk, is the enough number of clusters of said source file content allocation in said FAT list area according to said maximum file size.
The 4th constructor unit is used to construct the file entries meta-data region of said virtual disk, indicates that in said file entries meta-data region the length of said source file content is said maximum file size.
Wherein, said second tectonic element comprises:
The 5th constructor unit is used for the file content district according to the said virtual disk of source file composition of content, and in the head or the afterbody zero padding of said source file content, makes the file size after the zero padding equal said maximum file size.
In another embodiment of the present invention, said virtual disk device 200 also comprises:
The 3rd judging unit is used to judge that whether the file layout of upgrading the said source file content after finishing is by said terminal device support.
Converting unit; Be used for when the file layout that said the 3rd judgment unit judges is upgraded the said source file content after finishing is not supported by said terminal device, the file layout of the said source file content after renewal is finished converts the file layout that said terminal device is supported into.
In another embodiment of the present invention, said virtual disk device 200 also comprises:
The 4th judging unit is used to judge that whether the file size that upgrades the said source file content after finishing is greater than said maximum file size.
Compression unit, the file size that is used for upgrading the said source file content after finishing when said the 4th judgment unit judges be during greater than said maximum file size, and the file size of the said source file content after renewal is finished is compressed to said maximum file size.
The course of work of said virtual disk device 200 each ingredient of various embodiments of the present invention and principle of work are described in detail in method embodiment part, repeat no more at this, and the description of reference method embodiment relevant portion gets final product.
Embodiment of the invention technical scheme is through judging whether the corresponding source file content in terminal device visit sector needs to upgrade; If said source file content needs to upgrade; Again construct said source file content corresponding file content regions after then said source file content being carried out the renewal operation; And the data after will upgrading are back to terminal device, make the renewal operation of virtual disk transparent fully to the user, realize that the user plays the content of real-time update through virtual disk.
With reference to Fig. 3, show the composition structural representation of a kind of terminal device preferred embodiment of the present invention.Said terminal device 300 is used for accesses virtual disk set 200 and the data that said virtual disk device 200 returns is play, and said virtual disk device 200 comprises:
First judging unit 210 is used for when receiving the access request of 300 pairs of virtual disk sectors of terminal device, judges whether said sector is in the file content district of said virtual disk.
Acquiring unit 220 is used for when said first judging unit 210 judges that said sector is in the file content district of said virtual disk, obtaining the corresponding source file content in said sector.
Second judging unit 230 is used to judge whether said source file content needs to upgrade.
Processing unit 240; Be used for when said second judging unit 230 judges that said source file content need be upgraded; Said source file content is carried out the renewal operation; After renewal finishes, construct said source file content corresponding file content regions again, and return said sectors of data to said terminal device 300.
Said terminal device 300 comprises:
Transmitting element 310 is used to send the access request to the virtual disk sector.
Receiving element 320 is used to receive the data that said virtual disk sector is returned.
Broadcast unit 330 is used to play the data that said virtual disk sector is returned.
After the data that 330 pairs of said virtual disks of said broadcast unit sector is returned are handled, play, broadcast according to the invention should be carried out the understanding of broad sense, comprises the broadcast to video, audio file, also comprises the actions such as demonstration to documentation, webpage.
Terminal device 300 according to the invention comprises equipment such as televisor, digital photo frame, DVD, notebook computer, music player, the present invention to this not one by one example go out.
The invention also discloses a kind of terminal system, said terminal system comprises terminal device 300 and virtual disk device 200, and said terminal device 300 comprises:
Transmitting element 310 is used to send the access request to said virtual disk sector.
Receiving element 320 is used to receive the data that said virtual disk sector is returned.
Broadcast unit 330 is used to play the data that said virtual disk sector is returned.
Said virtual disk device 200 comprises:
First judging unit 210 is used for when receiving the access request of 300 pairs of virtual disk sectors of terminal device, judges whether said sector is in the file content district of said virtual disk.
Acquiring unit 220 is used for when said first judging unit 210 judges that said sector is in the file content district of said virtual disk, obtaining the corresponding source file content in said sector.
Second judging unit 230 is used to judge whether said source file content needs to upgrade.
Processing unit 240; Be used for when said second judging unit 230 judges that said source file content need be upgraded; Said source file content is carried out the renewal operation; After renewal finishes, construct said source file content corresponding file content regions again, and return said sectors of data to said terminal device 300.
In another embodiment of the present invention, said virtual disk device 200 also comprises:
First tectonic element is used to construct the file allocation table FAT list area and the file entries meta-data region of said virtual disk.
Second tectonic element is used to construct the file content district of said virtual disk.
Wherein, said first tectonic element comprises:
Computation subunit is used for calculating the maximum file size of said source file content after renewal according to the file layout of source file content and the processing power of said terminal device 300.
The 3rd constructor unit is used to construct the FAT list area of said virtual disk, is the enough number of clusters of said source file content allocation in said FAT list area according to said maximum file size.
The 4th constructor unit is used to construct the file entries meta-data region of said virtual disk, indicates that in said file entries meta-data region the length of said source file content is said maximum file size.
Wherein, said second tectonic element comprises:
The 5th constructor unit is used for the file content district according to the said virtual disk of source file composition of content, and in the head or the afterbody zero padding of said source file content, makes the file size after the zero padding equal said maximum file size.
In another embodiment of the present invention, said virtual disk device 200 also comprises:
The 3rd judging unit is used to judge whether the file layout of upgrading the said source file content after finishing is supported by said terminal device 300.
Converting unit; Be used for when the file layout that said the 3rd judgment unit judges is upgraded the said source file content after finishing is not supported by said terminal device 300, the file layout of the said source file content after renewal is finished converts the file layout that said terminal device 300 is supported into.
In another embodiment of the present invention, said virtual disk device 200 also comprises:
The 4th judging unit is used to judge that whether the file size that upgrades the said source file content after finishing is greater than said maximum file size.
Compression unit, the file size that is used for upgrading the said source file content after finishing when said the 4th judgment unit judges be during greater than said maximum file size, and the file size of the said source file content after renewal is finished is compressed to said maximum file size.
The course of work of said virtual disk device 200 each ingredient of various embodiments of the present invention and principle of work are described in detail in method embodiment part, repeat no more at this, and the description of reference method embodiment relevant portion gets final product.
Embodiment of the invention technical scheme is through judging whether the corresponding source file content in terminal device visit sector needs to upgrade; If said source file content needs to upgrade; Again construct said source file content corresponding file content regions after then said source file content being carried out the renewal operation; And the data after will upgrading are back to terminal device, make the renewal operation of virtual disk transparent fully to the user, realize that the user plays the content of real-time update through virtual disk.
Need saying of explanation, for accompanying drawing describe clear, in the various embodiments of the present invention, have part steps or ingredient in each accompanying drawing signal come out.
One of ordinary skill in the art will appreciate that; Realize that all or part of step in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium, and this program comprises the step like above-mentioned method embodiment when carrying out; Described storage medium; As: magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.In each method embodiment of the present invention; The sequence number of said each step can not be used to limit the sequencing of each step; For those of ordinary skills, under the prerequisite of not paying creative work property, the priority of each step is changed also within protection scope of the present invention.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (15)

1. a virtual disk content update method is characterized in that, comprising:
When receiving terminal device, judge whether said sector is in the file content district of said virtual disk to the access request of virtual disk sector;
If said sector is in the file content district of said virtual disk, then obtain the corresponding source file content in said sector;
Judge whether said source file content needs to upgrade;
If said source file content needs to upgrade, then said source file content is carried out and upgraded operation, after renewal finishes, construct said source file content corresponding file content regions again, and return said sectors of data to said terminal device.
2. virtual disk content update method according to claim 1 is characterized in that, said judge before whether said sector is in the file content district step of said virtual disk also comprise:
Construct the file allocation table FAT list area and the file entries meta-data region of said virtual disk;
Construct the file content district of said virtual disk.
3. virtual disk content update method according to claim 2 is characterized in that, the FAT list area of the said virtual disk of said structure and file entries meta-data region step are specially:
Calculate the maximum file size of said source file content after renewal according to the file layout of source file content and the processing power of said terminal device;
Constructing the FAT list area of said virtual disk, is the enough number of clusters of said source file content allocation in said FAT list area according to said maximum file size;
Construct the file entries meta-data region of said virtual disk, indicate that in said file entries meta-data region the length of said source file content is said maximum file size.
4. virtual disk content update method according to claim 3 is characterized in that, the file content district step of the said virtual disk of said structure is specially:
According to the file content district of the said virtual disk of source file composition of content, and in the head or the afterbody zero padding of said source file content, make the file size after the zero padding equal said maximum file size.
5. according to each described virtual disk content update method of claim 1 to 4, it is characterized in that, saidly also comprise before after renewal finishes, constructing said source file content corresponding file content regions step again:
Judge that whether the file layout of upgrading the said source file content after finishing is by said terminal device support;
If the file layout of upgrading the said source file content after finishing is not by said terminal device support, the file layout of the said source file content after then renewal being finished converts the file layout that said terminal device is supported into.
6. virtual disk content update method according to claim 5 is characterized in that, saidly also comprises before after renewal finishes, constructing said source file content corresponding file content regions step again:
Judge that whether the file size that upgrades the said source file content after finishing is greater than said maximum file size;
If the file size that upgrades the said source file content after finishing is greater than said maximum file size, the file size of the said source file content after then renewal being finished is compressed to said maximum file size.
7. a virtual disk device is characterized in that, comprising:
First judging unit is used for when receiving terminal device to the access request of virtual disk sector, judging whether said sector is in the file content district of said virtual disk;
Acquiring unit is used for when the said sector of said first judgment unit judges is in the file content district of said virtual disk, obtains the corresponding source file content in said sector;
Second judging unit is used to judge whether said source file content needs to upgrade;
Processing unit; The said source file content of said second judgment unit judges is used for when need be upgraded; Said source file content is carried out the renewal operation, after renewal finishes, construct said source file content corresponding file content regions again, and return said sectors of data to said terminal device.
8. virtual disk device according to claim 7 is characterized in that, also comprises:
First tectonic element is used to construct the file allocation table FAT list area and the file entries meta-data region of said virtual disk;
Second tectonic element is used to construct the file content district of said virtual disk.
9. virtual disk device according to claim 8 is characterized in that, said first tectonic element comprises:
Computation subunit is used for calculating the maximum file size of said source file content after renewal according to the file layout of source file content and the processing power of said terminal device;
The 3rd constructor unit is used to construct the FAT list area of said virtual disk, is the enough number of clusters of said source file content allocation in said FAT list area according to said maximum file size;
The 4th constructor unit is used to construct the file entries meta-data region of said virtual disk, indicates that in said file entries meta-data region the length of said source file content is said maximum file size.
10. virtual disk device according to claim 9 is characterized in that, said second tectonic element comprises:
The 5th constructor unit is used for the file content district according to the said virtual disk of source file composition of content, and in the head or the afterbody zero padding of said source file content, makes the file size after the zero padding equal said maximum file size.
11. according to each described virtual disk device of claim 7 to 10, it is characterized in that, also comprise:
The 3rd judging unit is used to judge that whether the file layout of upgrading the said source file content after finishing is by said terminal device support;
Converting unit; Be used for when the file layout that said the 3rd judgment unit judges is upgraded the said source file content after finishing is not supported by said terminal device, the file layout of the said source file content after renewal is finished converts the file layout that said terminal device is supported into.
12. virtual disk device according to claim 11 is characterized in that, also comprises:
The 4th judging unit is used to judge that whether the file size that upgrades the said source file content after finishing is greater than said maximum file size;
Compression unit, the file size that is used for upgrading the said source file content after finishing when said the 4th judgment unit judges be during greater than said maximum file size, and the file size of the said source file content after renewal is finished is compressed to said maximum file size.
13. a terminal device is characterized in that, is used for the accesses virtual disk set and the data that said virtual disk device returns are play, said virtual disk device comprises:
First judging unit is used for when receiving terminal device to the access request of virtual disk sector, judging whether said sector is in the file content district of said virtual disk;
Acquiring unit is used for when the said sector of said first judgment unit judges is in the file content district of said virtual disk, obtains the corresponding source file content in said sector;
Second judging unit is used to judge whether said source file content needs to upgrade;
Processing unit; The said source file content of said second judgment unit judges is used for when need be upgraded; Said source file content is carried out the renewal operation, after renewal finishes, construct said source file content corresponding file content regions again, and return said sectors of data to said terminal device;
Said terminal device comprises:
Transmitting element is used to send the access request to said virtual disk sector;
Receiving element is used to receive the data that said virtual disk sector is returned;
Broadcast unit is used to play the data that said virtual disk sector is returned.
14. a terminal system is characterized in that, comprises terminal device and virtual disk device, said terminal device comprises:
Transmitting element is used to send the access request to the virtual disk sector;
Receiving element is used to receive the data that said virtual disk sector is returned;
Broadcast unit is used to play the data that said virtual disk sector is returned;
Said virtual disk device comprises:
First judging unit is used for when receiving said terminal device to the access request of said virtual disk sector, judging whether said sector is in the file content district of said virtual disk;
Acquiring unit is used for when the said sector of said first judgment unit judges is in the file content district of said virtual disk, obtains the corresponding source file content in said sector;
Second judging unit is used to judge whether said source file content needs to upgrade;
Processing unit; The said source file content of said second judgment unit judges is used for when need be upgraded; Said source file content is carried out the renewal operation, after renewal finishes, construct said source file content corresponding file content regions again, and return said sectors of data to said terminal device.
15. terminal system according to claim 14 is characterized in that, said virtual disk device also comprises: first tectonic element is used to construct the file allocation table FAT list area and the file entries meta-data region of said virtual disk;
Second tectonic element is used to construct the file content district of said virtual disk.
CN200910244188.3A 2009-12-30 2009-12-30 Virtual disk content updating method and virtual disk device as well as terminal equipment and system Active CN102486773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910244188.3A CN102486773B (en) 2009-12-30 2009-12-30 Virtual disk content updating method and virtual disk device as well as terminal equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910244188.3A CN102486773B (en) 2009-12-30 2009-12-30 Virtual disk content updating method and virtual disk device as well as terminal equipment and system

Publications (2)

Publication Number Publication Date
CN102486773A true CN102486773A (en) 2012-06-06
CN102486773B CN102486773B (en) 2014-02-12

Family

ID=46152266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910244188.3A Active CN102486773B (en) 2009-12-30 2009-12-30 Virtual disk content updating method and virtual disk device as well as terminal equipment and system

Country Status (1)

Country Link
CN (1) CN102486773B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766385A (en) * 2016-08-22 2018-03-06 阿里巴巴集团控股有限公司 A kind of method and apparatus for changing virtual disk files form

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206660A (en) * 2007-12-05 2008-06-25 深圳市同洲电子股份有限公司 File organization method
CN101493756A (en) * 2009-03-11 2009-07-29 威盛电子股份有限公司 Data writing-in method and apparatus
US20090235256A1 (en) * 2008-03-17 2009-09-17 Inventec Corporation System architecture for implementing virtual disk service equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206660A (en) * 2007-12-05 2008-06-25 深圳市同洲电子股份有限公司 File organization method
US20090235256A1 (en) * 2008-03-17 2009-09-17 Inventec Corporation System architecture for implementing virtual disk service equipment
CN101493756A (en) * 2009-03-11 2009-07-29 威盛电子股份有限公司 Data writing-in method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766385A (en) * 2016-08-22 2018-03-06 阿里巴巴集团控股有限公司 A kind of method and apparatus for changing virtual disk files form
CN107766385B (en) * 2016-08-22 2021-09-03 阿里巴巴集团控股有限公司 Method and equipment for converting file format of virtual disk

Also Published As

Publication number Publication date
CN102486773B (en) 2014-02-12

Similar Documents

Publication Publication Date Title
CN102782665B (en) In data storage device place combination user content and supplemental content
CN101390050A (en) Apparatus and method for selectively dispensing soft assets via subtractive installation
US20130132509A1 (en) System And Method For Optimizing Transfers Of Downloadable Content
CN101689285A (en) Container reputation
CN102656550A (en) Storage device and method for using a virtual file in a public memory area to access a plurality of protected files in a private memory area
CN110084629A (en) System and method for promotional media in online distribution platform
CN100412843C (en) Extendable disc player
TW200910114A (en) Gathering statistics based on container exchange
CN102596341A (en) Information processing device
US20080098034A1 (en) Method Of Updating Content Of A Portable Device
CN101241530A (en) Method for preventing illegal copy and hardware storage device
CN103412860B (en) Method and device for extending database and database system
CA2757915A1 (en) Enabling digital media content to be downloaded to and used on multiple types of computing device
JP6410573B2 (en) Electronic book sharing server, electronic book sharing method, and program for electronic book sharing server
CN102486773B (en) Virtual disk content updating method and virtual disk device as well as terminal equipment and system
Sébastien et al. Local image-based lighting with parallax-corrected cubemaps
KR101683551B1 (en) Method for Managing Media Content File Using NFC Card, Managing Server Used Thererin, and Media Being Recorded with Program Executing the Method
JP5081301B2 (en) Web page container dialogue
CN103455934A (en) Information processing apparatus, wireless communication apparatus, information processing system, and information processing method
US20120054038A1 (en) Method for distributing advertisement-subsidized digital media content over the internet
CN106020894A (en) Method for controlling electronic device and electronic device
Goto et al. THE CURRENT STATE OF E-BOOKS AND DIGITAL LIBRARIES OF JAPAN.
US20100169552A1 (en) removalble multimedia memory card and method of use
TW200917069A (en) Portable synchronizable data container
CN103079091B (en) Streaming Media method for previewing and device

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