Summary of the invention
Therefore, an object of the present invention is that a kind of high in the clouds file access method is being provided, and for high in the clouds file access system, comprises: receive file update requirement from remote-control device; From the more specific file of new demand of redaction region of data storage acquisition respective file; Copy specific file to produce new file; Calculate identification filename, so that specific file is stored in legacy data storage area with identification filename; And make new file be stored in redaction region of data storage with the raw filename of specific file.
According to one embodiment of the invention, high in the clouds file access method also comprises according to file update requirement edits new file.
According to another embodiment of the present invention, wherein specific file also comprises two identifying informations, is to produce in the time that source document corresponding to specific file set up, and copies specific file and also comprises and copy two identifying informations in new file to produce the step of new file.Wherein two identifying informations produce according to the extended file attributes (extended file attribute) of source document respectively.Wherein extended file attributes is the Hash Value of include file path, final updating time, file size or its permutation and combination.
According to further embodiment of this invention, wherein file update requires by common network internet file system (common internet file system; CIFS) interface, web browser interface or synchronization applications interface receive.
According to yet another embodiment of the invention, whether the number that high in the clouds file access method also comprises at least one legacy version file that judges the specific file of the stored correspondence in legacy data storage area is greater than maximum version number, with in the time that the number of legacy version file is greater than latest edition given figure, remove legacy version file from legacy data storage area.
An embodiment who also has according to the present invention, whether the storage time that high in the clouds file access method also comprises at least one legacy version file that judges the specific file of the stored correspondence in legacy data storage area is greater than Preset Time, with in the time that the storage time of legacy version file is greater than Preset Time, remove legacy version file from legacy data storage area.
Another object of the present invention is that a kind of high in the clouds file access system is being provided, and comprises: multiple interface instruction receiver modules, storage module and file update require processing module.Interface instruction receiver module is in order to receive file update requirement from remote-control device.Storage module comprises redaction region of data storage and legacy data storage area.File update requires processing module in order to require according to file update from the more specific file of new demand of redaction region of data storage acquisition respective file, produce new file to copy specific file, further calculate identification filename, so that specific file is stored in legacy data storage area and makes new file be stored in redaction region of data storage with the raw filename of specific file with identification filename.
In one embodiment of the invention, high in the clouds file access system also comprises Account Data storehouse and rights database, and so that remote-control device is carried out to proving program, file update requires processing module to require according to file update and proving program carries out access to storage module.
According to another embodiment of the present invention, wherein file update requires processing module to require new file to edit according to file update.
According to further embodiment of this invention, wherein specific file also comprises two identifying informations, is to produce in the time that source document corresponding to specific file set up, and two identifying informations that file update requirement processing module further copies specific file are in new file.Wherein two identifying informations produce according to the extended file attributes of source document respectively.Wherein extended file attributes is the Hash Value of include file path, final updating time, file size or its permutation and combination.
According to yet another embodiment of the invention, wherein interface instruction receiver module comprises common network internet file system interface module, web browser interface module or synchronization applications interface module.
An embodiment who also has according to the present invention, file update requires processing module further to judge whether the number of at least one legacy version file of the specific file of the stored correspondence in legacy data storage area is greater than maximum version number, with in the time that the number of legacy version file is greater than latest edition given figure, remove legacy version file from legacy data storage area.
An embodiment who has again according to the present invention, file update requires processing module further to judge whether the storage time of at least one legacy version file of the specific file of the stored correspondence in legacy data storage area is greater than Preset Time, with in the time that the storage time of legacy version file is greater than Preset Time, remove legacy version file from legacy data storage area.
According to one embodiment of the invention, wherein redaction region of data storage is specific user's region of data storage, and legacy data storage area is edition data storehouse.
Apply advantage of the present invention and be and be when carrying out file update, replicating original file produces new file and source document is moved to legacy data storage area and stores, not only can preserve each version existing according to amendment record, more can avoid owing in partial document access interface, file locking being made to other interfaces shortcoming to its editor simultaneously.And the present invention also integrates the file access interface of two kinds of different qualities, and produces the advantage that it independently cannot produce separately, and reaches easily above-mentioned object.
Accompanying drawing explanation
For above and other object of the present invention, feature, advantage and embodiment can be become apparent, appended the description of the drawings is as follows:
Fig. 1 is in one embodiment of the invention, a kind of schematic diagram of cloud network framework;
Fig. 2 is in one embodiment of the invention, the calcspar of high in the clouds file access system;
Fig. 3 is in one embodiment of the invention, is positioned at the Organization Chart of the file system of redaction region of data storage and legacy data storage area;
Fig. 4 is in one embodiment of the invention, and legacy data storage area is in order to distinguish the form of file and version; And
Fig. 5 is in one embodiment of the invention, the process flow diagram of high in the clouds file access method.
[main element symbol description]
1: cloud network framework 10: high in the clouds file access system
12: host computer 14: panel computer
16: smart mobile phone 200: Account Data storehouse
201: file update requires 202: rights database
204: interface instruction receiver module 204a: common network internet file system interface module
204b: web browser interface module 204c: synchronization applications interface module
206: storage module 206a: redaction region of data storage
206b: legacy data storage area 208: file set up/reading/erasure request processing module
210: file update requires processing module 300: root directory file
302: user's data folder 304: legacy data file
306,306 ': user A file 308,308 ': user B file
500: high in the clouds file access method 501-506: step
Embodiment
Please refer to Fig. 1.Fig. 1 is in one embodiment of the invention, a kind of schematic diagram of cloud network framework 1.Several remote-control devices that cloud network framework 1 can comprise high in the clouds file access system 10 and can carry out to file access system 10 access, the host computer 12 illustrating such as but not limited to Fig. 1, panel computer 14 and smart mobile phone 16.
Remote-control device can carry out access to the file in high in the clouds file access system 10 by different file access interfaces.For instance, there is the device of web page browsing interface, host computer 12 described above, panel computer 14 and smart mobile phone 16, the mode that can login with webpage by web page browsing interface is carried out access to the file in high in the clouds file access system 10.There is the device of synchronization applications interface, host computer 12 described above, panel computer 14 and smart mobile phone 16, can carry out access to the file in high in the clouds file access system 10 by the synchronization applications of installing, and carrying out after any editor action immediately and file synchronization in high in the clouds file access system 10.
Common network internet file system (common internet file system; CIFS) machine that interface can make to be positioned on same network is able to the resources such as shared file, periphery machine (as printer), serial connection port.This interface is common in host computer 12, but file is write fashionable by this interface, to not allow other access actions that this file is carried out, and will directly cover original file after file upgrades, and make user cannot do between version relatively or revise.
Please refer to Fig. 2.Fig. 2 is the calcspar of high in the clouds file access system 10.High in the clouds file access system 10 comprises: Account Data storehouse 200, rights database 202, interface instruction receiver module 204, storage module 206, file set up/reading/erasure request processing module 208 and file update requirement processing module 210.
Account Data storehouse 200 and rights database 202 can be carried out proving program to the remote-control device of logining (host computer 12, panel computer 14 and the smart mobile phone 16 that illustrate as Fig. 1).By proving program, high in the clouds file access system 10 can learn remote-control device user's account number in order to login, and this user's account number authority that each file is had.
Interface instruction receiver module 204 is in order to receive file update requirement 201 and other requirement from remote-control device, such as but not limited to file set up requirement, file reading requirement and file erasure request.In the present embodiment, corresponding to aforesaid three file access interfaces, interface instruction receiver module can comprise common network internet file system interface module 204a, web browser interface module 204b and synchronization applications interface module 204c.In other embodiment, high in the clouds file access system 10 also can comprise the module to other types file access interface.
Storage module 206 comprises redaction region of data storage 206a and legacy data storage area 206b.In the present embodiment, redaction region of data storage 206a can be user's region of data storage of corresponding specific user's account number, and legacy data storage area 206b is an edition data storehouse.
File set up/reading/erasure request processing module 208, in order to aforesaid file set up requirement, file reading requirement and file erasure request are processed, reads or deletes in storage module 206 or from file corresponding to the interior acquisition of storage module 206 to set up file.File update requires 210 of processing modules to require the file of 201 pairs of storage modules 206 modify or edit according to file update.In an embodiment, file update requires processing module 210 to be actually the file update receiving according to interface instruction receiver module 204 and requires 201, and the result of Account Data storehouse 200 and rights database 202 is modified or edits the file of specific user in storage module 206.
File update requires processing module 210 to require the program that the file of 201 pairs of storage modules 206 is processed that the paragraph in following is described in detail according to file update.
Please refer to Fig. 3.Fig. 3 is in one embodiment of the invention, is positioned at the Organization Chart of the file system 3 of redaction region of data storage 206a and legacy data storage area 206b.Wherein, root directory file 300 times, " user's data " file 302 of corresponding redaction region of data storage 206a and " legacy data " file 304 of corresponding legacy data storage area 206b will be there is.In user's data folder 302, there is user A file 306 and the user B file 308 of the corresponding user A of difference and user B, and in legacy data file 304, also there is user A file 306 ' and the user B file 308 ' of the corresponding user A of difference and user B.
File update requires processing module 210 receiving after file update requirement 201, will in the user's data folder 302 corresponding to redaction region of data storage 206a, capture the more specific file of new demand 201 of respective file.In the present embodiment, file update requires processing module 210 to require and aforesaid proving program according to file update, and the specific file in acquisition user A file 306 is to illustrate the file with raw filename File.txt in Fig. 3.
File update requires processing module 210 further to copy this specific file to produce new file.Wherein, this new file will directly be stored in user A file 306 with this raw filename File.txt, replace original file.File update requires processing module 210 that the flesh and blood that requires 201 according to file update is revised and editor this new file.Therefore, although the user of remote-control device being seen be still File.txt, the file of in fact being edited is the duplicate of this specific file.
File update requirement processing module 210 is further calculated identification filename, is moved to the user A file 306 ' storage corresponding to legacy data storage area 206b by the user A file 306 corresponding to redaction region of data storage 206a so that specific file is originally identified filename with this.In different embodiment, this identification filename can be calculated and be produced by different information.For instance, via calculating, the filename of first legacy version file of corresponding this specific file can be 69d1153527724f8ae10542e..., and the filename of second Geju City version file of corresponding this specific file can be f4de7fcd07c14a00ff96c5f9....Therefore, the identification filename producing by calculating, can make the filename of the file in legacy data storage area 206b be unlikely to repetition.
In an embodiment, file update requires processing module 210 more to move to the user A file 306 ' corresponding to legacy data storage area 206b at specific file, whether the number that judges the legacy version file of the specific file of the stored correspondence of legacy data storage area 206b is greater than maximum version number, with in the time that the number of legacy version file is greater than latest edition given figure, from remove legacy version file corresponding to the user A file 306 ' of legacy data storage area 206b.In another embodiment, file update requires processing module 210 more to judge whether the storage time of the stored legacy version file of legacy data storage area 206b is greater than Preset Time, with in the time that the storage time of legacy version file is greater than Preset Time, from legacy data storage area, 206b removes legacy version file.
Should be noted, in an embodiment, specific file also can comprise at least two identifying informations.Identifying information is to produce in the time that specific file prototype version is the earliest set up.In the time that file update requires processing module 210 to carry out copying of specific file, also identifying information is replicated in new file.In the present embodiment, identifying information can produce through different account forms according to the extended file attributes of source document.Wherein, the information of this extended file attributes can be the Hash Value comprising such as but not limited to file path, final updating time, file size or its permutation and combination of this file.
By above-mentioned identifying information, in legacy data storage area 206b, stored file can utilize identifying information to distinguish this file, and utilize aforesaid identification shelves not distinguish version, with obscuring of avoiding that between different file, version too much causes, in the time wanting access legacy version file, can more promptly find corresponding file and version in the future.Should be noted, in other embodiment, also can adopt plural identifying information, to reach higher resolution.
Please refer to Fig. 4.Fig. 4 is in one embodiment of the invention, and legacy data storage area 206b is in order to distinguish the form of file and version.In form, can comprise identifying information, identification filename, file size, update time, the start context of each legacy version file and upgrade source.Should be noted, take the form of Fig. 4 as example, front two row are corresponding is same file, although and its identifying information 1 of last column is identical with front two row, because identifying information 2 is not identical, therefore correspond to another file different from front two row.
Therefore, the present invention is when carrying out file update, replicating original file produces new file and source document is moved to legacy data storage area and stores, not only can preserve each version existing according to amendment record, more can avoid owing in partial document access interface, file locking being made to other interfaces shortcoming to its editor simultaneously.And the present invention also integrates the file access interface of two kinds of different qualities, and produce the advantage that it independently cannot produce separately.
Please refer to Fig. 5.Fig. 5 is in one embodiment of the invention, the process flow diagram of high in the clouds file access method 500.High in the clouds file access method 500 can be applicable to high in the clouds file access system 10 as Figure 2 illustrates.This high in the clouds file access method 500 can implementation be a computer program, and is stored in a computer-readable medium storing, and carries out instant place recommend method after making computing machine read this recording medium.Computer-readable medium storing can be ROM, fast flash memory bank, floppy disk, hard disk, CD, portable disk, tape, can be by the database of network access or be familiar with this skill person and can think easily and have the computer-readable medium storing of identical function.High in the clouds file access method 500 comprises the following step (should be appreciated that, mentioned step in the present embodiment, except chatting especially bright its order person, all can adjust its front and back order according to actual needs, even can carry out simultaneously or partly simultaneously).
In step 501, interface instruction receiver module 204 receives file update from remote-control device and requires 201.
In step 502, file update requires processing module 210 from the more specific file (File.txt) of new demand 201 of redaction region of data storage 206a acquisition respective file.
In step 503, file update requires processing module 210 to copy specific file to produce new file.
In step 504, file update requires processing module 210 to calculate identification filename, so that specific file is stored in legacy data storage area 206b with identification filename.
In step 505, file update requires processing module 210 to make new file be stored in redaction region of data storage 206a with the raw filename (File.txt) of specific file.
In step 506, file update requires processing module 210 to require 201 pairs of new files to edit according to file update.
Although the present invention discloses as above with embodiment; so it is not in order to limit the present invention; anyly be familiar with this skill person; without departing from the spirit and scope of the present invention; when being used for a variety of modifications and variations, the scope that therefore protection scope of the present invention ought define depending on appending claims is as the criterion.