CN110019010A - Processing method, device, equipment and machine readable media - Google Patents

Processing method, device, equipment and machine readable media Download PDF

Info

Publication number
CN110019010A
CN110019010A CN201711124949.2A CN201711124949A CN110019010A CN 110019010 A CN110019010 A CN 110019010A CN 201711124949 A CN201711124949 A CN 201711124949A CN 110019010 A CN110019010 A CN 110019010A
Authority
CN
China
Prior art keywords
file
symbolic links
directed toward
request
symbolic
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
CN201711124949.2A
Other languages
Chinese (zh)
Other versions
CN110019010B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201711124949.2A priority Critical patent/CN110019010B/en
Publication of CN110019010A publication Critical patent/CN110019010A/en
Application granted granted Critical
Publication of CN110019010B publication Critical patent/CN110019010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/13File access structures, e.g. distributed indices
    • 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/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Abstract

The embodiment of the present application provides a kind of processing method, device, equipment and machine readable media, method therein and specifically includes: using the corresponding characteristic value of file content as the corresponding file name of file, and storing to the file;The Symbolic Links of the file are directed toward in creation;The Symbolic Links include: the corresponding file name of the file.The embodiment of the present application can avoid the repetition of file from storing to a certain extent, and can reduce the waste of memory space, and the utilization rate of memory space can be improved.

Description

Processing method, device, equipment and machine readable media
Technical field
This application involves cloud storage technical fields, more particularly to a kind of processing method, a kind of processing unit, Yi Zhongshe Standby and a kind of machine readable media.
Background technique
With being widely used for cloud storage service, more and more enterprise customers and/or personal user are by their data It is contracted out to CSP (cloud service provider, Cloud Service Provider), this will generate a large amount of data beyond the clouds, and CSP will be increased for the demand of memory space.
Inventor has found that different user may upload identical file during implementing the embodiment of the present application, in this way, Cloud will be made to store multiple identical files, cause the waste of the memory space in cloud, and lead to the benefit of the memory space in cloud It is lower with rate.
Summary of the invention
The technical problem to be solved in the embodiments of the present application is that providing a kind of processing method, can avoid to a certain extent The repetition of file stores, and can reduce the waste of memory space, and the utilization rate of memory space can be improved.
Correspondingly, the embodiment of the present application also provides a kind of processing unit, a kind of equipment and a kind of machine readable Jie Matter, to guarantee the implementation and application of the above method.
To solve the above-mentioned problems, the embodiment of the present application discloses a kind of processing method, comprising:
Using the corresponding characteristic value of file content as the corresponding file name of file, and the file is stored;
The Symbolic Links of the file are directed toward in creation;The Symbolic Links include: the corresponding file name of the file.
Optionally, the method also includes:
Establish the mapping relations between Symbolic Links metadata corresponding with its pointed file.
Optionally, the metadata includes:
The metadata obtained according to the file, and/or user are directed to the metadata of file setting.
Optionally, the file that the Symbolic Links are directed toward with it is located in same or different bucket space.
Optionally, the Symbolic Links and the file that it is directed toward are located at same subscriber or the corresponding bucket space of different user It is interior.
Optionally, the type of the file includes: any in general type, Symbolic Links type and type of webpage.
Optionally, before the Symbolic Links of the file are directed toward in the creation, the method also includes:
Symbolic Links request to create is authenticated;The Symbolic Links request to create, which is used to create, is directed toward the file Symbolic Links, the Symbolic Links request to create are corresponding with request user and the file;
If the authentication is passed, the Symbolic Links that the file is directed toward in the creation are executed.
It is optionally, described that Symbolic Links request to create is authenticated, comprising:
Detecting the corresponding file of the Symbolic Links request to create whether there is;And/or
Detect whether the request user has access authority for the file;And/or
Detect the Symbolic Links request to create for creation Symbolic Links whether there is circular linkage.
Optionally, Symbolic Links of the detection Symbolic Links request to create for creation whether there is endless-chain It connects, comprising:
Quantity according to the Symbolic Links request to create for the Symbolic Links of the progressive nesting of Symbolic Links of creation, sentences Symbolic Links of the Symbolic Links request to create of breaking for creation whether there is circular linkage.
The embodiment of the present application also discloses a kind of processing method, which comprises
Receive file read request;The file read request is corresponding with Symbolic Links;
Read the file that the Symbolic Links are directed toward;The Symbolic Links include: the corresponding file name of pointed file, The corresponding file name of the file is the corresponding characteristic value of file content.
Optionally, before the file for reading the Symbolic Links direction, the method also includes:
The file read request is authenticated;The file read request is corresponding with request user;
If the authentication is passed, the file for reading the Symbolic Links and being directed toward is executed;
It is optionally, described that the file read request is authenticated, comprising:
Detecting the file that the Symbolic Links are directed toward whether there is;And/or
Detect the access authority whether the request user has the file being directed toward for the Symbolic Links;And/or
The Symbolic Links are detected with the presence or absence of circular linkage.
Optionally, the detection Symbolic Links whether there is circular linkage, comprising:
The quantity of Symbolic Links according to the progressive nesting of the Symbolic Links judges the Symbolic Links with the presence or absence of circulation Link.
Optionally, the method also includes:
According to the mapping relations between Symbolic Links metadata corresponding with file, the text that the Symbolic Links are directed toward is obtained The corresponding metadata of part.
Optionally, the method also includes:
The corresponding file content of file that the Symbolic Links are directed toward is returned by the backpack body of data packet;And/or
The corresponding metadata of file that the Symbolic Links are directed toward is returned by the packet header of data packet;And/or
Newest modification time is returned to by the packet header of data packet, the newest modification time is the Symbolic Links and its refers to To the corresponding modification time of file in maximum value.
Optionally, the method also includes:
Receive link read requests;
The corresponding Symbolic Links of the link read requests are read, it is corresponding to obtain the file that the Symbolic Links are directed toward File name.
Optionally, the method also includes:
Receive the first copy request;
Create new Symbolic Links;The file name that the new Symbolic Links include is corresponding with the first copy request The Symbolic Links file name that includes it is identical.
Optionally, the method also includes:
Receive the second copy request;
Create new general type file;The new general type file includes: corresponding to the first copy request The corresponding file content of file that Symbolic Links are directed toward.
The embodiment of the present application also discloses a kind of processing unit, comprising:
File name determining module, for using the corresponding characteristic value of file content as the corresponding file name of file;
File storage module, for being stored to the file;And
Symbolic Links creation module, for creating the Symbolic Links for being directed toward the file;The Symbolic Links include: described The corresponding file name of file.
Optionally, described device further include:
Module is established in mapping, for establish the Symbolic Links with its pointed by mapping between the corresponding metadata of file Relationship.
Optionally, the metadata includes:
The metadata obtained according to the file, and/or user are directed to the metadata of file setting.
The embodiment of the present application also discloses a kind of processing unit, and described device includes:
Receiving module, for receiving file read request;The file read request is corresponding with Symbolic Links;And
File read module, the file being directed toward for reading the Symbolic Links;The Symbolic Links include: pointed text The corresponding file name of part, the corresponding file name of the file are the corresponding characteristic value of file content.
Optionally, described device further include:
File read request authentication module, for reading the file that the Symbolic Links are directed toward in the file read module Before, the file read request is authenticated;The file read request is corresponding with request user;If the authentication is passed, It triggers the file read module and reads the file that the Symbolic Links are directed toward;
Optionally, described device further include:
First return module returns to the corresponding file of file that the Symbolic Links are directed toward for the backpack body by data packet Content;And/or
Second return module returns to the corresponding first number of file that the Symbolic Links are directed toward for the packet header by data packet According to;And/or
Third return module, for returning to newest modification time by the packet header of data packet, the newest modification time is Maximum value in the Symbolic Links and its corresponding modification time of the file of direction.
The embodiment of the present application also discloses a kind of equipment, comprising: one or more processors;Be stored thereon with instruction One or more machine readable medias, when being executed by one or more of processors, so that the equipment executes aforementioned one A or multiple methods.
The embodiment of the present application also discloses one or more machine readable medias, is stored thereon with instruction, when by one or When multiple processors execute, so that equipment executes method described in aforementioned one or more.
The embodiment of the present application also discloses a kind of operating system for equipment, comprising:.
Compared with existing scheme, the embodiment of the present application includes the following advantages:
The corresponding file name of file that the embodiment of the present application is directed toward by Symbolic Links and Symbolic Links, realizes file Duplicate removal and file content it is shared, specifically, the file correspondence that the corresponding characteristic value of file content is directed toward as Symbolic Links File name;Since identical file content can correspond to identical characteristic value, therefore can make with same file content One or more file correspond to unique file name so that with same file content one or more text Part is primary by storage, therefore the repetition of file can be avoided to store to a certain extent, and from can reducing the wave of memory space Take, and the utilization rate of memory space can be improved.Also, the Symbolic Links of the file are directed toward in the embodiment of the present application creation, can To realize the shared of the file.
In a kind of application example of the application, it is assumed that there are identical at least two file of file content, for example, file 1, file 2, file 3 ... file n (n is greater than 1 integer) file content having the same, therefore according to the place of the embodiment of the present application Logic is managed, this n file corresponds to identical file name, it is assumed that file 1 is prior to alternative documents such as file 2, file 3 ... file n Set its file name for the corresponding characteristic value of file content, and be arranged successfully, then file 2, file 3 ... file n etc. other The case where file file name setup failed will occurs and then can not store, therefore the embodiment of the present application can be to a certain degree On avoid the repetition of file from storing.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of processing method embodiment of the application;
Fig. 2 is the step flow chart of another processing method embodiment of the application;
Fig. 3 is a kind of structural block diagram of processing device embodiment of the application;
Fig. 4 is the structural block diagram of another processing device embodiment of the application;
Fig. 5 is the hardware structural diagram for the terminal device that one embodiment of the application provides;
Fig. 6 is the hardware structural diagram for the terminal device that another embodiment of the application provides;
Fig. 7 is the schematic diagram for the operating system that one embodiment of the application provides;
Fig. 8 is the schematic diagram for the operating system that another embodiment of the application provides.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.
The embodiment of the present application provides a kind of processing scheme, and the program can be using the corresponding characteristic value of file content as text The corresponding file name of part, and the file is stored;And then create the Symbolic Links for being directed toward the file;The symbol Link may include: the corresponding file name of the file.
Symbolic Links are also known as soft link, are a kind of special files, compared with general type file stores user data, symbol Number link storage be another file file name, can play the role of be directed toward another file pointer.It is accorded with when reading Number link when, the file content of the file pointed by it can be returned.
The corresponding file name of file that the embodiment of the present application is directed toward by Symbolic Links and Symbolic Links, realizes file Duplicate removal and file content it is shared, specifically, the file correspondence that the corresponding characteristic value of file content is directed toward as Symbolic Links File name;Since identical file content can correspond to identical characteristic value, therefore can make with same file content One or more file correspond to unique file name so that with same file content one or more text Part is primary by storage, therefore the repetition of file can be avoided to store to a certain extent, and from can reducing the wave of memory space Take, and the utilization rate of memory space can be improved.
The embodiment of the present application can be applied under the storage scene such as cloud storage, for passing through Symbolic Links to enterprise customer And/or the file of personal user stores.For example, the corresponding file name of file that user uploads are as follows: Download.txt.v1, therefore the Symbolic Links of direction " download.txt.v1 ", such as title can be created are as follows: Download.txt may include the corresponding file name of pointed file " download.txt.v1 " in the Symbolic Links, with When reading Symbolic Links, the file content of the file pointed by it is returned.
In a kind of application example of the application, can be provided under cloud storage scene OSS (object storage service, Object Storage Service), OSS is a kind of magnanimity, safety, low cost, highly reliable cloud storage service.OSS can be with It provides API (application programming interface, Application Programming Interface), so that user passes through calling API uploads and downloads file in any application, any time, any place.Also, OSS can also provide console, so that User is managed file by the console.OSS is suitble to store any type of file, for example, the type of the file It may include: any in general type, Symbolic Links type and type of webpage.In OSS, each file of user is one A object (Object), each object being stored on OSS are comprised in the space bucket (Bucket);Bucket name in a name space claims There is global uniqueness in OSS, and cannot be modified.
Certainly, above-mentioned OSS is intended only as a kind of example of cloud storage service, in fact, those skilled in the art can root According to practical application request, the embodiment of the present application is applied to arbitrary cloud storage scene, the embodiment of the present application is for specifically depositing It is without restriction to store up scene.
Referring to Fig.1, a kind of step flow chart of processing method embodiment of the application is shown, can specifically include as follows Step:
Step 101, using the corresponding characteristic value of file content as the corresponding file name of file, and to the file carry out Storage;
Step 102, creation are directed toward the Symbolic Links of the file;The Symbolic Links may include: that the file is corresponding File name.
File in step 101 can be the file for arbitrarily needing to store, such as the file that user uploads.
Step 101 included by the processing method of the embodiment of the present application to step 102 can be executed by equipment, which can be with For terminal, or server.At least one operating system can be run on above equipment, which can wrap It includes: Windows, Linux, Android, IOS etc., it will be understood that the embodiment of the present application is for the specific operating system that runs in equipment It is without restriction.
The corresponding characteristic value of file content can be the arbitrary characteristics that can identify file content.Optionally, file content Corresponding characteristic value can be the corresponding informative abstract value of file content.The informative abstract value is by special algorithm in file Hold and carry out the value that operation obtains, there is uniqueness;Corresponding algorithm can be Message Digest 5, which can be with By hash function by file content operation be a numerical value namely informative abstract value;It is corresponding when file content changes Informative abstract value can also change, therefore, informative abstract value have uniqueness.It, can in a kind of embodiment of the application To be directed to a file, the corresponding characteristic value of its file content is determined, then, the file name being directed toward is set as this feature Value;After file name is arranged successfully, this document can be stored.
In another embodiment of the application, identical at least two file of file content, then will appear text if it exists The case where part title setup failed.For example, the n file such as file 1, file 2, file 3 ... file n (n is the integer greater than 1) tool There is identical file content, therefore according to the processing logic of the embodiment of the present application, this n file corresponds to identical file name, false If file 1 sets its filename for the corresponding characteristic value of file content prior to alternative documents such as file 2, file 3 ... file n Claim, and be arranged successfully, then the alternative documents such as file 2, file 3 ... file n file name setup failed will occur and then can not deposit The case where storage, therefore the repetition of file can be avoided to store to a certain extent.
After step 101 stores the file, step 102 can create the Symbolic Links for being directed toward the file; The Symbolic Links may include: the corresponding file name of the file, that is, the content of the Symbolic Links can be pointed by it The corresponding file name of file.
In practical applications, interface can be such as created by the api interface that operating system provides, the file is directed toward in creation Symbolic Links, the Symbolic Links storage content may include: the corresponding file name of pointed file, with read accord with Number link when, return to the file content of the file pointed by it.For example, the creation interface that can be provided by operating system, touching Symbolic Links request to create is sent out, to be directed toward the Symbolic Links of the file by Symbolic Links request to create creation.
In the embodiment of the present application, the type for the file that the Symbolic Links are directed toward be can include but is not limited to: Symbolic Links Type and is-not symbol link type, wherein is-not symbol link type may include: any in general type and type of webpage. Wherein, the file of general type may include: file (such as * .txt, * .doc, * .xls), the executable file of Doctype (executable file), audio-video document, picture file etc.;The file of type of webpage can be URL (unified resource positioning Symbol, Uniform Resource Locator) etc..
In a kind of alternative embodiment of the application, the Symbolic Links and file that it is directed toward can be located at it is identical or In different bucket spaces.By the embodiment of the present application, the file with user data can be placed in a bucket space, and Symbolic Links are created in another barrel of space, and are directed toward the file for having user data, and can will be where Symbolic Links Bucket space is exposed to user, and hides the bucket space with user data, therefore the bucket for having user data may be implemented The protection in space improves the safety of user data.Optionally, it can also set read-only for the bucket space where Symbolic Links Mode can be further improved the safety of user data in this way.
In another alternative embodiment of the application, the Symbolic Links can be located at identical use with the file that it is directed toward In family or the corresponding bucket space of different user.It is located at the corresponding bucket space of different user in Symbolic Links and the file that it is directed toward In the case where, the file of other users can be directed toward by Symbolic Links, but due to accessing its direction by Symbolic Links Request user can be authenticated during file, specifically detect whether the request user has for the file Access authority, if request user does not have the access authority for the file, by failed authentication, therefore the embodiment of the present application can Not influence the safety of user data.
In a kind of alternative embodiment of the application, after receiving Symbolic Links request to create, the creation direction text Before the Symbolic Links of part, Symbolic Links request to create can be authenticated;The Symbolic Links request to create can be used for creating The Symbolic Links for being directed toward the file are built, the Symbolic Links request to create can be corresponding with request user and the file, ask User is asked to can be used for characterizing the user of trigger symbol link request to create.Corresponding authenticate of above-mentioned link request to create can detecte It is pre- whether at least one of the Symbolic Links of request user, the file and the Symbolic Links request to create for creation meet If regular or whether legal, also it can determine that can Symbolic Links be created by authenticating;Specifically, if the authentication is passed, The Symbolic Links for being directed toward the file can be then created, if authentication does not pass through, the symbol for being directed toward the file can not be created Link, it is possible thereby to improve the legitimacy and systematicness of the creation operation of Symbolic Links.
Correspondingly, the above-mentioned process authenticated to Symbolic Links request to create may include:
Detecting the file that the corresponding file of the Symbolic Links request to create namely Symbolic Links are directed toward whether there is, if It is no, then do not create the Symbolic Links for being directed toward the file;And/or
Detect whether the request user has access authority for the file, if it is not, not creating described in direction then The Symbolic Links of file;And/or
Detect the Symbolic Links request to create for creation Symbolic Links whether there is circular linkage.
Since the type of the file of Symbolic Links direction may include Symbolic Links type, if the symbol that Symbolic Links are directed toward Link type is also directed toward Symbolic Links type, it will the situation of progressive nesting occurs, the quantity of the Symbolic Links of progressive nesting can To be equivalent to the depth of progressive nesting.For example, Symbolic Links 1 are directed toward Symbolic Links 2, Symbolic Links 2 are directed toward Symbolic Links 3, symbol Number link 3 is directed toward Symbolic Links 4 ... Symbolic Links M-1 and is directed toward Symbolic Links M (M be integer) greater than 1 ... etc..Circular linkage is The depth for referring to endless progressive nesting namely progressive nesting is infinity.
Detect the Symbolic Links request to create for creation Symbolic Links whether there is circular linkage, can be certain Circular linkage is prevented in degree, correspondingly, whether is Symbolic Links of the detection Symbolic Links request to create for creating There are the process of circular linkage, may include: according to the Symbolic Links request to create for creation Symbolic Links it is progressive embedding The quantity of the Symbolic Links of set, judge the Symbolic Links request to create for creation Symbolic Links whether there is endless-chain It connects.Specifically, it can be determined that the Symbolic Links of Symbolic Links progressive nesting of the Symbolic Links request to create for creating Whether quantity is more than first threshold, if so, determine the Symbolic Links request to create for creation Symbolic Links presence follow Loop chain connects, and does not create the Symbolic Links for being directed toward the file;If it is not, then determine the Symbolic Links request to create for creation Circular linkage is not present in Symbolic Links, and the Symbolic Links of the file are directed toward in creation.Wherein, above-mentioned first threshold can be used for constraining The depth of progressive nesting, specific value can determine by those skilled in the art according to practical application request, the embodiment of the present application It is without restriction for specific first threshold.
It should be noted that being directed toward the Symbolic Links of the file in creation to improve the creation efficiency of Symbolic Links Before, can not detect the Symbolic Links request to create for creation Symbolic Links whether there is circular linkage, but Before reading the file that Symbolic Links are directed toward, detect the Symbolic Links with the presence or absence of circular linkage, the embodiment of the present application for The specific opportunity that the Symbolic Links are detected with the presence or absence of circular linkage is without restriction.
In a kind of alternative embodiment of the application, the method for the embodiment of the present application can also include: to establish the symbol Link the mapping relations between metadata corresponding with its pointed file.
Metadata (Metadata) is to describe the data (data about data) of data, is mainly used for describing data category The information of property.In the embodiment of the present application, the corresponding metadata of File pointed by Symbolic Links can be used for describing the category of file Property, for example, the attribute of the file of Doctype may include: author, document keyword etc.;The attribute of the file of photo type can To include: classification (such as home category, friend's classification), shooting date.User can be helped by the corresponding metadata of file Understand the corresponding file of Symbolic Links, is convenient for the corresponding file of user sharing Symbolic Links.
In practical applications, the mapping that can establish between Symbolic Links metadata corresponding with its pointed file is closed System, in order to which user accesses the corresponding metadata of file pointed by Symbolic Links.It is accorded with for example, can be associated with by the mapping relations The storage address of the pointed corresponding metadata of file number is linked, to obtain file pointed by Symbolic Links by the storage address Corresponding metadata.
In the embodiment of the present application, above-mentioned metadata be can include but is not limited to: the metadata that is obtained according to the file, And/or user is directed to the metadata of file setting.Wherein, the metadata obtained according to the file can be from file The data (such as document keyword) extracted in content, or extracted from the attribute of file data (such as creation time, Modification time, author etc.).User can be the customized metadata of user for the metadata of file setting, in reality In, user can be according to the metadata of the customized personalization of individual demand.
The embodiment of the present application can be applied to file upload or file download scene.It, can be in file download scene The corresponding old version of document retaining, can also improve the real-time of file, and user is made to download to newest FileVersion.Example Such as, FileVersion i is received, Symbolic Links j can be created for this document version i;FileVersion is received after a period of time (i+1), Symbolic Links j can be updated for this document version (i+1), so that it is directed toward FileVersion (i+1), it is possible thereby to make to accord with Newest FileVersion is directed toward in number link, and can be with the corresponding old version of document retaining;Wherein, i is for characterizing FileVersion Mark, j is used to characterize the marks of Symbolic Links, and i and j can be any numbers such as integer, floating number.
To sum up, the processing method of the embodiment of the present application, the corresponding text of file being directed toward by Symbolic Links and Symbolic Links Part title realizes the duplicate removal of file and sharing for file content, specifically, using the corresponding characteristic value of file content as symbolic link Connect the corresponding file name of file of direction;Since identical file content can correspond to identical characteristic value, therefore can make One or more file with same file content corresponds to unique file name, so that having same file content One or more file it is primary by storage, therefore the repetition of file can be avoided to store to a certain extent, and can be with The waste of memory space is reduced, and the utilization rate of memory space can be improved.
Referring to Fig. 2, show the step flow chart of another processing method embodiment of the application, can specifically include as Lower step:
Step 201 receives file read request;The file read request can be corresponding with Symbolic Links;
Step 202 reads the file that the Symbolic Links are directed toward;The Symbolic Links may include: pointed file pair The file name answered, the corresponding file name of the file can be the corresponding characteristic value of file content.
In practical applications, operating system or cloud storage system can provide Symbolic Links corresponding operation interface, such as Symbolic link file reads interface etc., so that user reads interface by the symbolic link file, triggers file read request, into And the reading for the file being directed toward for Symbolic Links is realized by this document read requests.
In the embodiment of the present application, the type for the file that the Symbolic Links are directed toward be can include but is not limited to: Symbolic Links Type and is-not symbol link type.Wherein, is-not symbol link type may include: any in general type and type of webpage.
In a kind of alternative embodiment of the application, the Symbolic Links and file that it is directed toward can be located at it is identical or In different bucket spaces.By the embodiment of the present application, the file with user data can be placed in a bucket space, and Symbolic Links are created in another barrel of space, and are directed toward the file for having user data, and can will be where Symbolic Links Bucket space is exposed to user, and hides the bucket space with user data, therefore the bucket for having user data may be implemented The protection in space improves the safety of user data.Optionally, it can also set read-only for the bucket space where Symbolic Links Mode can be further improved the safety of user data in this way.
In another alternative embodiment of the application, the Symbolic Links can be located at identical use with the file that it is directed toward In family or the corresponding bucket space of different user.It is located at the corresponding bucket space of different user in Symbolic Links and the file that it is directed toward In the case where, the file of other users can be directed toward by Symbolic Links, but due to accessing its direction by Symbolic Links Request user can be authenticated during file, specifically detect whether the request user has for the file Access authority, if request user does not have the access authority for the file, by failed authentication, therefore the embodiment of the present application can Not influence the safety of user data.
In the embodiment of the present application, the process for reading the file that the Symbolic Links are directed toward may include: opening Symbolic Links, The file name that the Symbolic Links include is obtained, opens corresponding file according to this document title, and read from open file Take corresponding file content.
It should be noted that when the type of the file pointed by Symbolic Links is the type of webpage of such as URL, described in reading The process for the file that Symbolic Links are directed toward may include: the corresponding file of file that type of webpage is obtained by HTTP Get method Content.Certainly, the embodiment of the present application is without restriction for the detailed process for reading the file that the Symbolic Links are directed toward.
In a kind of alternative embodiment of the application, before the file for reading the Symbolic Links direction, this Shen Please the method for embodiment can also include: to be authenticated to the file read request;The file read request can correspond to There is request user;Corresponding authenticate of above-mentioned file read request can detecte request user, Symbolic Links and Symbolic Links direction At least one of file whether meet preset rules or whether legal, can also pass through to authenticate and determine that Symbolic Links are directed toward File can be read;Specifically, if the authentication is passed, the file that the Symbolic Links are directed toward can be read, if authentication is not Pass through, then the file that the Symbolic Links are directed toward can not be read, it is possible thereby to improve the reading of file pointed by Symbolic Links The legitimacy and systematicness of extract operation.
In the embodiment of the present application, the above-mentioned process authenticated to the file read request may include:
Detecting the file that the Symbolic Links are directed toward whether there is;And/or
Detect the access authority whether the request user has the file being directed toward for the Symbolic Links;And/or
The Symbolic Links are detected with the presence or absence of circular linkage.
The corresponding Symbolic Links of the file read request are detected with the presence or absence of circular linkage, can be prevented to a certain extent Only circular linkage.Before reading the file that Symbolic Links are directed toward, detect the Symbolic Links whether there is the embodiment of the present application Circular linkage, relative to before the Symbolic Links that file is directed toward in creation detection symbols link whether there is circular linkage, can be with The creation efficiency of Symbolic Links is improved,
Optionally, the above-mentioned detection Symbolic Links whether there is the process of circular linkage, may include: according to the symbol The quantity of the Symbolic Links of number progressive nesting of link, judges that the Symbolic Links whether there is circular linkage.Specifically, can sentence Whether the quantity of the Symbolic Links of the progressive nesting of the Symbolic Links that break is more than second threshold, if so, determining the symbolic link It connects that there are circular linkages, does not read the file that the Symbolic Links are directed toward;If it is not, then determining the Symbolic Links, there is no circulations The file that the Symbolic Links are directed toward is read in link.Wherein, above-mentioned second threshold can be used for constraining the depth of progressive nesting, Specific value can determine that the embodiment of the present application is for specific first threshold according to practical application request by those skilled in the art It is without restriction.
In a kind of alternative embodiment of the application, the above method can also include: corresponding with file according to Symbolic Links Metadata between mapping relations, obtain the corresponding metadata of file that the Symbolic Links are directed toward.For example, can be by this Mapping relations associated symbol links the storage address of the corresponding metadata of pointed file, to obtain symbol by the storage address Link the corresponding metadata of pointed file.The embodiment of the present application may also respond to above-mentioned file read request, obtain and to User provides the corresponding metadata of file that Symbolic Links are directed toward, and user can be helped to understand symbol by the corresponding metadata of file Number corresponding file of link, is convenient for the corresponding file of user sharing Symbolic Links.
In another alternative embodiment of the application, the embodiment of the present application can also obtain newest modification time, described Newest modification time can be the maximum value in the corresponding modification time of file of the Symbolic Links and its direction, so that user Perceive the variation that Symbolic Links or its file being directed toward occur.In practical applications, Symbolic Links and its file pair of direction The modification time answered can be the corresponding specific value of Hour Minute Second, such as 201708291000,201708291225, modification time In maximum value can to characterize modification time newest.
In practical applications, after receiving file read request and reading the file that the Symbolic Links are directed toward, this The corresponding processing result of file read request can be returned to by data packet by applying for embodiment, which specifically include but not It is limited to: the corresponding first number of the file that the corresponding file content of file, and/or Symbolic Links that the Symbolic Links are directed toward are directed toward According to, and/or newest modification time so that the opposite end of file read request parses required data from the data packet.
Correspondingly, the embodiment of the present application can be with by the process that data packet returns to the corresponding processing result of file read request Include:
The corresponding file content of file that the Symbolic Links are directed toward is returned by the backpack body of data packet;And/or
The corresponding metadata of file that the Symbolic Links are directed toward is returned by the packet header of data packet;And/or
Newest modification time is returned to by the packet header of data packet, the newest modification time is the Symbolic Links and its refers to To the corresponding modification time of file in maximum value.
In practical applications, above-mentioned data packet can be HTTP (hypertext transfer protocol, HyperText Transfer Protocol) data packet, certain the embodiment of the present application agreement corresponding for data packet are without restriction.It is with HTTP data packet Example can return to the corresponding file content of file that the Symbolic Links are directed toward by its backpack body, can be by its packet header Custom field returns to the corresponding metadata of file that the Symbolic Links are directed toward, and can pass through the Last- in its packet header Modified field returns to newest modification time.Optionally, can also by Content-Length in the packet header HTTP, The fields such as ETAG, Content-Md5 distinguish the corresponding file size of file, entity value and the MD5 value that return character link is directed toward.
The embodiment of the present application other than it can support file read request, can also support Symbolic Links it is corresponding other Request, such as linking read requests can be used for reading the corresponding file name of file of Symbolic Links direction, and correspondingly, the application is real The method for applying example can also include: to receive link read requests;The corresponding Symbolic Links of the link read requests are read, with The corresponding file name of file being directed toward to the Symbolic Links.
The embodiment of the present application can also support copy to request, and copy request may include: the request of the first copy or the Two copy requests, wherein the first copy request can be used for shallowly copying, and correspondingly, the method for the embodiment of the present application can also include: Receive the first copy request;Create new Symbolic Links;The file name that the new Symbolic Links include is copied with described first The file name that shellfish requests corresponding Symbolic Links to include is identical.Optionally, can also be directed to new Symbolic Links, establish its with Mapping relations between the corresponding metadata of pointed file, so that the corresponding metadata of file is also copied.
Second copy request can be used for deep copy, and correspondingly, the method for the embodiment of the present application can also include: reception second Copy request;Create new general type file;The new general type file may include: the first copy request institute The corresponding file content of file that corresponding Symbolic Links are directed toward.
To sum up, the processing method of the embodiment of the present application, the file that can be directed toward by Symbolic Links and Symbolic Links are corresponding File name, realize file duplicate removal and file content it is shared, specifically, can be read in response to file read request And the file that return character link is directed toward, it thus not only may be implemented the shared of file pointed by Symbolic Links, but also can be with It avoids the repetition of file to store to a certain extent, and the waste of memory space can be reduced, and memory space can be improved Utilization rate.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, the embodiment of the present application is not limited by the described action sequence, because according to According to the embodiment of the present application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and related movement not necessarily the application is implemented Necessary to example.
The embodiment of the present application also provides a kind of processing units.
Referring to Fig. 3, a kind of structural block diagram of processing device embodiment of the application is shown, can specifically include such as lower die Block: file name determining module 301, file storage module 302 and Symbolic Links creation module 303;
Wherein, file name determining module 301, for using the corresponding characteristic value of file content as the corresponding file of file Title;
File storage module 302, for being stored to the file;
Symbolic Links creation module 303, for creating the Symbolic Links for being directed toward the file;The Symbolic Links can wrap It includes: the corresponding file name of the file.
Optionally, described device can also include:
Module is established in mapping, for establish the Symbolic Links with its pointed by mapping between the corresponding metadata of file Relationship.
Optionally, the metadata may include:
The metadata obtained according to the file, and/or user are directed to the metadata of file setting.
Optionally, the file that the Symbolic Links are directed toward with it is located in same or different bucket space.
Optionally, the Symbolic Links and the file that it is directed toward are located at same subscriber or the corresponding bucket space of different user It is interior.
Optionally, the type of the file may include: appointing in general type, Symbolic Links type and type of webpage One.
Optionally, described device can also include:
Authentication module, for before the Symbolic Links of the file are directed toward in the creation of Symbolic Links creation module 303, to symbol Number link request to create authenticated;The Symbolic Links request to create is for creating the Symbolic Links for being directed toward the file, institute It states Symbolic Links request to create and is corresponding with request user and the file;
If the authentication is passed, the Symbolic Links that the file is directed toward in the creation are executed.
Optionally, the authentication module can specifically include:
First detection sub-module whether there is for detecting the corresponding file of the Symbolic Links request to create;And/or
Second detection sub-module, for detecting whether the request user has access authority for the file;With/ Or
Third detection sub-module, for detect the Symbolic Links request to create for creation Symbolic Links whether there is Circular linkage.
Optionally, the third detection sub-module may include:
Judging unit, for the symbol according to the Symbolic Links request to create for the progressive nesting of Symbolic Links of creation The quantity of link, judge the Symbolic Links request to create for creation Symbolic Links whether there is circular linkage.
To sum up, the processing unit of the embodiment of the present application, the corresponding text of file being directed toward by Symbolic Links and Symbolic Links Part title realizes the duplicate removal of file and sharing for file content, specifically, using the corresponding characteristic value of file content as symbolic link Connect the corresponding file name of file of direction;Since identical file content can correspond to identical characteristic value, therefore can make One or more file with same file content corresponds to unique file name, so that having same file content One or more file it is primary by storage, therefore the repetition of file can be avoided to store to a certain extent, and can be with The waste of memory space is reduced, and the utilization rate of memory space can be improved.
Referring to Fig. 4, the structural block diagram of another processing device embodiment of the application is shown, can specifically include as follows Module: receiving module 401 and file read module 402;
Wherein, receiving module 401, for receiving file read request;The file read request is corresponding with Symbolic Links;
File read module 402, the file being directed toward for reading the Symbolic Links;The Symbolic Links may include: The corresponding file name of pointed file, the corresponding file name of the file is the corresponding characteristic value of file content.
Optionally, described device can also include:
File read request authentication module, for reading the file that the Symbolic Links are directed toward in the file read module Before, the file read request is authenticated;The file read request is corresponding with request user;If the authentication is passed, It triggers the file read module and reads the file that the Symbolic Links are directed toward.
Optionally, the file read request authentication module may include:
First detection sub-module whether there is for detecting the file that the Symbolic Links are directed toward;And/or
Second detection sub-module, for detecting whether the request user has the file being directed toward for the Symbolic Links Access authority;And/or
Third detection sub-module, for detecting the Symbolic Links with the presence or absence of circular linkage.
Optionally, the third detection sub-module may include:
Judging unit judges the symbolic link for the quantity of the Symbolic Links according to the progressive nesting of the Symbolic Links It connects with the presence or absence of circular linkage.
Optionally, described device can also include:
Metadata obtains module, for obtaining according to the mapping relations between Symbolic Links metadata corresponding with file The corresponding metadata of file that the Symbolic Links are directed toward.
Optionally, described device can also include:
First return module returns to the corresponding file of file that the Symbolic Links are directed toward for the backpack body by data packet Content;And/or
Second return module returns to the corresponding first number of file that the Symbolic Links are directed toward for the packet header by data packet According to;And/or
Third return module, for returning to newest modification time by the packet header of data packet, the newest modification time is Maximum value in the Symbolic Links and its corresponding modification time of the file of direction.
Optionally, described device can also include:
Read requests receiving module is linked, for receiving link read requests;
Symbolic Links read module, for reading the corresponding Symbolic Links of the link read requests, to obtain the symbol Number link be directed toward the corresponding file name of file.
Optionally, described device can also include:
First copy request receiving module, for receiving the first copy request;
Symbolic Links creation module, for creating new Symbolic Links;The file name that the new Symbolic Links include It is identical as the file name that first copy requests corresponding Symbolic Links to include.
Optionally, described device can also include:
Second copy request receiving module receives the second copy request for Symbolic Links;
File creation module, for creating new general type file;The new general type file may include: institute State the corresponding file content of file that the first copy requests corresponding Symbolic Links to be directed toward.
To sum up, the processing unit of the embodiment of the present application, the file that can be directed toward by Symbolic Links and Symbolic Links are corresponding File name, realize file duplicate removal and file content it is shared, specifically, can be read in response to file read request And the file that return character link is directed toward, it thus not only may be implemented the shared of file pointed by Symbolic Links, but also can be with It avoids the repetition of file to store to a certain extent, and the waste of memory space can be reduced, and memory space can be improved Utilization rate.
The embodiment of the present application also provides a kind of equipment, which may include: one or more processors;It deposits thereon The one or more machine readable medias for containing instruction, when being executed by one or more of processors, so that the equipment Execute method described in Fig. 1 to Fig. 4.In practical applications, which can be used as terminal device, can also be used as server, The example of terminal device may include: smart phone, tablet computer, E-book reader, (dynamic image expert compresses mark to MP3 Quasi- audio level 3, Moving Picture Experts Group Audio Layer III) player, MP4 (dynamic image Expert's compression standard audio level 4, Moving Picture Experts Group Audio Layer IV) it is player, above-knee Type portable computer, vehicle-mounted computer, desktop computer, set-top box, intelligent TV set, wearable device etc., the application are implemented Example is without restriction for specific equipment.
The embodiment of the present application also provides a kind of non-volatile readable storage medium, be stored in the storage medium one or Multiple modules (programs) when the one or more module is used in equipment, can make the equipment execute the application reality Apply the instruction (instructions) of the included step of processing method in the Fig. 1 to Fig. 4 of example.
Fig. 5 is the hardware structural diagram for the terminal device that one embodiment of the application provides.As shown in figure 5, the terminal is set Standby may include: input equipment 1100, processor 1101, output equipment 1102, memory 1103 and at least one communication bus 1104.Communication bus 1104 is for realizing the communication connection between element.Memory 1103 may include high speed RAM memory, It may also further include non-volatile memories NVM, a for example, at least magnetic disk storage can store various journeys in memory 1103 Sequence, for completing various processing functions and realizing the method and step of the present embodiment.
Optionally, above-mentioned processor 1101 can be for example central processing unit (Central Processing Unit, letter Claim CPU), application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), can compile Journey logical device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components It realizes, which is coupled to above-mentioned input equipment 1100 and output equipment 1102 by wired or wireless connection.
Optionally, above-mentioned input equipment 1100 may include a variety of input equipments, such as may include user oriented use At least one of family interface, device oriented equipment interface, the programmable interface of software, camera, sensor.Optionally, should Device oriented equipment interface can be wireline interface for carrying out data transmission between equipment and equipment, can also be and is used for Hardware insertion interface (such as USB interface, serial ports etc.) carried out data transmission between equipment and equipment;Optionally, should towards with The user interface at family for example can be user oriented control button, voice-input device and use for receiving voice input The touch awareness apparatus (such as touch screen, Trackpad with touch sensing function etc.) of family reception user's touch input;It is optional , the programmable interface of above-mentioned software for example can be the entrance for editing or modifying program for user, such as the input of chip Pin interface or input interface etc.;Optionally, above-mentioned transceiver can be rf chip, base with communication function Tape handling chip and dual-mode antenna etc..The audio input device such as microphone can receive voice data.Output equipment 1102 can To include the output equipments such as display, sound equipment.
In the present embodiment, the processor of the terminal device includes for executing each module of data processing equipment in each equipment Function, concrete function and technical effect are referring to above-described embodiment, and details are not described herein again.
Fig. 6 is the hardware structural diagram for the terminal device that one embodiment of the application provides.Fig. 6 is to Fig. 5 in reality A specific embodiment during now.As shown in fig. 6, the terminal device of the present embodiment may include processor 1301 and Memory 1302.
Processor 1301 executes the computer program code that memory 1302 is stored, and realizes that Fig. 1 is extremely in above-described embodiment The processing method of Fig. 4.
Memory 1302 is configured as storing various types of data to support the operation in terminal device.These data Example includes the instruction of any application or method for operating on the terminal device, such as message, picture, video etc.. Memory 1302 may include random access memory (random access memory, abbreviation RAM), it is also possible to further include non- Volatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Optionally, processor 1301 is arranged in processing component 1300.The terminal device can also include: communication component 1303, power supply module 1304, multimedia component 1305, audio component 1306, input/output interface 1307 and/or sensor group Part 1308.Component that terminal device is specifically included etc. is set according to actual demand, and the present embodiment is not construed as limiting this.
The integrated operation of the usual controlling terminal equipment of processing component 1300.Processing component 1300 may include one or more Processor 1301 executes instruction, to complete all or part of the steps of method shown in above-mentioned Fig. 1 to Fig. 4.In addition, processing component 1300 may include one or more modules, convenient for the interaction between processing component 1300 and other assemblies.For example, processing component 1300 may include multi-media module, to facilitate the interaction between multimedia component 1305 and processing component 1300.
Power supply module 1304 provides electric power for the various assemblies of terminal device.Power supply module 1304 may include power management System, one or more power supplys and other with for terminal device generate, manage, and distribute the associated component of electric power.
Multimedia component 1305 includes the display screen of one output interface of offer between terminal device and user.One In a little embodiments, display screen may include liquid crystal display (LCD) and touch panel (TP).If display screen includes touch surface Plate, display screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touchings Sensor is touched to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or cunning The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.
Audio component 1306 is configured as output and/or input audio signal.For example, audio component 1306 includes a wheat Gram wind (MIC), when terminal device is in operation mode, when such as speech recognition mode, microphone is configured as receiving external audio Signal.The received audio signal can be further stored in memory 1302 or send via communication component 1303.One In a little embodiments, audio component 1306 further includes a loudspeaker, is used for output audio signal.
Input/output interface 1307 provides interface between processing component 1300 and peripheral interface module, and above-mentioned periphery connects Mouth mold block can be click wheel, button etc..These buttons may include, but are not limited to: volume button, start button and locking press button.
Sensor module 1308 includes one or more sensors, and the state for providing various aspects for terminal device is commented Estimate.For example, sensor module 1308 can detecte the state that opens/closes of terminal device, the relative positioning of component, Yong Huyu The existence or non-existence of terminal device contact.Sensor module 1308 may include proximity sensor, be configured to do not having Detected the presence of nearby objects when any physical contact, including detection user between terminal device at a distance from.In some implementations In example, which can also be including camera etc..
Communication component 1303 is configured to facilitate the communication of wired or wireless way between terminal device and other equipment.Eventually End equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In one embodiment In, it may include SIM card slot in the terminal device, which step on terminal device for being inserted into SIM card GPRS network is recorded, is communicated by internet with server foundation.
From the foregoing, it will be observed that communication component 1303, audio component 1306 involved in Fig. 6 embodiment and input/output Interface 1307, sensor module 1308 can be used as the implementation of the input equipment in Fig. 5 embodiment.
The embodiment of the present application also provides a kind of operating systems for equipment, as shown in fig. 7, the operating system can wrap It includes: file name determination unit 701, file storage unit 702 and Symbolic Links creating unit 703.
Wherein, file name determination unit 701, for using the corresponding characteristic value of file content as the corresponding file of file Title;
File storage unit 702, for being stored to the file;
Symbolic Links creating unit 703, for creating the Symbolic Links for being directed toward the file;The Symbolic Links include: The corresponding file name of the file.
The embodiment of the present application also provides a kind of operating systems for equipment, as shown in figure 8, the operating system can wrap It includes: receiving unit 801 and document reading unit 802.
Wherein, receiving unit 801, for receiving file read request;The file read request is corresponding with Symbolic Links;
Document reading unit 802, the file being directed toward for reading the Symbolic Links;The Symbolic Links include: meaning To the corresponding file name of file, the corresponding file name of the file can be the corresponding characteristic value of file content.
For Installation practice, apparatus embodiments and operating system embodiment, since it is basic with embodiment of the method Similar, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiments of the present application may be provided as method, apparatus or calculating Machine program product.Therefore, the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
In a typical configuration, the computer equipment includes one or more processors (CPU), input/output Interface, network interface and memory.Memory may include the non-volatile memory in computer-readable medium, random access memory The forms such as device (RAM) and/or Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is to calculate The example of machine readable medium.Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be with Realize that information is stored by any method or technique.Information can be computer readable instructions, data structure, the module of program or Other data.The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or Other magnetic storage devices or any other non-transmission medium can be used for storing the information that can be accessed by terminal device.According to Herein defines, and computer-readable medium does not include non-persistent computer readable media (transitory media), such as The data-signal and carrier wave of modulation.
The embodiment of the present application is referring to according to the method for the embodiment of the present application, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although preferred embodiments of the embodiments of the present application have been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and all change and modification within the scope of the embodiments of the present application.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
It is machine readable to a kind of processing method provided herein, a kind of processing unit, a kind of equipment and one kind above Medium is described in detail, and specific examples are used herein to illustrate the principle and implementation manner of the present application, with The explanation of upper embodiment is merely used to help understand the present processes and its core concept;Meanwhile for the general of this field Technical staff, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion The contents of this specification should not be construed as limiting the present application.

Claims (30)

1. a kind of processing method, which is characterized in that the described method includes:
Using the corresponding characteristic value of file content as the corresponding file name of file, and the file is stored;
The Symbolic Links of the file are directed toward in creation;The Symbolic Links include: the corresponding file name of the file.
2. the method according to claim 1, wherein the method also includes:
Establish the mapping relations between Symbolic Links metadata corresponding with its pointed file.
3. according to the method described in claim 2, it is characterized in that, the metadata includes:
The metadata obtained according to the file, and/or user are directed to the metadata of file setting.
4. method according to any one of claims 1 to 3, which is characterized in that the file that the Symbolic Links are directed toward with it In same or different bucket space.
5. method according to any one of claims 1 to 3, which is characterized in that the file that the Symbolic Links are directed toward with it In same subscriber or the corresponding bucket space of different user.
6. method according to any one of claims 1 to 3, which is characterized in that the type of the file includes: general category Any in type, Symbolic Links type and type of webpage.
7. method according to any one of claims 1 to 3, which is characterized in that be directed toward the symbol of the file in the creation Number link before, the method also includes:
Symbolic Links request to create is authenticated;The Symbolic Links request to create is for creating the symbol for being directed toward the file Link, the Symbolic Links request to create are corresponding with request user and the file;
If the authentication is passed, the Symbolic Links that the file is directed toward in the creation are executed.
8. the method according to the description of claim 7 is characterized in that described authenticate Symbolic Links request to create, comprising:
Detecting the corresponding file of the Symbolic Links request to create whether there is;And/or
Detect whether the request user has access authority for the file;And/or
Detect the Symbolic Links request to create for creation Symbolic Links whether there is circular linkage.
9. according to the method described in claim 8, it is characterized in that, the detection Symbolic Links request to create is for creating Symbolic Links whether there is circular linkage, comprising:
Quantity according to the Symbolic Links request to create for the Symbolic Links of the progressive nesting of Symbolic Links of creation, judges institute State Symbolic Links request to create for creation Symbolic Links whether there is circular linkage.
10. a kind of processing method, which is characterized in that the described method includes:
Receive file read request;The file read request is corresponding with Symbolic Links;
Read the file that the Symbolic Links are directed toward;The Symbolic Links include: the corresponding file name of pointed file, described The corresponding file name of file is the corresponding characteristic value of file content.
11. according to the method described in claim 10, it is characterized in that, it is described read file that the Symbolic Links are directed toward it Before, the method also includes:
The file read request is authenticated;The file read request is corresponding with request user;
If the authentication is passed, the file for reading the Symbolic Links and being directed toward is executed.
12. according to the method for claim 11, which is characterized in that described to be authenticated to the file read request, packet It includes:
Detecting the file that the Symbolic Links are directed toward whether there is;And/or
Detect the access authority whether the request user has the file being directed toward for the Symbolic Links;And/or
The Symbolic Links are detected with the presence or absence of circular linkage.
13. according to the method for claim 11, which is characterized in that the detection Symbolic Links whether there is endless-chain It connects, comprising:
The quantity of Symbolic Links according to the progressive nesting of the Symbolic Links judges the Symbolic Links with the presence or absence of endless-chain It connects.
14. any method in 0 to 13 according to claim 1, which is characterized in that the method also includes:
According to the mapping relations between Symbolic Links metadata corresponding with file, the file pair that the Symbolic Links are directed toward is obtained The metadata answered.
15. any method in 0 to 13 according to claim 1, which is characterized in that the method also includes:
The corresponding file content of file that the Symbolic Links are directed toward is returned by the backpack body of data packet;And/or
The corresponding metadata of file that the Symbolic Links are directed toward is returned by the packet header of data packet;And/or
Newest modification time is returned to by the packet header of data packet, the newest modification time is the Symbolic Links and its direction Maximum value in the corresponding modification time of file.
16. any method in 0 to 13 according to claim 1, which is characterized in that the method also includes:
Receive link read requests;
The corresponding Symbolic Links of the link read requests are read, to obtain the corresponding file of file that the Symbolic Links are directed toward Title.
17. any method in 0 to 13 according to claim 1, which is characterized in that the method also includes:
Receive the first copy request;
Create new Symbolic Links;The file name that the new Symbolic Links include symbol corresponding with the first copy request Number link include file name it is identical.
18. any method in 0 to 13 according to claim 1, which is characterized in that the method also includes:
Receive the second copy request;
Create new general type file;The new general type file includes: that first copy requests corresponding symbol Link the corresponding file content of file being directed toward.
19. a kind of processing unit characterized by comprising
File name determining module, for using the corresponding characteristic value of file content as the corresponding file name of file;
File storage module, for being stored to the file;And
Symbolic Links creation module, for creating the Symbolic Links for being directed toward the file;The Symbolic Links include: the file Corresponding file name.
20. device according to claim 19, which is characterized in that described device further include:
Module is established in mapping, for establish the Symbolic Links with its pointed by mapping between the corresponding metadata of file close System.
21. device according to claim 20, which is characterized in that the metadata includes:
The metadata obtained according to the file, and/or user are directed to the metadata of file setting.
22. a kind of processing unit, which is characterized in that described device includes:
Receiving module, for receiving file read request;The file read request is corresponding with Symbolic Links;And
File read module, the file being directed toward for reading the Symbolic Links;The Symbolic Links include: pointed file pair The file name answered, the corresponding file name of the file are the corresponding characteristic value of file content.
23. device according to claim 22, which is characterized in that described device further include:
File read request authentication module, for the file read module read file that the Symbolic Links are directed toward it Before, the file read request is authenticated;The file read request is corresponding with request user;If the authentication is passed, touch It sends out file read module described and reads the file that the Symbolic Links are directed toward.
24. the device according to claim 22 or 23, which is characterized in that described device further include:
First return module is returned for the backpack body by data packet in the corresponding file of file that the Symbolic Links are directed toward Hold;And/or
Second return module returns to the corresponding metadata of file that the Symbolic Links are directed toward for the packet header by data packet; And/or
Third return module, for returning to newest modification time by the packet header of data packet, the newest modification time is described Maximum value in Symbolic Links and its corresponding modification time of the file of direction.
25. a kind of equipment characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made Obtain method of the equipment execution as described in one or more in claim 1-9.
26. one or more machine readable medias, are stored thereon with instruction, when executed by one or more processors, so that Equipment executes the method as described in one or more in claim 1-9.
27. a kind of operating system for equipment characterized by comprising
File name determination unit, for using the corresponding characteristic value of file content as the corresponding file name of file;
File storage unit, for being stored to the file;And
Symbolic Links creating unit, for creating the Symbolic Links for being directed toward the file;The Symbolic Links include: the file Corresponding file name.
28. a kind of equipment characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made Obtain method of the equipment execution as described in one or more in claim 10-18.
29. one or more machine readable medias, are stored thereon with instruction, when executed by one or more processors, so that Equipment executes the method as described in one or more in claim 10-18.
30. a kind of operating system for equipment characterized by comprising
Receiving unit, for receiving file read request;The file read request is corresponding with Symbolic Links;And
Document reading unit, the file being directed toward for reading the Symbolic Links;The Symbolic Links include: pointed file pair The file name answered, the corresponding file name of the file are the corresponding characteristic value of file content.
CN201711124949.2A 2017-11-14 2017-11-14 Processing method, apparatus, device and machine readable medium Active CN110019010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711124949.2A CN110019010B (en) 2017-11-14 2017-11-14 Processing method, apparatus, device and machine readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711124949.2A CN110019010B (en) 2017-11-14 2017-11-14 Processing method, apparatus, device and machine readable medium

Publications (2)

Publication Number Publication Date
CN110019010A true CN110019010A (en) 2019-07-16
CN110019010B CN110019010B (en) 2023-06-13

Family

ID=67186008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711124949.2A Active CN110019010B (en) 2017-11-14 2017-11-14 Processing method, apparatus, device and machine readable medium

Country Status (1)

Country Link
CN (1) CN110019010B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527802A (en) * 2020-12-22 2021-03-19 北京百度网讯科技有限公司 Soft link method and device based on key value database

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070073638A1 (en) * 2005-09-26 2007-03-29 Bea Systems, Inc. System and method for using soft links to managed content
US20070162419A1 (en) * 2006-01-11 2007-07-12 Samsung Electronics Co., Ltd. Method of creating symoblic link capable of being compatible with file system, and method and apparatus for accessing file or directory by using symbolic link
US20090049459A1 (en) * 2007-08-14 2009-02-19 Microsoft Corporation Dynamically converting symbolic links
CN101751474A (en) * 2010-01-19 2010-06-23 山东高效能服务器和存储研究院 Continuous data protection method based on centralized storage
CN102037444A (en) * 2008-05-20 2011-04-27 思杰系统有限公司 Methods and systems for patching multiple disk images derived from a common base disk image
CN102930056A (en) * 2012-11-21 2013-02-13 华为技术有限公司 Search method and search device for cloud storage system
CN103384256A (en) * 2012-05-02 2013-11-06 天津书生投资有限公司 Cloud storage method and device
US20140201177A1 (en) * 2013-01-11 2014-07-17 Red Hat, Inc. Accessing a file system using a hard link mapped to a file handle
US20160283501A1 (en) * 2013-12-17 2016-09-29 Fujitus Technology Solutions Intellectual Property Gmbh Posix-compatible file system, method of creating a file list and storage device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070073638A1 (en) * 2005-09-26 2007-03-29 Bea Systems, Inc. System and method for using soft links to managed content
US20070162419A1 (en) * 2006-01-11 2007-07-12 Samsung Electronics Co., Ltd. Method of creating symoblic link capable of being compatible with file system, and method and apparatus for accessing file or directory by using symbolic link
US20090049459A1 (en) * 2007-08-14 2009-02-19 Microsoft Corporation Dynamically converting symbolic links
CN102037444A (en) * 2008-05-20 2011-04-27 思杰系统有限公司 Methods and systems for patching multiple disk images derived from a common base disk image
CN101751474A (en) * 2010-01-19 2010-06-23 山东高效能服务器和存储研究院 Continuous data protection method based on centralized storage
CN103384256A (en) * 2012-05-02 2013-11-06 天津书生投资有限公司 Cloud storage method and device
CN102930056A (en) * 2012-11-21 2013-02-13 华为技术有限公司 Search method and search device for cloud storage system
US20140201177A1 (en) * 2013-01-11 2014-07-17 Red Hat, Inc. Accessing a file system using a hard link mapped to a file handle
US20160283501A1 (en) * 2013-12-17 2016-09-29 Fujitus Technology Solutions Intellectual Property Gmbh Posix-compatible file system, method of creating a file list and storage device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527802A (en) * 2020-12-22 2021-03-19 北京百度网讯科技有限公司 Soft link method and device based on key value database
CN112527802B (en) * 2020-12-22 2023-11-10 北京百度网讯科技有限公司 Soft link method and device based on key value database

Also Published As

Publication number Publication date
CN110019010B (en) 2023-06-13

Similar Documents

Publication Publication Date Title
US10509841B2 (en) Inferred user identity in content distribution
US11902601B2 (en) System and techniques for digital data lineage verification
US10354082B2 (en) Document state interface
US10929570B2 (en) Method, apparatus, and electronic device for blockchain-based infringement evidence storage
WO2017113840A1 (en) Information recommending method and device
US10263784B2 (en) Signature verification for data set components using probabilistic data structures
WO2014166283A1 (en) Interaction method and device between browsers and browser
CN103294742A (en) Apparatus and method for determining duplication of content in portable terminal
US9832322B1 (en) Techniques to transform network resource requests to zero rated network requests
CN113259494B (en) File storage method and device, electronic equipment and storage medium
CN102970380A (en) Method for acquiring media data of cloud storage files and cloud storage server
CN110019010A (en) Processing method, device, equipment and machine readable media
CN112100689A (en) Trusted data processing method, device and equipment
US10162488B1 (en) Browser-based media scan
EP3547182A1 (en) Method and apparatus for publishing works on network
CN110413800B (en) Method and equipment for providing novel information
AU2013206622B2 (en) Download management method and device based on Android browser
CN104394210A (en) Direction connection communication method and device
CN110046493A (en) A kind of data processing method, device, equipment and machine readable media
CN111104619B (en) Method for collecting articles and mobile terminal
CN108509811B (en) Identification method and related device of application installation equipment
KR101494431B1 (en) System, device, method and computer readable recording medium for detecting manipulation of a mobile application file
CN113326462A (en) H5 page watermarking method, server, computer equipment and storage medium
CN112765675A (en) Data processing method and device based on block chain
CN112307439A (en) Data storage method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40010844

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant