CN103870544A - Method and device for virtually operating file, and electronic equipment - Google Patents

Method and device for virtually operating file, and electronic equipment Download PDF

Info

Publication number
CN103870544A
CN103870544A CN201410064152.8A CN201410064152A CN103870544A CN 103870544 A CN103870544 A CN 103870544A CN 201410064152 A CN201410064152 A CN 201410064152A CN 103870544 A CN103870544 A CN 103870544A
Authority
CN
China
Prior art keywords
destination
file
source object
address
source
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
CN201410064152.8A
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410064152.8A priority Critical patent/CN103870544A/en
Publication of CN103870544A publication Critical patent/CN103870544A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/184Distributed file systems implemented as replicated file system
    • G06F16/1844Management specifically adapted to replicated file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/188Virtual file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method and a device for virtually operating a file, and electronic equipment. The method comprises the following steps of acquiring an operation request, wherein the operation request at least comprises a source address and a target address of a source object; creating a target object at the target address, and enabling the target object to point to a physical index the same as that of the source object. According to the method, an occupied memory space is not greatly changed after the file is copied, the copying process is only a process of creating the target object and the physical index corresponding to the target object, and the operation time is short, so that burden on a processor and a memory is avoided.

Description

Method, device and the electronic equipment of pseudo operation file
Technical field
The disclosure relates to network equipment technical field, relates in particular to a kind of method, device and electronic equipment of pseudo operation file.
Background technology
Intelligent router refers to the router with intelligentized management function, than ordinary router, it is as PC, there is independently operating system, can various application be installed voluntarily, control bandwidth voluntarily, be controlled at informant's number voluntarily, control browsing page and control voluntarily line duration voluntarily by user, also have powerful USB sharing functionality simultaneously, really accomplish the intelligent management of the network equipment.
In intelligent router, conventionally all can be provided with memory device, for example: hard disk or flash memory etc., for facilitating user to carry out the storage and management of file.In the time carrying out file copy in the memory device in router, correlation technique is directly two parts by file complete copy conventionally, and copy the size of rear two parts of files, the base attribute such as take up room is all identical.This file copy mode, takies storage space after can causing copying on the one hand and is doubled and redoubled, and for the router of limited storage space, has reduced the utilization factor of memory device; The whole file of complete copy on the other hand, reproduction speed is slow, reproduction process is required a great deal of time, especially for those CPU and the limited router of internal memory, large batch of file copy can take a large amount of cpu resources and memory source, the serious router that even can cause cannot be realized the basic function of self, for example: file is downloaded, fast disk is synchronous, file-sharing and transmission of video etc.
Summary of the invention
The disclosure provides a kind of method, device and electronic equipment of pseudo operation file, to solve the problem that in existing route device, file copy exists.
According to the first aspect of disclosure embodiment, a kind of method of pseudo operation file is provided, comprising:
Obtain operation requests, in described operation requests, at least comprise: the source address of source object and destination address; Create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
In conjunction with first aspect, in the possible implementation of the first of first aspect, described method also comprises:
Whether the source address and the destination address that judge described source object are positioned at same partition holding;
In the time that the source address of described source object and destination address are positioned at same partition holding, create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
In conjunction with the possible implementation of first aspect the first, in the possible implementation of the second of first aspect, describedly judge that whether the source address of described source object and destination address are positioned at same partition holding, comprising:
Obtain source address and the destination address subregion mark of place partition holding respectively of described source object; Whether corresponding subregion mark and subregion corresponding to destination address of source address that judges described source object identifies identical; When subregion mark corresponding to the source address of described source object and subregion corresponding to destination address identify when identical, determine that the source address of described source object and destination address are positioned at same partition holding.
In conjunction with first aspect, implementation or the possible implementation of first aspect the second that first aspect the first is possible, in the third possible implementation of first aspect, described at described destination address establishment destination object, and make described destination object point to the physics index identical with described source object, comprising:
Obtain the file type of described source object; Whether the file type that judges described source object is ordinary file type; In the time that the file type of described source object is ordinary file type, create file destination mark in described destination address; Set up the points relationship between described file destination mark and the physics index of described source object.
In conjunction with first aspect, implementation or the possible implementation of first aspect the second that first aspect the first is possible, in the 4th kind of possible implementation of first aspect, described at described destination address establishment destination object, and make described destination object point to the physics index identical with described source object, comprising:
Obtain the file type of described source object; Whether the file type that judges described source object is folder type; In the time that the file type of described source object is folder type, create destination folder in described destination address; Obtain the source file in described source object corresponding folder; In described destination folder, create the file destination mark corresponding with described source file; Set up described file destination mark with the points relationship between the physics index of corresponding source file.
In conjunction with first aspect, in the 5th kind of possible implementation of first aspect, described operation requests comprises: duplicate requests, mobile request or removal request; In the time that described operation requests is mobile request or removal request, described method also comprises: delete the mark corresponding with described source object.
According to the second aspect of disclosure embodiment, a kind of pseudo operation file device is provided, comprising:
Acquiring unit, for obtaining operation requests, at least comprises in described operation requests: the source address of source object and destination address; Creating unit, for creating destination object in described destination address, and makes described destination object point to the physics index identical with described source object.
In conjunction with second aspect, in the possible implementation of the first of second aspect, described device also comprises:
Whether partition holding judging unit, be positioned at same partition holding for the source address and the destination address that judge described source object; In the time that the source address of described source object and destination address are positioned at same partition holding, described creating unit creates destination object in described destination address, and makes described destination object point to the physics index identical with described source object.
In conjunction with the possible implementation of second aspect the first, in the possible implementation of second aspect the second, described partition holding judging unit comprises:
Mark acquiring unit, for obtaining source address and the destination address subregion mark of place partition holding respectively of described source object; Whether mark judging unit, identify identical for corresponding subregion mark and subregion corresponding to destination address of source address that judges described source object; Determining unit, when identical for identifying when subregion mark corresponding to the source address of described source object and subregion corresponding to destination address, determines that the source address of described source object and destination address are positioned at same partition holding.
In conjunction with second aspect, implementation or the possible implementation of second aspect the second that second aspect the first is possible, in the third possible implementation of second aspect, described creating unit comprises:
The first file type acquiring unit, for obtaining the file type of described source object; Whether the first file type judging unit is ordinary file type for the file type that judges described source object; First object file identification creating unit, in the time that the file type of described source object is ordinary file type, creates file destination mark in described destination address; First sets up unit, for setting up the points relationship between described file destination mark and the physics index of described source object.
In conjunction with second aspect, implementation or the possible implementation of second aspect the second that second aspect the first is possible, in the 4th kind of possible implementation of second aspect, described creating unit comprises:
The second file type acquiring unit, for obtaining the file type of described source object; Whether the second file type judging unit is folder type for the file type that judges described source object; Destination folder creating unit, in the time that the file type of described source object is folder type, creates destination folder in described destination address; Source file acquiring unit, for obtaining the source file in described source object corresponding folder; The second file destination mark creating unit, for creating the file destination mark corresponding with described source file in described destination folder; Second sets up unit, for set up described file destination mark with the points relationship between the physics index of corresponding source file.
In conjunction with second aspect, in the 5th kind of possible implementation of second aspect, described operation requests comprises: duplicate requests, mobile request or removal request; In the time that described operation requests is mobile request or removal request, described device also comprises:
Delete cells, for deleting the mark corresponding with described source object.
According to the third aspect of disclosure embodiment, a kind of electronic equipment is provided, comprising:
Processor; For the storer of storage of processor executable instruction; Wherein, described processor is configured to: obtain operation requests, in described operation requests, at least comprise: the source address of source object and destination address; Create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
In the time that needs copy file, according to the source address of the source object carrying in operation requests and destination address, in destination address, create destination object, and make described destination object point to the physics index identical with described source object.This mode of operation, because destination object points to the physics index identical with source object, make the data after copying only have portion, and can point to same piece of data by source object and destination object, for user, what it was seen is source object and two living files of destination object.
Compared with correlation technique, the method to file copy after, the storage space taking does not have large variation, and because reproduction process is only for creating the process of the corresponding physics index of destination object and destination object, operate consuming time shortly, therefore can not cause burden to processor and internal memory.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described, and can not limit the disclosure.
Brief description of the drawings
Accompanying drawing is herein merged in instructions and forms the part of this instructions, shows embodiment according to the invention, and is used from and explains principle of the present invention with instructions one.
Fig. 1 is according to the process flow diagram of a kind of pseudo operation document method shown in an exemplary embodiment;
Fig. 2 is according to the process flow diagram of a kind of pseudo operation document method shown in an exemplary embodiment;
Fig. 3 is according to the process flow diagram of the step S22 shown in an exemplary embodiment;
Fig. 4 is according to the process flow diagram of a kind of pseudo operation document method shown in an exemplary embodiment;
Fig. 5 is according to the process flow diagram of a kind of pseudo operation document method shown in an exemplary embodiment;
Fig. 6 is according to the device schematic diagram of a kind of pseudo operation file device shown in an exemplary embodiment;
Fig. 7 is according to the device schematic diagram of a kind of pseudo operation file device shown in an exemplary embodiment;
Fig. 8 is according to the device schematic diagram of a kind of pseudo operation file device shown in an exemplary embodiment;
Fig. 9 is according to the block diagram of a kind of electronic equipment for pseudo operation file shown in an exemplary embodiment;
Figure 10 is according to the block diagram of a kind of server for pseudo operation file shown in an exemplary embodiment.
Embodiment
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they are only and the example of apparatus and method as consistent in some aspects that described in detail in appended claims, of the present invention.
Fig. 1 is according to the process flow diagram of a kind of pseudo operation document method shown in an exemplary embodiment, as shown in Figure 1, the method of this pseudo operation file can application and mobile radio terminal, router or other electronic equipment with memory device in, comprise the following steps.
In step S11, obtain operation requests.
In operation requests, at least comprise: the source address of source object and destination address, wherein, source address refers to that source object is positioned at the address of memory device, destination address be this operation requests by source object copy to, address in memory device.
In disclosure embodiment, operation requests is including, but not limited to: duplicate requests, mobile request and removal request, no matter which kind of operation requests, and its object all needs source object to copy to destination address.In a specific embodiment of the present disclosure, in the time that operation requests is removal request, can in memory device, set in advance one and delete data storage areas, be exclusively used in the data after storage is deleted, like this in the time of follow-up deletion action, the destination address comprising in operation requests can be the address of an acquiescence, i.e. the above-mentioned data storage areas of having deleted.
In step S12, create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
The effect of destination object is to represent that destination address has file, and taking up room of destination object can be very little.In specific embodiment of the present disclosure, destination object can be a filename, or, a symbol etc.
Destination object points to the physics index identical with described source object, refer to that destination object and source object can point to the same piece of data in memory device, be that destination object is only to play indicative function, individualism does not store up the piece of data that data are identical in pointing to memory device with source object.
From above technical scheme, the method of this pseudo operation file that disclosure embodiment provides, because destination object points to the physics index identical with source object, make the data after copying only have portion, and can point to same piece of data by source object and destination object, be equivalent to set up in destination address the virtual objects of a source object.
From user's angle, in memory device, have two two living files: source object and destination object, thought reproduction process, but because taking up room of destination object is less, before making to copy and after copying, the storage space that the data corresponding with source file take does not have large variation, so the utilization factor of memory device is high; In addition, because reproduction process is only for creating the process of the corresponding physics index of destination object and destination object, so whole reproduction process is consuming time short, therefore can not cause burden to processor and internal memory.
When this pseudo operation method providing as disclosure embodiment is applied on router, in the time that user need to copy file, can complete fast reproduction process, realize and on router, carry out " copy second ", and whole file copy process can not take too many cpu resource and the memory source of router, and then can not cause interference to the normal function of router.
Fig. 2 is according to the schematic flow sheet of a kind of pseudo operation document method shown in an exemplary embodiment.As shown in Figure 2, the method for this pseudo operation file comprises the following steps:
In step S21, obtain operation requests.
In step S22, judge whether the source address of described source object and destination address are positioned at same partition holding.
Only have the situation of a partition holding for memory device, directly adopt the exemplary embodiment that Fig. 1 is corresponding, but in actual conditions, in memory device, also may be provided with two or more partition holdings.For this situation, when getting after operation requests, also need to judge whether the source address of source object and destination address are positioned at same partition holding.
Normal conditions, in the time that memory device is provided with two or more partition holding, each partition holding has and is provided with a unique subregion mark.In the disclosure one exemplary embodiment, as shown in Figure 3, step S22 can comprise the following steps:
In step S211, obtain source address and the destination address subregion mark of place partition holding respectively of described source object.
In the time of specific implementation, in source address and destination address, can there are some characteristic characters, just can directly extract the subregion mark of partition holding according to these characteristic characters, or the subregion that indirectly extracts partition holding according to the corresponding relation of the characteristic character setting in advance and subregion mark identifies.
In step S212, judge whether identical corresponding subregion mark and the subregion corresponding to destination address of source address of described source object identifies.
Whether subregion mark can be character, character string or numeral, so identical by relatively just determining source address and the destination address of source object.
When subregion mark corresponding to the source address of described source object and subregion corresponding to destination address identify when identical, in step S213, determine that the source address of described source object and destination address are positioned at same partition holding.
In the time determining that the source address of described source object and destination address are not positioned at same partition holding in step S212, directly finish.
In step S23, create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
About the detailed description of step S23, can, referring to the above-mentioned content of describing about step S12, not repeat them here.
Due to the restriction of partition holding in memory device, the method of this pseudo operation file that disclosure embodiment provides, only have in the time that the source address of source object and destination address are positioned at the same partition holding of memory device, just create destination object in destination address, and make described destination object point to the physics index identical with described source object.
Fig. 4 is according to the schematic flow sheet of a kind of pseudo operation document method shown in an exemplary embodiment.As shown in Figure 4, the method for this pseudo operation file comprises the following steps:
In step S31, obtain operation requests.
In step S32, obtain the file type of described source object.
In step S33, judge whether the file type of described source object is ordinary file type.
For disclosure embodiment, file type can comprise: ordinary file type and folder type, wherein, in the time that the file type of source object is ordinary file type, mean and only have source object self, and in the time that the file type of source object is folder type, in the file of source object, can also include one or more than one file.
In the time that the file type of described source object is ordinary file type, in step S34, create file destination mark in described destination address, otherwise, finish.
File destination mark can be a filename, can be also a symbol.In addition, more directly perceived when facilitating user to check, file destination mark can also be one and take the empty file that storage space is very little, only have file for informing on ownership goal address.
In the time that file destination is designated filename, be not positioned at for destination address and source address the situation that identical file is pressed from both sides, the filename of file destination mark can be identical with the filename of source object, also can be different; And in the time that destination address and source address are positioned at the situation of identical file part, the filename of file destination mark and the filename of source object just must be distinguished, both filenames can have identical or corresponding character, for example: the file " xx document " by name of source object, the filename of file destination mark can be " xx document (1) ", or, " xx document copy " etc.
In step S35, set up the points relationship between described file destination mark and the physics index of described source object.
By this step, in the time that user clicks file destination mark, directly by the physics index of source object, the data corresponding with source object are opened.
Fig. 5 is according to the schematic flow sheet of a kind of pseudo operation document method shown in an exemplary embodiment.As shown in Figure 5, the method for this pseudo operation file comprises the following steps:
In step S41, obtain operation requests.
In step S42, obtain the file type of described source object.
In step S43, judge whether the file type of described source object is folder type.
If the file type of source object is folder type, represent to include one or more than one file in the file in source object, but because file is not data, there is not physics index in himself, so cannot set up a destination folder, and this destination folder is pointed to the physics index identical with source object corresponding folder.
In the disclosure one exemplary embodiment, step S43 can also the step S33 judged result in Fig. 3 exemplary embodiment to be carried out while being no.
In the time that the file type of described source object is folder type, in step S44, create destination folder in described destination address.
In this step, destination folder is file truly in a memory device, and not a filename or a symbol can include one or more file in destination folder.
In step S45, obtain the source file in described source object corresponding folder.
In the time of concrete application, can obtain successively the source file in source object corresponding folder according to the number order of the source file in source object corresponding folder or other order, in addition, can also be according to the data of source file corresponding folder the deposit position on partition holding, obtain successively the source file in source object corresponding folder.
In step S46, in described destination folder, create the file destination mark corresponding with described source file.
About the description of file destination mark, can, referring to the description content of file destination mark in the corresponding exemplary embodiment of above-mentioned Fig. 3, not repeat them here in detail.
If also have sub-folder in source file corresponding folder, the processing mode of these sub-folders is identical with the processing mode of source file corresponding folder so.
In step S47, set up described file destination mark with the points relationship between the physics index of corresponding source file.
This pseudo operation document method that disclosure embodiment provides, in the time that source object is file, can carry out batch duplicating to the multiple files in file, after batch duplicating, what in destination folder, create is multiple file destination marks, and there is points relationship respectively and between the physics index of corresponding source object in multiple file destination marks, therefore this batch duplicating mode, can not cause burden to processor and internal memory equally.
In addition,, in any exemplary embodiment of the application Fig. 1~Fig. 5, in the time that the operation requests of obtaining is removal request, the method can also comprise:
Delete the mark corresponding with source object.
When described destination object is pointed to after the physics index identical with described source object, can delete the mark corresponding with source object.Here deleting the mark corresponding with source object, is only for example, to delete being used to indicate the mark (: filename or symbol etc.) that has file in source address, can't produce any impact to data corresponding to source object.
Multiple exemplary embodiments shown in above-mentioned Fig. 1~Fig. 5; same steps reference mutually between different exemplary embodiments; different step between different EXAMPLE Example also can combine mutually, combines the rear technical scheme forming, and also belongs to the protection domain of disclosure embodiment.
Fig. 6 is according to the device schematic diagram of a kind of pseudo operation file device shown in an exemplary embodiment.With reference to Fig. 6, this device comprises acquiring unit 111 and creating unit 112.
This acquiring unit 111 is configured to obtain operation requests.Operation requests is including, but not limited to: duplicate requests, mobile request and removal request, and at least comprises in described operation requests: the source address of source object and destination address.
Creating unit 112 is configured to create destination object in described destination address, and makes described destination object point to the physics index identical with described source object.
In an exemplary embodiment of the present disclosure, creating unit 112 can comprise: the first file type acquiring unit, the first file type judging unit, first object file identification creating unit and first are set up unit.
This first file type acquiring unit is configured to obtain the file type of described source object.
File type can comprise: ordinary file type and folder type, wherein, in the time that the file type of source object is ordinary file type, mean and only have source object self, and in the time that the file type of source object is folder type, in the file of source object, can also include one or more than one file.
This first file type judging unit is configured to judge whether the file type of described source object is ordinary file type.
This first object file identification creating unit is configured in the time that the file type of described source object is ordinary file type, creates file destination mark in described destination address.
File destination mark can be a filename, can be also a symbol.In addition, more directly perceived when facilitating user to check, file destination mark can also be one and take the empty file that storage space is very little, only have file for informing on ownership goal address.
This first is set up unit and is configured to set up the points relationship between described file destination mark and the physics index of described source object.
Set up after the points relationship between described file destination mark and the physics index of described source object, in the time that user clicks file destination mark, directly by the physics index of source object, the data corresponding with source object are opened.
In another exemplary embodiment of the present disclosure, creating unit 112 can comprise: the second file type acquiring unit, the second file type judging unit, destination folder creating unit, source file acquiring unit, the second file destination mark creating unit and second are set up unit.
This second file type acquiring unit is configured to obtain the file type of described source object.
This second file type judging unit is configured to judge whether the file type of described source object is folder type.
This destination folder creating unit is configured in the time that the file type of described source object is folder type, creates destination folder in described destination address.
This source file acquiring unit is configured to obtain the source file in described source object corresponding folder.
This second file destination mark creating unit is configured in the establishment file destination mark corresponding with described source file in described destination folder.
This second set up unit be configured to set up described file destination mark with the points relationship between the physics index of corresponding source file.
If also have sub-folder in source file corresponding folder, the processing mode of these sub-folders is identical with the processing mode of source file corresponding folder so.
Because destination object points to the physics index identical with source object, make the data after copying only have portion, and can point to same piece of data by source object and destination object, be equivalent to set up in destination address the virtual objects of a source object, therefore this pseudo operation file device that, disclosure embodiment provides can not cause burden to processor and internal memory.
Fig. 7 is according to the device schematic diagram of a kind of pseudo operation file device shown in an exemplary embodiment.With reference to Fig. 7, this device can also comprise: partition holding judging unit 113.
This partition holding judging unit 113 is configured to judge whether the source address of described source object and destination address are positioned at same partition holding.
In an exemplary embodiment of the present disclosure, partition holding judging unit 113 can comprise:
This mark acquiring unit is configured to obtain source address and the destination address subregion mark of place partition holding respectively of described source object.
Normal conditions, in the time that memory device is provided with two or more partition holding, each partition holding has and is provided with a unique subregion mark.
In source address and destination address, can there are some characteristic characters, just can directly extract the subregion mark of partition holding according to these characteristic characters, or the subregion that indirectly extracts partition holding according to the corresponding relation of the characteristic character setting in advance and subregion mark identifies.
This mark judging unit is configured to judge whether identical corresponding subregion mark and the subregion corresponding to destination address of source address of described source object identifies.
Whether subregion mark can be character, character string or numeral, so identical by relatively just determining source address and the destination address of source object.
This determining unit is configured to subregion mark corresponding to source address when described source object and subregion corresponding to destination address and identifies when identical, determines that the source address of described source object and destination address are positioned at same partition holding.
Because destination object points to the physics index identical with source object, make the data after copying only have portion, and can point to same piece of data by source object and destination object, be equivalent to set up in destination address the virtual objects of a source object, therefore this pseudo operation file device that, disclosure embodiment provides can not cause burden to processor and internal memory.
Fig. 8 is according to the device schematic diagram of a kind of pseudo operation file device shown in an exemplary embodiment.With reference to Fig. 8, this device can also comprise: delete cells 114.
This delete cells 114 is configured to delete the mark corresponding with described source object.
Deleting the mark corresponding with source object, is only for example, to delete being used to indicate the instruction (: a filename or a symbol etc.) that has file in source address, can't produce any loss to data corresponding to source object.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations have been described in detail in the embodiment about the method, will not elaborate explanation herein.
Fig. 9 is according to the block diagram of a kind of electronic equipment 800 for pseudo operation file shown in an exemplary embodiment.For example, electronic equipment 800 can be mobile phone, computing machine, digital broadcast terminal, information receiving and transmitting equipment, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, electronic equipment 800 can comprise following one or more assembly: processing components 802, storer 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor module 814, and communications component 816.
Processing components 802 is controlled the integrated operation of electronic equipment 800 conventionally, such as with demonstration, call, data communication, the operation that camera operation and record operation are associated.Processing components 802 can comprise that one or more processors 820 carry out instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more modules, is convenient to mutual between processing components 802 and other assemblies.For example, processing components 802 can comprise multi-media module, to facilitate mutual between multimedia groupware 808 and processing components 802.
Storer 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on electronic equipment 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read-only memory (prom), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 806 is electronic equipment 800 provide electric power.Power supply module 806 can comprise power-supply management system, one or more power supplys, and other and the assembly that generates, manages and distribute electric power to be associated for electronic equipment 800.
Multimedia groupware 808 is included in the screen that an output interface is provided between described electronic equipment 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises that one or more touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch sensor is the border of sensing touch or sliding action not only, but also detects duration and the pressure relevant to described touch or slide.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 comprises a microphone (MIC), and when electronic equipment 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal receiving can be further stored in storer 804 or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loudspeaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 814 comprises one or more sensors, is used to electronic equipment 800 that the state estimation of various aspects is provided.For example, sensor module 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, for example described assembly is display and the keypad of electronic equipment 800, the position of all right detected electrons equipment 800 of sensor module 814 or 800 1 assemblies of electronic equipment changes, the existence that user contacts with electronic equipment 800 or do not have the temperature variation of electronic equipment 800 orientation or acceleration/deceleration and electronic equipment 800.Sensor module 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to be convenient to the communication of wired or wireless mode between electronic equipment 800 and other equipment.Electronic equipment 800 can access the wireless network based on communication standard, as WiFi, and 2G or 3G, or their combination.In an exemplary embodiment, communications component 816 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel.In an exemplary embodiment, described communications component 816 also comprises near-field communication (NFC) module, to promote junction service.For example, can be based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, electronic equipment 800 can be realized by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable recording medium that comprises instruction, for example, comprised the storer 804 of instruction, above-mentioned instruction can have been carried out said method by the processor of electronic equipment 800 820.For example, described non-provisional computer-readable recording medium can be ROM, random-access memory (ram), CD-ROM, tape, floppy disk and optical data storage equipment etc.
A kind of non-provisional computer-readable recording medium, in the time that the instruction in described storage medium is carried out by the processor of electronic equipment, makes electronic equipment can carry out a kind of method of pseudo operation file, and described method comprises:
Obtain operation requests, in described operation requests, at least comprise: the source address of source object and destination address;
Create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
Alternatively, described method also comprises:
Whether the source address and the destination address that judge described source object are positioned at same partition holding;
In the time that the source address of described source object and destination address are positioned at same partition holding, create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
Alternatively, describedly judge that whether the source address of described source object and destination address are positioned at same partition holding, comprising:
Obtain source address and the destination address subregion mark of place partition holding respectively of described source object;
Whether corresponding subregion mark and subregion corresponding to destination address of source address that judges described source object identifies identical;
When subregion mark corresponding to the source address of described source object and subregion corresponding to destination address identify when identical, determine that the source address of described source object and destination address are positioned at same partition holding.
Alternatively, described at described destination address establishment destination object, and make described destination object point to the physics index identical with described source object, comprising:
Obtain the file type of described source object;
Whether the file type that judges described source object is ordinary file type;
In the time that the file type of described source object is ordinary file type, create file destination mark in described destination address;
Set up the points relationship between described file destination mark and the physics index of described source object.
Alternatively, described at described destination address establishment destination object, and make described destination object point to the physics index identical with described source object, comprising:
Obtain the file type of described source object;
Whether the file type that judges described source object is folder type;
In the time that the file type of described source object is folder type, create destination folder in described destination address;
Obtain the source file in described source object corresponding folder;
In described destination folder, create the file destination mark corresponding with described source file;
Set up described file destination mark with the points relationship between the physics index of corresponding source file.
Alternatively, described operation requests comprises: duplicate requests, mobile request or removal request;
In the time that described operation requests is mobile request or removal request, described method also comprises:
Delete the mark corresponding with described source object.
Figure 10 is according to the block diagram of a kind of server for pseudo operation file shown in an exemplary embodiment.This server 1900 can because of configuration or performance is different produces larger difference, can comprise one or more central processing units (central processing units, CPU) 1922(for example, one or more processors) and storer 1932, for example one or more mass memory units of storage medium 1930(of one or more storage application programs 1942 or data 1944).Wherein, storer 1932 and storage medium 1930 can be of short duration storage or storage lastingly.The program that is stored in storage medium 1930 can comprise one or more modules (diagram does not mark), and each module can comprise a series of command operatings in server.Further, central processing unit 1922 can be set to communicate by letter with storage medium 1930, carries out a series of command operatings in storage medium 1930 on server 1900.
Server 1900 can also comprise one or more power supplys 1926, one or more wired or wireless network interfaces 1950, one or more IO interface 1958, one or more keyboards 1956, and/or, one or more operating systems 1941, for example Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc.
A kind of non-provisional computer-readable recording medium, in the time that the instruction in described storage medium is carried out by the processor of server, makes server can carry out a kind of method of pseudo operation file, and described method comprises:
Obtain operation requests, in described operation requests, at least comprise: the source address of source object and destination address;
Create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
Alternatively, described method also comprises:
Whether the source address and the destination address that judge described source object are positioned at same partition holding;
In the time that the source address of described source object and destination address are positioned at same partition holding, create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
Alternatively, describedly judge that whether the source address of described source object and destination address are positioned at same partition holding, comprising:
Obtain source address and the destination address subregion mark of place partition holding respectively of described source object;
Whether corresponding subregion mark and subregion corresponding to destination address of source address that judges described source object identifies identical;
When subregion mark corresponding to the source address of described source object and subregion corresponding to destination address identify when identical, determine that the source address of described source object and destination address are positioned at same partition holding.
Alternatively, described at described destination address establishment destination object, and make described destination object point to the physics index identical with described source object, comprising:
Obtain the file type of described source object;
Whether the file type that judges described source object is ordinary file type;
In the time that the file type of described source object is ordinary file type, create file destination mark in described destination address;
Set up the points relationship between described file destination mark and the physics index of described source object.
Alternatively, described at described destination address establishment destination object, and make described destination object point to the physics index identical with described source object, comprising:
Obtain the file type of described source object;
Whether the file type that judges described source object is folder type;
In the time that the file type of described source object is folder type, create destination folder in described destination address;
Obtain the source file in described source object corresponding folder;
In described destination folder, create the file destination mark corresponding with described source file;
Set up described file destination mark with the points relationship between the physics index of corresponding source file.
Alternatively, described operation requests comprises: duplicate requests, mobile request or removal request;
In the time that described operation requests is mobile request or removal request, described method also comprises:
Delete the mark corresponding with described source object.
Those skilled in the art, considering instructions and putting into practice after invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised undocumented common practise or the conventional techniques means in the art of the disclosure.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendments and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (13)

1. a method for pseudo operation file, is characterized in that, comprising:
Obtain operation requests, in described operation requests, at least comprise: the source address of source object and destination address;
Create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
2. method according to claim 1, is characterized in that, described method also comprises:
Whether the source address and the destination address that judge described source object are positioned at same partition holding;
In the time that the source address of described source object and destination address are positioned at same partition holding, create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
3. method according to claim 2, is characterized in that, describedly judges that whether the source address of described source object and destination address are positioned at same partition holding, comprising:
Obtain source address and the destination address subregion mark of place partition holding respectively of described source object;
Whether corresponding subregion mark and subregion corresponding to destination address of source address that judges described source object identifies identical;
When subregion mark corresponding to the source address of described source object and subregion corresponding to destination address identify when identical, determine that the source address of described source object and destination address are positioned at same partition holding.
4. according to the method described in claim 1-3 any one, it is characterized in that, described at described destination address establishment destination object, and make described destination object point to the physics index identical with described source object, comprising:
Obtain the file type of described source object;
Whether the file type that judges described source object is ordinary file type;
In the time that the file type of described source object is ordinary file type, create file destination mark in described destination address;
Set up the points relationship between described file destination mark and the physics index of described source object.
5. according to the method described in claim 1-3 any one, it is characterized in that, described at described destination address establishment destination object, and make described destination object point to the physics index identical with described source object, comprising:
Obtain the file type of described source object;
Whether the file type that judges described source object is folder type;
In the time that the file type of described source object is folder type, create destination folder in described destination address;
Obtain the source file in described source object corresponding folder;
In described destination folder, create the file destination mark corresponding with described source file;
Set up described file destination mark with the points relationship between the physics index of corresponding source file.
6. method according to claim 1, is characterized in that, described operation requests comprises: duplicate requests, mobile request or removal request;
In the time that described operation requests is mobile request or removal request, described method also comprises:
Delete the mark corresponding with described source object.
7. a pseudo operation file device, is characterized in that, comprising:
Acquiring unit, for obtaining operation requests, at least comprises in described operation requests: the source address of source object and destination address;
Creating unit, for creating destination object in described destination address, and makes described destination object point to the physics index identical with described source object.
8. device according to claim 7, is characterized in that, described device also comprises:
Whether partition holding judging unit, be positioned at same partition holding for the source address and the destination address that judge described source object;
In the time that the source address of described source object and destination address are positioned at same partition holding, described creating unit creates destination object in described destination address, and makes described destination object point to the physics index identical with described source object.
9. device according to claim 8, is characterized in that, described partition holding judging unit comprises:
Mark acquiring unit, for obtaining source address and the destination address subregion mark of place partition holding respectively of described source object;
Whether mark judging unit, identify identical for corresponding subregion mark and subregion corresponding to destination address of source address that judges described source object;
Determining unit, when identical for identifying when subregion mark corresponding to the source address of described source object and subregion corresponding to destination address, determines that the source address of described source object and destination address are positioned at same partition holding.
10. according to the device described in claim 7-9 any one, it is characterized in that, described creating unit comprises:
The first file type acquiring unit, for obtaining the file type of described source object;
Whether the first file type judging unit is ordinary file type for the file type that judges described source object;
First object file identification creating unit, in the time that the file type of described source object is ordinary file type, creates file destination mark in described destination address;
First sets up unit, for setting up the points relationship between described file destination mark and the physics index of described source object.
11. according to the device described in claim 7-9 any one, it is characterized in that, described creating unit comprises:
The second file type acquiring unit, for obtaining the file type of described source object;
Whether the second file type judging unit is folder type for the file type that judges described source object;
Destination folder creating unit, in the time that the file type of described source object is folder type, creates destination folder in described destination address;
Source file acquiring unit, for obtaining the source file in described source object corresponding folder;
The second file destination mark creating unit, for creating the file destination mark corresponding with described source file in described destination folder;
Second sets up unit, for set up described file destination mark with the points relationship between the physics index of corresponding source file.
12. devices according to claim 7, is characterized in that, described operation requests comprises: duplicate requests, mobile request or removal request;
In the time that described operation requests is mobile request or removal request, described device also comprises:
Delete cells, for deleting the mark corresponding with described source object.
13. 1 kinds of electronic equipments, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain operation requests, in described operation requests, at least comprise: the source address of source object and destination address;
Create destination object in described destination address, and make described destination object point to the physics index identical with described source object.
CN201410064152.8A 2014-02-25 2014-02-25 Method and device for virtually operating file, and electronic equipment Pending CN103870544A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410064152.8A CN103870544A (en) 2014-02-25 2014-02-25 Method and device for virtually operating file, and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410064152.8A CN103870544A (en) 2014-02-25 2014-02-25 Method and device for virtually operating file, and electronic equipment

Publications (1)

Publication Number Publication Date
CN103870544A true CN103870544A (en) 2014-06-18

Family

ID=50909074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410064152.8A Pending CN103870544A (en) 2014-02-25 2014-02-25 Method and device for virtually operating file, and electronic equipment

Country Status (1)

Country Link
CN (1) CN103870544A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512050A (en) * 2015-11-25 2016-04-20 小米科技有限责任公司 Memory management method and device
CN105808564A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 Information processing method and electronic equipment
CN106126723A (en) * 2016-06-30 2016-11-16 乐视控股(北京)有限公司 A kind of method and device of mobile destination object
CN110866127A (en) * 2018-08-27 2020-03-06 华为技术有限公司 Method for establishing index and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6557089B1 (en) * 2000-11-28 2003-04-29 International Business Machines Corporation Backup by ID-suppressed instant virtual copy then physical backup copy with ID reintroduced
CN1708742A (en) * 2002-01-23 2005-12-14 思科技术公司 Methods and apparatus for implementing virtualization of storage within a storage area network
CN1755672A (en) * 2004-09-30 2006-04-05 腾讯科技(深圳)有限公司 Virtual copying method and system for files in network storage system
CN1788256A (en) * 2003-06-18 2006-06-14 国际商业机器公司 Method, system, and program for incremental virtual copy
CN103577434A (en) * 2012-07-27 2014-02-12 腾讯科技(深圳)有限公司 Method and device for managing data files

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6557089B1 (en) * 2000-11-28 2003-04-29 International Business Machines Corporation Backup by ID-suppressed instant virtual copy then physical backup copy with ID reintroduced
CN1708742A (en) * 2002-01-23 2005-12-14 思科技术公司 Methods and apparatus for implementing virtualization of storage within a storage area network
CN1788256A (en) * 2003-06-18 2006-06-14 国际商业机器公司 Method, system, and program for incremental virtual copy
CN1755672A (en) * 2004-09-30 2006-04-05 腾讯科技(深圳)有限公司 Virtual copying method and system for files in network storage system
CN103577434A (en) * 2012-07-27 2014-02-12 腾讯科技(深圳)有限公司 Method and device for managing data files

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808564A (en) * 2014-12-30 2016-07-27 联想(北京)有限公司 Information processing method and electronic equipment
CN105808564B (en) * 2014-12-30 2020-01-31 联想(北京)有限公司 information processing method and electronic equipment
CN105512050A (en) * 2015-11-25 2016-04-20 小米科技有限责任公司 Memory management method and device
CN105512050B (en) * 2015-11-25 2018-09-04 小米科技有限责任公司 EMS memory management process and device
CN106126723A (en) * 2016-06-30 2016-11-16 乐视控股(北京)有限公司 A kind of method and device of mobile destination object
CN110866127A (en) * 2018-08-27 2020-03-06 华为技术有限公司 Method for establishing index and related device

Similar Documents

Publication Publication Date Title
CN105491113B (en) Moving method, device and terminal
CN103944963B (en) Method of data synchronization, device, equipment and system
CN106254467A (en) Sharing files method and device
CN111078655A (en) Document content sharing method and device, terminal and storage medium
CN105337847A (en) Instant messaging information processing method, device and equipment
CN105183513A (en) Application recommendation method and apparatus
CN104168277A (en) File security maintaining method and device
CN104636106A (en) Picture displaying method and device and terminal device
CN104038536A (en) Plug-in communication method and device
CN104951443A (en) Wallpaper downloading method, wallpaper uploading method, server and terminal
CN105468767A (en) Method and device for acquiring calling card information
CN104166602A (en) Data backup method and device and electronic device
CN105608462A (en) Character similarity judgment method and device
CN106201734A (en) Sharing files method and device
CN105094904A (en) Application program installation method and device
CN104281703A (en) Method and device for calculating similarity among uniform resource locators (URL)
CN104462296A (en) File managing method and device and terminal
CN106598677A (en) Installation package downloading method and device
CN103984664A (en) Cloud space access method, device and system
CN103914520A (en) Data query method, terminal equipment and server
KR20170016165A (en) Mobile terminal and method for controlling the same
CN104636164A (en) Generating method and device for starting page
CN106547547A (en) Collecting method and device
CN103870544A (en) Method and device for virtually operating file, and electronic equipment
CN105550213A (en) Picture browsing method 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140618