CN105045653B - A kind of method and device of data movement - Google Patents
A kind of method and device of data movement Download PDFInfo
- Publication number
- CN105045653B CN105045653B CN201510410432.4A CN201510410432A CN105045653B CN 105045653 B CN105045653 B CN 105045653B CN 201510410432 A CN201510410432 A CN 201510410432A CN 105045653 B CN105045653 B CN 105045653B
- Authority
- CN
- China
- Prior art keywords
- data movement
- strategy
- data
- move
- movement
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of data movement method and device, the method includes:Receive the data movement instructions of input;Data movement operations are carried out according to the first strategy according to the move, first strategy includes using move movement directives;Judge whether the data movement operations carried out according to the first strategy run succeeded;When Predicated execution fails, data movement operations are carried out according to the second strategy, second strategy includes using Linux movement directives.The above method realizes movement of the data across subregion, improves the success rate of data movement operations.
Description
Technical field
The present invention relates to computer realm, more particularly to a kind of method and device of data movement.
Background technology
By the development of computer technology in recent years, the processing method of computer program is also constantly progressive therewith, then
There is higher demand to the intelligence degree of operating system and programming software.Especially during being related to data movement,
If a certain data are moved to another address from an address, moving operation usually is carried out using the move orders of Java,
But move movement directives only support the moving operation in same disk partition, if mobile destination address is currently located with data
When address is not belonging to same disk partition, the moving operation for executing data is will be unable to, to cause prodigious puzzlement to user.
Invention content
The present invention provides a kind of method and device of data movement, to improve the success rate of data movement.
According to a first aspect of the embodiments of the present invention, a kind of method of data movement is provided, it may include:
Receive the data movement instructions of input;
Data movement operations are carried out according to the first strategy according to the move, first strategy includes using move
Movement directive;
Judge whether the data movement operations carried out according to the first strategy run succeeded;
When Predicated execution fails, data movement operations are carried out according to the second strategy, second strategy includes using
Linux movement directives.
In one embodiment, the data movement instructions for receiving input, it may include:
Receive the destination address of the data movement of input.
It is in one embodiment, described to carry out data movement operations according to the second strategy, it may include:
Judge that the data are currently located whether address is located at identical disk partition with the destination address;
If so, output prompt message, the prompt message executes unsuccessfully for prompting the user with the operation not by grasping
Make caused by the system failure;
If it is not, carrying out data movement operations according to the second strategy.
According to a second aspect of the embodiments of the present invention, a kind of device of data movement is provided, it may include:
Receiving module, the data movement instructions for receiving input;
First operation module, for carrying out data movement operations according to the first strategy according to the move, described the
One strategy includes using move movement directives;
Judgment module, for judging whether the data movement operations carried out according to the first strategy run succeeded;
Second operation module, for when Predicated execution fail, according to the second strategy progress data movement operations, described the
Two strategies include using Linux movement directives.
In one embodiment, the receiving module, it may include:
Receiving submodule, the destination address of the data movement for receiving input.
In one embodiment, second operation module, it may include:
Judging submodule, for judging that the data are currently located whether address is located at identical magnetic with the destination address
Disk subregion;
Prompting submodule, for being located at identical disk with the destination address when the judgement data are currently located address
When subregion, prompt message is exported, the prompt message executes unsuccessfully for prompting the user with the operation not by operating system
Induced fault;
Mobile submodule, for being located at different magnetic with the destination address when the judgement data are currently located address
When disk subregion, data movement operations are carried out according to the second strategy.
Technical solution provided in an embodiment of the present invention can generate following advantageous effect:Data movement by receiving input refers to
It enables;Data movement operations are carried out according to the first strategy according to the move, first strategy includes being moved using move
Order;Judge whether the data movement operations carried out according to the first strategy run succeeded, if it is not, being carried out according to the second strategy
Data movement operations, second strategy includes using Linux movement directives.To realize movement of the data across subregion, carry
The high success rate of data movement operations.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages can be by the explanations write
Specifically noted structure is realized and is obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Description of the drawings
Attached drawing is used to provide further understanding of the present invention, and a part for constitution instruction, the reality with the present invention
It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is flow chart of the present invention according to the method for the data movement shown in an exemplary embodiment;
Fig. 2 is the flow chart of the method for another data movement of the present invention shown according to an exemplary embodiment;
Fig. 3 is block diagram of the present invention according to the device of the data movement shown in an exemplary embodiment;
Fig. 4 is the block diagram of the device of another data movement of the present invention shown according to an exemplary embodiment;
Fig. 5 is the block diagram of the device of another data movement of the present invention shown according to an exemplary embodiment.
Specific implementation mode
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
According to a first aspect of the embodiments of the present invention, a kind of method of data movement is provided, this method can be used for carry out
In the program or device of data movement, as shown in Figure 1, the method comprising the steps of S101-S103:
In step S101, the data movement instructions of input are received;
In step s 102, data movement operations are carried out according to the first strategy according to move, the first strategy includes adopting
With move movement directives;
In step s 103, judge whether the data movement operations carried out according to the first strategy run succeeded;.
In step S104, when Predicated execution fails, data movement operations, the second strategy packet are carried out according to the second strategy
It includes and uses Linux movement directives.
Wherein, above-mentioned data can be text file, multimedia file, application program or program coding etc., move
In include the destination address of data movement to be carried out.When user's input is to specifying data to carry out mobile instruction, system is connecing
It can give tacit consent to when receiving the move and moving operation is carried out to the data by the move orders of Java.Then, on system can judge
It states whether the data movement operations executed by move orders succeed, if it is determined that the data movement operations execute failure, then continues
The address and carry out whether mobile destination address belongs to same disk partition that the specified data are currently located are judged, if it is determined that two
A address is not belonging to same disk partition, then moving operation is carried out to the data by Linux movement directives, to realize number
According to across subregion movement.
It uses in the prior art and does not know whether mobile front and back position belongs to same magnetic when move order mobile datas
Disk subregion, and the address is distributed by operating system, so only can just be checked and be found when running failure
Problem.Therefore the embodiment of the present invention increases deterministic process after move orders execute, and judges that the specified data are currently located
Address and carry out whether mobile destination address belongs to same disk partition, if it is determined that two addresses are not belonging to same disk point
Area, then automatically by Linux movement directives to the data carry out moving operation, to substantially increase data movement operations at
Power.
In one embodiment, step S101 can be embodied as:
Receive the destination address of the data movement of input.
Wherein, the process for inputting destination address can be that specified file is dragged in the target position that will be moved by mouse
It sets, can also be the instruction code that specified file is moved to destination address by input.
In one embodiment, as shown in Fig. 2, when judgement executes failure according to the data movement operations that the first strategy carries out
When, step S104 can be embodied as step S1041-S1043:
In step S1041, judge that data are currently located whether address is located at identical disk partition with destination address.
If so, in step S1042, prompt message is exported, the operation is prompted the user with and executes unsuccessfully not by operation system
System induced fault.
If it is not, in step S1043, data movement operations are carried out according to the second strategy.
For example, a certain text file in the first file of C disks is moved to the second file in D disks by user's input
Instruction, operating system first carry out from the first file to the second file the data by giving tacit consent to the move orders of Java
Moving operation, then, operating system judge whether the above-mentioned moving operation to data runs succeeded, since move orders can only be held
Data movement operations in the same disk partition of row, failure is executed it is determined that being as a result set to.At this point, operating system judges the number
Whether belong to same disk partition according to the first file and the second file that are currently located, when judgement above-mentioned two file not
When belonging to same disk partition, the moving operation to the data is executed by Linux movement directives.
In another embodiment, a certain text file in the first file of D disks is moved in D disks by user's input
The instruction of second file, operating system first by give tacit consent to Java move orders to the data progress from the first file to
The moving operation of second file.Then, operating system judges whether the above-mentioned moving operation to data runs succeeded, if it is determined that
Failure is executed, operating system can judge whether the first file that the data are currently located and the second file belong to same disk
Subregion.When judging that above-mentioned two file belongs to same disk partition, simultaneously display reminding message is exported, the behaviour is prompted the user with
It executes unsuccessfully not caused by operating system failure.User is easy to associate the reason of operation executes failure to be data at this time
Itself the reason of, is caused, and then user can re-start after checking the problem of removing data side by side to above-mentioned data
Moving operation moves successful possibility to increase data.
The process for increasing step judgement again after move orders execute failure judges that the specified data are currently located
Address and carry out whether mobile destination address belongs to same disk partition, if it is determined that two addresses belong to same disk point
Area, then output and display reminding message, prompt the user with the operation and execute unsuccessfully not caused by operating system failure, convenient for using
It debugs in time and re-starts data movement operations in family.And by manually searching and dividing one by one in compared with the existing technology
The reason of analysing instruction execution failure, the scheme for then selecting counter-measure to be remedied also improve the movement of successful execution data
The efficiency of operation, it is ensured that system can with normal operation, reduce operation not by possibility.If it is determined that two addresses are not belonging to together
One disk partition then carries out moving operation automatically by Linux movement directives to the data, to substantially increase data movement
The success rate of operation.
According to a second aspect of the embodiments of the present invention, as shown in figure 3, providing a kind of device of data movement, it may include:
Receiving module 31, the data movement instructions for receiving input;
First operation module 32, for carrying out data movement operations, the first strategy according to the first strategy according to move
Including using move movement directives;
Judgment module 33, for judging whether the data movement operations carried out according to the first strategy run succeeded;
Second operation module 34, for when Predicated execution fail, according to the second strategy progress data movement operations, second
Strategy includes using Linux movement directives.
In one embodiment, as shown in figure 4, receiving module 31 may include:
Receiving submodule 311, the destination address of the data movement for receiving input.
In one embodiment, as shown in figure 5, the second operation module 34 may include:
Judging submodule 341, for judging that data are currently located whether address is located at identical disk point with destination address
Area;
Prompting submodule 342, for being located at identical disk partition with destination address when judgement data are currently located address
When, prompt message is exported, prompt message executes unsuccessfully for prompting the user with the operation not caused by operating system failure;
Mobile submodule 343, for being located at different disk point with destination address when judgement data are currently located address
Qu Shi carries out data movement operations according to the second strategy.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (6)
1. a kind of method of data movement, which is characterized in that including:
Receive the data movement instructions of input;
Data movement operations are carried out according to the first strategy according to the move, first strategy includes being moved using move
Order, wherein the move movement directives are defaulted as the move orders of Java;
Judge whether the data movement operations carried out according to the first strategy run succeeded;
When Predicated execution fails, data movement operations are carried out according to the second strategy, second strategy includes being moved using Linux
Dynamic order.
2. the method as described in claim 1, which is characterized in that the data movement instructions for receiving input, including:
Receive the destination address of the data movement of input.
3. method as claimed in claim 2, which is characterized in that it is described to carry out data movement operations according to the second strategy, including:
Judge that the data are currently located whether address is located at identical disk partition with the destination address;
If so, output prompt message, the prompt message are not unsuccessfully by operation for prompting the user with the operation and executing
System induced fault;
If it is not, carrying out data movement operations according to the second strategy.
4. a kind of device of data movement, which is characterized in that including:
Receiving module, the data movement instructions for receiving input;
First operation module, for carrying out data movement operations, first plan according to the first strategy according to the move
Slightly include using move movement directives, wherein the move movement directives are defaulted as the move orders of Java;
Judgment module, for judging whether the data movement operations carried out according to the first strategy run succeeded;
Second operation module, for when Predicated execution fails, data movement operations, second plan to be carried out according to the second strategy
Slightly include using Linux movement directives.
5. device as claimed in claim 4, which is characterized in that the receiving module, including:
Receiving submodule, the destination address of the data movement for receiving input.
6. device as claimed in claim 5, which is characterized in that second operation module, including:
Judging submodule, for judging that the data are currently located whether address is located at identical disk point with the destination address
Area;
Prompting submodule, for being located at identical disk partition with the destination address when the judgement data are currently located address
When, prompt message is exported, the prompt message executes unsuccessfully for prompting the user with the operation not by operating system failure
It is caused;
Mobile submodule, for being located at different disk point with the destination address when the judgement data are currently located address
Qu Shi carries out data movement operations according to the second strategy.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510410432.4A CN105045653B (en) | 2015-07-13 | 2015-07-13 | A kind of method and device of data movement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510410432.4A CN105045653B (en) | 2015-07-13 | 2015-07-13 | A kind of method and device of data movement |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105045653A CN105045653A (en) | 2015-11-11 |
CN105045653B true CN105045653B (en) | 2018-09-25 |
Family
ID=54452217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510410432.4A Expired - Fee Related CN105045653B (en) | 2015-07-13 | 2015-07-13 | A kind of method and device of data movement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105045653B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5408633A (en) * | 1989-03-29 | 1995-04-18 | Hitachi, Ltd. | Data processing system and method for transfer and merging data in memory cards |
CN101183299A (en) * | 2006-11-16 | 2008-05-21 | 三星电子株式会社 | Apparatus and method for managing data |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9116634B2 (en) * | 2011-06-10 | 2015-08-25 | International Business Machines Corporation | Configure storage class memory command |
US9569612B2 (en) * | 2013-03-14 | 2017-02-14 | Daniel Shawcross Wilkerson | Hard object: lightweight hardware enforcement of encapsulation, unforgeability, and transactionality |
-
2015
- 2015-07-13 CN CN201510410432.4A patent/CN105045653B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5408633A (en) * | 1989-03-29 | 1995-04-18 | Hitachi, Ltd. | Data processing system and method for transfer and merging data in memory cards |
CN101183299A (en) * | 2006-11-16 | 2008-05-21 | 三星电子株式会社 | Apparatus and method for managing data |
Also Published As
Publication number | Publication date |
---|---|
CN105045653A (en) | 2015-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10042669B2 (en) | Concurrent execution of a computer software application along multiple decision paths | |
CN109726093B (en) | Method, apparatus and computer program product for executing test cases | |
US9514034B1 (en) | Ordered test execution to enable faster feedback | |
US20220182406A1 (en) | Analysis apparatus, analysis system, analysis method, and non-transitory computer readable medium storing program | |
WO2018144403A2 (en) | Resource management for virtual machines in cloud computing systems | |
CN103677870B (en) | Method for upgrading system and the system using this method upgrading | |
CN105843819B (en) | Data export method and device | |
US9298430B2 (en) | Method of compiling program to be executed on multi-core processor, and task mapping method and task scheduling method of reconfigurable processor | |
CN106020905B (en) | Method and system for developing and updating microcontroller firmware | |
CN103856548A (en) | Dynamic resource scheduling method and dynamic resource scheduler | |
US20180246764A1 (en) | Platform for hierarchy cooperative computing | |
CN105630491A (en) | Method and device for changing functions of program | |
US10785109B1 (en) | Automated generation of a network service design | |
CN111143031A (en) | Method and device for changing capacity of virtual machine | |
US20160132770A1 (en) | Early generation of individuals to accelerate genetic algorithms | |
CN110046100B (en) | Packet testing method, electronic device and medium | |
CN105700872B (en) | The control method and system of intelligent terminal application program updating | |
CN102750493B (en) | Access right control method, Apparatus and system | |
CN105045653B (en) | A kind of method and device of data movement | |
CN110308914A (en) | Upgrade processing method, device, equipment, system and computer readable storage medium | |
US20130342549A1 (en) | Apparatus and method for processing rendering data | |
US9262186B2 (en) | Code rearranger and method for rearranging code for a virtual machine | |
CN106371899A (en) | Thread parameter processing method and apparatus | |
KR102185692B1 (en) | Terminal appratus, server, browser of terminal appratus operaing system and browser operaing method of terminal apparatus | |
US10950328B2 (en) | Method, apparatus and system for detecting structural variations |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A method and device for data movement Effective date of registration: 20210104 Granted publication date: 20180925 Pledgee: Inner Mongolia Huipu Energy Co.,Ltd. Pledgor: WUXI TVMINING MEDIA SCIENCE & TECHNOLOGY Co.,Ltd. Registration number: Y2020990001517 |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180925 Termination date: 20210713 |