CN107341269A - A kind of file storage location management method, device and operation system - Google Patents
A kind of file storage location management method, device and operation system Download PDFInfo
- Publication number
- CN107341269A CN107341269A CN201710619959.7A CN201710619959A CN107341269A CN 107341269 A CN107341269 A CN 107341269A CN 201710619959 A CN201710619959 A CN 201710619959A CN 107341269 A CN107341269 A CN 107341269A
- Authority
- CN
- China
- Prior art keywords
- file
- storage location
- file storage
- type
- node
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1727—Details of free space management performed by the file system
Abstract
A kind of file storage location management method, device and operation system provided in an embodiment of the present invention, belong to file management field.Methods described includes:File storage location configuration order is received, the file storage location configuration order includes multiple file storage locations corresponding to file type and the file type;Store multiple file storage locations corresponding to the file type;Current file storage location of the currently available file storage location as the file of the file type is selected from the multiple file storage location.This method realizes the storage location according to available storage location dynamic configuration file, improves the flexibility of file storage location management.
Description
Technical field
The present invention relates to data communication field, in particular to a kind of file storage location management method, device and industry
Business system.
Background technology
In network communication equipment system, many different types of system files be present, such as:The image text that system starts
Part, the customized configuration file of configuration file, business process of the various system start-up parameters of storage and alternative document etc..These are
System file each carrying different functions, and to the access rights of user, there is also different limitations.Under normal circumstances, system
File is all to be stored in fixed storage location according to the business scenario of reality, causes the storage location management of system file
Underaction.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of file storage location management method, device and industry
Business system, to lift the flexibility of file storage location management.
In a first aspect, the embodiments of the invention provide a kind of file storage location management method, methods described, including:Connect
File storage location configuration order is received, the file storage location configuration order includes file type and the file type pair
The multiple file storage locations answered;Store multiple file storage locations corresponding to the file type;Deposited from the multiple file
Storage space puts the current file storage position of file of the one currently available file storage location of middle selection as the file type
Put.
Second aspect, the embodiments of the invention provide a kind of file storage location managing device, described device, including:Disappear
Processing unit is ceased, for receiving file storage location configuration order, the file storage location configuration order includes file type
And multiple file storage locations corresponding to the file type;Memory cell is more corresponding to the file type for storing
Individual file storage location;Storage location setting unit, for from the multiple file storage location select one it is currently available
Current file storage location of the file storage location as the file of the file type.
The third aspect, the embodiments of the invention provide a kind of operation system, the operation system include host node and from
Node;The host node, for receiving file storage location configuration order, the file storage location configuration order includes file
Multiple file storage locations corresponding to type and the file type, store multiple file storages corresponding to the file type
Position, selected from the multiple file storage location described in the currently available file storage location conduct of a host node
The current file storage location of the file of file type;The host node, it is additionally operable to the file type and the file
Multiple file storage locations corresponding to type are synchronized to described from node;It is described from node, for being stored from the multiple file
Selected in position according to priority orders set in advance described in one from the currently available file storage location of node as institute
State the storage location of the file of file type.
File storage location management method, device and operation system provided in an embodiment of the present invention, are being received including text
After the file storage location configuration order of multiple file storage locations corresponding to part type and the file type, described in storage
Multiple file storage locations corresponding to file type, and select a host node to work as from the multiple file storage location
The current file storage location of file of the preceding available file storage location as the file type, it is achieved thereby that according to can
The storage location of storage location dynamic configuration file, improves the flexibility of file storage location management.
Other features and advantages of the present invention will illustrate in subsequent specification, also, partly become from specification
It is clear that or by implementing understanding of the embodiment of the present invention.The purpose of the present invention and other advantages can be by saying what is write
Specifically noted structure is realized and obtained in bright book, claims and accompanying drawing.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is a kind of structural representation of operation system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of file storage location management method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another file storage location management method provided in an embodiment of the present invention;
Fig. 4 is a kind of structured flowchart of file storage location managing device provided in an embodiment of the present invention;
Fig. 5 is the structured flowchart of another file storage location managing device provided in an embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Generally exist
The component of the embodiment of the present invention described and illustrated in accompanying drawing can be configured to arrange and design with a variety of herein.
Therefore, below the detailed description of the embodiments of the invention to providing in the accompanying drawings be not intended to limit it is claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on embodiments of the invention, people in the art
The every other embodiment that member is obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.Meanwhile the present invention's
In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.
As shown in figure 1, a kind of operation system 100 provided in an embodiment of the present invention, the operation system 100 includes host node
110 and from node 120.
The host node 110, for receiving file storage location configuration order, the file storage location configuration order bag
Multiple file storage locations corresponding to including file type and the file type, store multiple texts corresponding to the file type
Part storage location, the currently available file storage location of a host node is selected to make from the multiple file storage location
For the current file storage location of the file of the file type.Wherein, file storage location configuration order is sent by client.
The host node 110, it is additionally operable to multiple file storages corresponding to the file type and the file type
Position is synchronized to described from node 120.
It is described from node 120, for being selected from the multiple file storage location according to priority set in advance
Storage location described in one from the currently available file storage location of node as the file of the file type.
It should be noted that it can be configured in the present embodiment from the quantity of node according to actual conditions.In the business system
In system, usual host node be responsible for client and it is each communicated from node, by the Data distributing on host node by visitor
The file storage location configuration data that family end is sent is distributed to from node, to realize that single client is controlled in the operation system
All service nodes.
And in order to lift the configuration flexibility of operation system, host node and from can mutually be changed between node, when main section
Point be switched to from node when, then need to close the Data distributing of this node, that is, stop (including new to other from node
Host node) distribution data, while turn-on data subscription service, to receive the file storage location configuration of new host node distribution
Data.
Referring to Fig. 2, a kind of file storage location management method provided in an embodiment of the present invention, applied to host node, institute
Method is stated, including:
Step S210:File storage location configuration order is received, the file storage location configuration order includes files classes
Multiple file storage locations corresponding to type and the file type.
Wherein, this document storage location configuration order is sent by client.And it can match somebody with somebody for the file of different types
Different file storage locations is put, and can be with the currently available storage location of flexible configuration for the ease of host node, one species
The file of type is corresponding with multiple file storage locations.For example, the image file started for system, can configure SD (Secure
Digital Memory Card) card, multiple file storage locations such as USB external equipments and local hard drive.
Step S220:Store multiple file storage locations corresponding to the file type.
Wherein, host node stores multiple file storage locations corresponding to the file type in a manner of persistence.For example,
Can be by multiple file storage location storages corresponding to the file type into database, and the database can be arranged on master
In node, it can also be separately provided outside independently of each node.
Step S230:The file storage that a host node is currently available is selected from the multiple file storage location
Current file storage location of the position as the file of the file type.Or by taking the image file that system starts as an example, when
Host node detects that the external storages of USB are available, multiple files that the file storage location configuration order that client is sent includes
When storage location includes USB external equipments and its highest priority, then USB external equipments are arranged to system startup by host node
The current file storage location of image file.
Wherein, as a kind of mode, when setting multiple file storage locations of file of a certain type, can give should
Multiple and storage location configuration preference level order.The host node selects a master from the multiple file storage location
During current file storage location of the currently available file storage location of node as the file of the file type, according to advance
The priority orders of setting select text of the currently available file storage location of a host node as the file type
The current file storage location of part.
For example, multiple file storage location priority orders of the image file started for system are followed successively by SD card, USB
External equipment and local hard drive.Then main frame point can first determine whether this storage location of SD card can use, if it is not,
USB external equipments are then judged again, and when host node USB external equipments are available, USB external equipments are arranged to system startup
The current file storage location of image file.
As a kind of mode, the host node detect it is local have it is new when supporting storage location, according to described preferential
Level order judges whether the priority of the new available storage location is higher than the priority of the current file storage location, such as
Fruit is higher than, then new current file of the host node using the new available storage location as the file of the file type
Storage location.If be not higher than, any operation is not made.
For example, when being pre-configured with the file storage location of host node, host node does not support the mode storage system of SD card
The image file of startup, and support USB external equipments store, then configure host node system start image file ought be above
Part storage location is USB external equipments.And after the storage for supporting SD is updated to host node, it can be deposited in a manner of SD card
The image file that storage system starts.The storage mode that then may determine that SD card is more corresponding to the image file of system startup
One in individual file storage location, if it is, further relatively SD card storage and the priority of USB external equipments, when
When SD card storage priority is higher, then SD card is arranged to the current file storage location of the image file of system startup.If
The priority of USB external equipments is higher, then host node does not do other operations.
As a kind of mode, the host node judges that the current file storage location is unavailable in embodiments of the present invention
When, the currently available file storage location of a host node is selected from the multiple file storage location again as institute
State the new current file storage location of the file of file type.
For example, when being pre-configured with the file storage location of host node, the image file that the system of host node starts is configured
Current file storage location be USB external equipments.And when host node detects that USB external equipments are unavailable, host node can
File storage location to select a host node currently available from the multiple file storage location again is used as institute
The new current file storage location of the file of file type is stated, for example, can be hard from SD card, USB external equipments and local
In disk, the current file storage location for the image file that selection SD card starts for system.
Further, methods described, in addition to:The host node is corresponding by the file type and the file type
Multiple file storage locations be synchronized to from node, so as to it is described from node from the multiple file storage location according to advance
The priority orders of setting select the text from the currently available file storage location of node as the file type described in one
The storage location of part.
It is appreciated that host node is after the above steps, the implementing result of each step can be returned to visitor
Family end.
It should be noted that host node operation operating system can have it is a variety of, can be linux operating systems can also
For operating systems such as Windows, Vxworks.Above-mentioned steps can be completed by different processes in the master node.On for example,
Stating step S210 can be performed by the command process process in host node, and step S220 can be held by system file storage location
Longization data management process perform, and other steps can by host node service processes perform, and different processes it
Between can be in communication with each other.It is appreciated that the execution that above-mentioned multiple processes carry out corresponding step is also corresponding with from node.
File storage location management method provided in an embodiment of the present invention, receiving including file type and the text
After the file storage location configuration order of multiple file storage locations corresponding to part type, store more corresponding to the file type
Individual file storage location, and the currently available file storage of a host node is selected from the multiple file storage location
Current file storage location of the position as the file of the file type, it is achieved thereby that according to available storage location dynamic
The storage location of configuration file, improve the flexibility of file storage location management.
Referring to Fig. 3, a kind of file storage location management method provided in an embodiment of the present invention, methods described, including:
Step S310 receives file storage location configuration order, and the file storage location configuration order includes file type
And multiple file storage locations corresponding to the file type.
Step S320:Verify whether multiple file storage locations corresponding to the file type and the file type have
Effect,
Step S330:Multiple file storage locations corresponding to the file type are stored if it is valid, performing.
Step S340:The file storage that a host node is currently available is selected from the multiple file storage location
Current file storage location of the position as the file of the file type.
Step S350:If invalid, return to processing failure to the terminal for sending the file storage location configuration order and carry
Show information.
File storage location management method provided in an embodiment of the present invention, receiving including file type and the text
The file storage location configuration order of multiple file storage locations corresponding to part type, and verify having for multiple file storage locations
After effect property, multiple file storage locations corresponding to the file type are stored, and selected from the multiple file storage location
The current file storage location of file of the currently available file storage location of one host node as the file type,
It is achieved thereby that according to the storage location of available storage location dynamic configuration file, the spirit of file storage location management is improved
Activity.
Referring to Fig. 4, a kind of file storage location managing device 400 provided in an embodiment of the present invention, described device 400,
Including:Message processing unit 410, memory cell 420, storage location setting unit 430 and file distributing unit 440.
Wherein, message processing unit 410, for receiving file storage location configuration order, the file storage location is matched somebody with somebody
Putting order includes multiple file storage locations corresponding to file type and the file type;
Memory cell 420, for storing multiple file storage locations corresponding to the file type;
Storage location setting unit 430, for selecting a host node to work as from the multiple file storage location
The current file storage location of file of the preceding available file storage location as the file type.
As a kind of mode, the storage location setting unit 430, specifically for from the multiple file storage location
The currently available file storage location of a host node is selected as the file according to priority orders set in advance
The current file storage location of the file of type.
As a kind of mode, the storage location setting unit 430, being additionally operable to detect locally has new available storage position
When putting, whether the priority for judging the new available storage location according to the priority orders deposits higher than the current file
The priority that storage space is put, if it is, then the storage location setting unit 430 is using the new available storage location as institute
State the new current file storage location of the file of file type.
As a kind of mode, the storage location setting unit 430, it is additionally operable to judge the current file storage location not
When available, the currently available file storage location of a host node is selected to make from the multiple file storage location again
For the new current file storage location of the file of the file type.
File distributing unit 440, for multiple files corresponding to the file type and the file type to be stored
Position is synchronized to from node, so as to it is described from node from the multiple file storage location it is suitable according to priority set in advance
Sequence selects the storage location from the currently available file storage location of node as the file of the file type described in one.
Referring to Fig. 5, a kind of file storage location managing device 500 provided in an embodiment of the present invention, described device 500,
Including:Message processing unit 510, Information Authentication unit 520, memory cell 530, information alert unit 540 and storage location
Setting unit 550.
Message processing unit 510, for receiving file storage location configuration order, the file storage location configuration order
Including multiple file storage locations corresponding to file type and the file type.
Information Authentication unit 520, for verifying that multiple files corresponding to the file type and the file type are deposited
Whether storage space puts effective.
Memory cell 530, verified for Information Authentication unit 520 corresponding to the file type and the file type
When multiple file storage locations are effective, multiple file storage locations corresponding to the file type are stored.
Information alert unit 540, the file type and the file type pair are verified for Information Authentication unit 520
When the multiple file storage locations answered are invalid, lost for returning to processing to the terminal for sending the file storage location configuration order
Lose prompt message.
Storage location setting unit 550, for selecting a host node to work as from the multiple file storage location
The current file storage location of file of the preceding available file storage location as the file type.
In summary, file storage location management method, device and operation system provided in an embodiment of the present invention, are being received
To after including the file storage location configuration order of multiple file storage locations corresponding to file type and the file type,
Multiple file storage locations corresponding to the file type are stored, and are selected from the multiple file storage location described in one
Current file storage location of the currently available file storage location of host node as the file of the file type, so as to realize
According to the storage location of available storage location dynamic configuration file, the flexibility of file storage location management is improved.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists
Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing
It is further defined and explained.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
Claims (12)
- A kind of 1. file storage location management method, it is characterised in that methods described, including:File storage location configuration order is received, the file storage location configuration order includes file type and the file Multiple file storage locations corresponding to type;Store multiple file storage locations corresponding to the file type;A currently available file storage location is selected from the multiple file storage location as the file type The current file storage location of file.
- 2. according to the method for claim 1, it is characterised in that store multiple file storage positions corresponding to the file type Before the step of putting, in addition to:Verify whether multiple file storage locations corresponding to the file type and the file type are effective, if effectively, Then perform and store multiple file storage locations corresponding to the file type;If invalid, to the transmission file storage location The terminal of configuration order returns to processing failure prompt message.
- 3. method according to claim 1 or 2, it is characterised in that one is selected from the multiple file storage location The step of current file storage location of the currently available file storage location as the file of the file type, including:Select a host node currently available according to priority orders set in advance from the multiple file storage location Current file storage location of the file storage location as the file of the file type.
- 4. according to the method for claim 3, it is characterised in that methods described, in addition to:When detecting that there is new available storage location local, the new available storage location is judged according to the priority orders Priority whether be higher than the priority of the current file storage location, if it is, then by the new available storage position Put the new current file storage location of the file as the file type.
- 5. according to the method for claim 1, it is characterised in that methods described, in addition to:When judging that the current file storage location is unavailable, one is selected from the multiple file storage location again currently New current file storage location of the available file storage location as the file of the file type.
- A kind of 6. file storage location managing device, it is characterised in that described device, including:Message processing unit, for receiving file storage location configuration order, the file storage location configuration order includes text Multiple file storage locations corresponding to part type and the file type;Memory cell, for storing multiple file storage locations corresponding to the file type;Storage location setting unit, for selecting the currently available file of a host node from the multiple file storage location Current file storage location of the storage location as the file of the file type.
- 7. device according to claim 6, it is characterised in that described device, in addition to Information Authentication unit and information Tip element;Described information authentication unit, for verifying multiple file storage positions corresponding to the file type and the file type Put whether effectively, if it is valid, the memory cell, stores multiple file storage locations corresponding to the file type;If invalid, described information Tip element, at the terminal return to the transmission file storage location configuration order Reason failure prompt message.
- 8. the device according to claim 6 or 7, it is characterised in that the storage location setting unit, specifically for from institute State in multiple file storage locations and select the currently available file of a host node according to priority orders set in advance Current file storage location of the storage location as the file of the file type.
- 9. device according to claim 8, it is characterised in that the storage location setting unit, be additionally operable to detect this When there is new available storage location on ground, according to the priority orders judge the new available storage location priority whether Higher than the priority of the current file storage location, if it is, then the host node is by the new available storage location New current file storage location as the file of the file type.
- 10. device according to claim 6, it is characterised in that the storage location setting unit, be additionally operable to described in judgement When current file storage location is unavailable, a currently available file is selected to deposit from the multiple file storage location again Storage space puts the new current file storage location of the file as the file type.
- 11. device according to claim 6, it is characterised in that described device, in addition to:File distributing unit, for multiple file storage locations corresponding to the file type and the file type is synchronous To from node, from the multiple file storage location one is selected according to priority orders set in advance from node so as to described The storage location of the individual file from the currently available file storage location of node as the file type.
- 12. a kind of operation system, it is characterised in that the operation system includes host node and from node;The host node, including the file storage location managing device described in claim any one of 6-11;The host node, it is additionally operable to multiple file storage locations corresponding to the file type and the file type is synchronous To described from node;It is described from node, for selecting an institute according to priority orders set in advance from the multiple file storage location State the storage location as the file of the file type from the currently available file storage location of node.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710619959.7A CN107341269A (en) | 2017-07-26 | 2017-07-26 | A kind of file storage location management method, device and operation system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710619959.7A CN107341269A (en) | 2017-07-26 | 2017-07-26 | A kind of file storage location management method, device and operation system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107341269A true CN107341269A (en) | 2017-11-10 |
Family
ID=60217612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710619959.7A Pending CN107341269A (en) | 2017-07-26 | 2017-07-26 | A kind of file storage location management method, device and operation system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107341269A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108513197A (en) * | 2018-04-11 | 2018-09-07 | 四川斐讯信息技术有限公司 | A kind of data-storage system and date storage method of intelligent earphone |
CN110182528A (en) * | 2019-04-11 | 2019-08-30 | 上海快仓智能科技有限公司 | Go out warehousing control method and handling system for shelf array |
-
2017
- 2017-07-26 CN CN201710619959.7A patent/CN107341269A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108513197A (en) * | 2018-04-11 | 2018-09-07 | 四川斐讯信息技术有限公司 | A kind of data-storage system and date storage method of intelligent earphone |
CN110182528A (en) * | 2019-04-11 | 2019-08-30 | 上海快仓智能科技有限公司 | Go out warehousing control method and handling system for shelf array |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102713886B (en) | The roaming application of crossing over multiple computing equipments arranges | |
US10841159B2 (en) | Robust service deployment | |
CN102098233B (en) | Method and system for controlling communication window in instant messenger | |
CN107291486A (en) | The installation method and device of a kind of operating system | |
CN110244901A (en) | Method for allocating tasks and device, distributed memory system | |
US20160191309A1 (en) | Cloud system configuration method, server and device | |
US20210209069A1 (en) | Method, device, and system for processing distributed data, and machine readable medium | |
CN110598107A (en) | Management method of query system and computer storage medium | |
CN110287146A (en) | Using the method, equipment and computer storage medium of downloading | |
CN107341269A (en) | A kind of file storage location management method, device and operation system | |
CN103562876A (en) | Redirecting requests to secondary location during temporary outage | |
CN108512930A (en) | A kind of management method of shared file, device, server and storage medium | |
US9577967B2 (en) | Method and system for managing an informational site using a social networking application | |
CN112685613B (en) | Resource package query method and device and information processing system | |
CN106330492A (en) | Method, device and system of configuring user equipment forwarding table | |
CN108810143A (en) | A kind of method, system and device of client load equilibrium mount virtual IP | |
CN108319679B (en) | Method and device for generating primary key | |
CN107168751A (en) | Application processing method and apply processing unit | |
US8037137B2 (en) | Method and system for efficient attachment of files to electronic mail messages | |
US7917916B2 (en) | IT administrator initiated remote hardware independent imaging technology | |
CN111126604A (en) | Model training method, device, server and storage medium | |
CN107302459A (en) | Method for processing business and system | |
CN111338752B (en) | Container adjusting method and device | |
US11622040B2 (en) | System and method for projective channel hopping | |
CN107423136A (en) | Resource instances distribution 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171110 |