CN105045653A - Data moving method and apparatus - Google Patents

Data moving method and apparatus Download PDF

Info

Publication number
CN105045653A
CN105045653A CN201510410432.4A CN201510410432A CN105045653A CN 105045653 A CN105045653 A CN 105045653A CN 201510410432 A CN201510410432 A CN 201510410432A CN 105045653 A CN105045653 A CN 105045653A
Authority
CN
China
Prior art keywords
data
strategy
data movement
movement operations
destination address
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
CN201510410432.4A
Other languages
Chinese (zh)
Other versions
CN105045653B (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.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media Technology Co 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 Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201510410432.4A priority Critical patent/CN105045653B/en
Publication of CN105045653A publication Critical patent/CN105045653A/en
Application granted granted Critical
Publication of CN105045653B publication Critical patent/CN105045653B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data moving method and apparatus. The method comprises: receiving an input data moving instruction; according to the moving instruction, performing data moving operation by a first policy, wherein the first policy comprises the adoption of a move command; judging whether the data moving operation performed by the first policy is performed successfully; and when judging that the data moving operation is performed unsuccessfully, performing data moving operation by a second policy, wherein the second policy comprises the adoption of a Linux move command. The method realizes cross-zone moving of data and increases the success rate of the data moving operation.

Description

A kind of method of data mobile and device
Technical field
The present invention relates to computer realm, particularly a kind of method of data mobile and device.
Background technology
Through the development of computer technology in recent years, to the disposal route also constantly progress thereupon of computer program, so had higher demand to the intelligence degree of operating system and programming software.Especially in the process relating to data mobile, if when a certain data are moved to another address from an address, usually the move order of Java is utilized to carry out moving operation, but move movement directive only supports the mobile operation in same disk partition, if when the destination address of movement and the current address of data do not belong to same disk partition, the mobile operation of data cannot be performed, thus cause very large puzzlement to user.
Summary of the invention
The invention provides a kind of method and device of data mobile, in order to improve the success ratio of data mobile.
According to the first aspect of the embodiment of the present invention, provide a kind of method of data mobile, can comprise:
Receive the data movement instructions of input;
Carry out data movement operations according to described move according to the first strategy, described first strategy comprises employing move movement directive;
Judge whether the described data movement operations carried out according to the first strategy runs succeeded;
When Predicated execution failure, carry out data movement operations according to the second strategy, described second strategy comprises employing Linux movement directive.
In one embodiment, the described data movement instructions receiving input, can comprise:
Receive the destination address of the data mobile of input.
In one embodiment, describedly carry out data movement operations according to the second strategy, can comprise:
Judge whether the current address of described data is positioned at identical disk partition with described destination address;
If so, export information, described information is used for pointing out described operation to perform unsuccessfully not caused by operating system failure to user;
If not, data movement operations is carried out according to the second strategy.
According to the second aspect of the embodiment of the present invention, provide a kind of device of data mobile, can comprise:
Receiver module, for receiving the data movement instructions of input;
First operational module, for carrying out data movement operations according to described move according to the first strategy, described first strategy comprises employing move movement directive;
Judge module, for judging whether the described data movement operations carried out according to the first strategy runs succeeded;
Second operational module, for when Predicated execution is failed, carries out data movement operations according to the second strategy, and described second strategy comprises employing Linux movement directive.
In one embodiment, described receiver module, can comprise:
Receive submodule, for receiving the destination address of the data mobile of input.
In one embodiment, described second operational module, can comprise:
Judge submodule, for judging whether the current address of described data is positioned at identical disk partition with described destination address;
Prompting submodule, for when judging that the current address of described data is positioned at identical disk partition with described destination address, exports information, and described information is used for pointing out described operation to perform unsuccessfully not caused by operating system failure to user;
Mover module, for when judging that the current address of described data is positioned at not identical disk partition with described destination address, carries out data movement operations according to the second strategy.
The technical scheme that the embodiment of the present invention provides can produce following beneficial effect: by receiving the data movement instructions of input; Carry out data movement operations according to described move according to the first strategy, described first strategy comprises employing move movement directive; Judge whether the described data movement operations carried out according to the first strategy runs succeeded, and if not, carries out data movement operations according to the second strategy, described second strategy comprises employing Linux movement directive.Thus achieve the movement of data across subregion, improve the success ratio of data movement operations.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the method for the data mobile of the present invention according to an exemplary embodiment;
Fig. 2 is the process flow diagram of the method for another data mobile of the present invention according to an exemplary embodiment;
Fig. 3 is the block diagram of the device of the data mobile of the present invention according to an exemplary embodiment;
Fig. 4 is the block diagram of the device of another data mobile of the present invention according to an exemplary embodiment;
Fig. 5 is the block diagram of the device of another data mobile of the present invention according to an exemplary embodiment.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
According to the first aspect of the embodiment of the present invention, provide a kind of method of data mobile, in the program that the method can be used for carrying out data mobile or device, as shown in Figure 1, the method comprising the steps of S101-S103:
In step S101, receive the data movement instructions of input;
In step s 102, carry out data movement operations according to move according to the first strategy, the first strategy comprises employing move movement directive;
In step s 103, judge whether the data movement operations carried out according to the first strategy runs succeeded; .
In step S104, when Predicated execution failure, carry out data movement operations according to the second strategy, the second strategy comprises employing Linux movement directive.
Wherein, above-mentioned data can be text, multimedia file, application program or program coding etc., comprise the destination address for carrying out data mobile in move.When the instruction of user's input to specific data movement, system can be given tacit consent to when receiving this move and moves operation by the move order of Java to these data.Subsequently, system can judge that whether the data movement operations performed above by move order is successful, if judge, this data movement operations performs failure, then continue to judge whether the address at the current place of this specific data belongs to same disk partition with the destination address of carrying out movement, if judge, two addresses do not belong to same disk partition, then by Linux movement directive, operation is moved to these data, thus achieve moving across subregion of data.
Adopt in the prior art during move order Mobile data and do not know whether the position of mobile front and back belongs to same disk partition, and this address is distributed by operating system, so only when running unsuccessfully, just can carry out checking and pinpointing the problems.Therefore the embodiment of the present invention adds deterministic process after move order performs, whether the address judging the current place of this specific data and the destination address of carrying out movement belong to same disk partition, if judge, two addresses do not belong to same disk partition, then automatically, by Linux movement directive, operation is moved to these data, thus substantially increase the success ratio of data movement operations.
In one embodiment, step S101 can be embodied as:
Receive the destination address of the data mobile of input.
Wherein, the process of input destination address can be that to be pulled into by specified file by mouse will the target location of movement, also can be the instruction code that specified file is moved to destination address by input.
In one embodiment, as shown in Figure 2, when judging that the data movement operations carried out according to the first strategy performs unsuccessfully, step S104 can be embodied as step S1041-S1043:
In step S1041, judge whether the current address of data is positioned at identical disk partition with destination address.
If so, in step S1042, export information, point out this operation to perform unsuccessfully not caused by operating system failure to user.
If not, in step S1043, carry out data movement operations according to the second strategy.
Such as, a certain text in C dish first file is moved to the instruction of the second file in D dish by user's input, first operating system carry out operating from the mobile of the first file to the second file to these data by the move order giving tacit consent to Java, subsequently, operating system judges whether the above-mentioned mobile operation to data runs succeeded, because move order can only perform the data movement operations in same disk partition, so result of determination is decided to be perform failure.Now, operating system judges whether first file at the current place of these data and the second file belong to same disk partition, when judging that above-mentioned two files do not belong to same disk partition, performs the mobile operation to these data by Linux movement directive.
In another embodiment, a certain text in D dish first file is moved to the instruction of the second file in D dish by user's input, and first operating system carry out operating from the mobile of the first file to the second file to these data by the move order giving tacit consent to Java.Subsequently, operating system judges whether the above-mentioned mobile operation to data runs succeeded, if Predicated execution failure, operating system can judge whether first file at the current place of these data and the second file belong to same disk partition.When judging that above-mentioned two files belong to same disk partition, exporting and display reminding message, pointing out this operation to perform unsuccessfully not caused by operating system failure to user.Now user is easy to associate the failed reason of operation execution is caused by the reason of data itself, then user is after inspection is side by side except Problems existing in data, the mobile operation to above-mentioned data can be re-started, thus increase the successful possibility of data mobile.
Namely after move order performs unsuccessfully, turn increase the process that a step judges, whether the address judging the current place of this specific data and the destination address of carrying out movement belong to same disk partition, if judge, two addresses belong to same disk partition, then export and display reminding message, point out this operation to perform unsuccessfully not caused by operating system failure to user, be convenient to user and fix a breakdown in time and re-start data movement operations.And perform failed reason relative in prior art by manually searching also analysis instruction one by one, counter-measure is then selected to carry out the scheme remedied, also improve the efficiency of successful execution data movement operations, guarantee that system can normally be run, reduce the possibility run and do not pass through.If judge, two addresses do not belong to same disk partition, then automatically move operation by Linux movement directive to these data, thus substantially increase the success ratio of data movement operations.
According to the second aspect of the embodiment of the present invention, as shown in Figure 3, provide a kind of device of data mobile, can comprise:
Receiver module 31, for receiving the data movement instructions of input;
First operational module 32, for carrying out data movement operations according to move according to the first strategy, the first strategy comprises employing move movement directive;
Judge module 33, for judging whether the data movement operations carried out according to the first strategy runs succeeded;
Second operational module 34, for when Predicated execution is failed, carries out data movement operations according to the second strategy, and the second strategy comprises employing Linux movement directive.
In one embodiment, as shown in Figure 4, receiver module 31 can comprise:
Receive submodule 311, for receiving the destination address of the data mobile of input.
In one embodiment, as shown in Figure 5, the second operational module 34 can comprise:
Judge submodule 341, for judging whether the current address of data is positioned at identical disk partition with destination address;
Prompting submodule 342, for when the current address of decision data is positioned at identical disk partition with destination address, exports information, and information is used for pointing out described operation to perform unsuccessfully not caused by operating system failure to user;
Mover module 343, for when the current address of decision data is positioned at not identical disk partition with destination address, carries out data movement operations according to the second strategy.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (6)

1. a method for data mobile, is characterized in that, comprising:
Receive the data movement instructions of input;
Carry out data movement operations according to described move according to the first strategy, described first strategy comprises employing move movement directive;
Judge whether the described data movement operations carried out according to the first strategy runs succeeded;
When Predicated execution failure, carry out data movement operations according to the second strategy, described second strategy comprises employing Linux movement directive.
2. the method for claim 1, is characterized in that, the described data movement instructions receiving input, comprising:
Receive the destination address of the data mobile of input.
3. method as claimed in claim 2, is characterized in that, describedly carries out data movement operations according to the second strategy, comprising:
Judge whether the current address of described data is positioned at identical disk partition with described destination address;
If so, export information, described information is used for pointing out described operation to perform unsuccessfully not caused by operating system failure to user;
If not, data movement operations is carried out according to the second strategy.
4. a device for data mobile, is characterized in that, comprising:
Receiver module, for receiving the data movement instructions of input;
First operational module, for carrying out data movement operations according to described move according to the first strategy, described first strategy comprises employing move movement directive;
Judge module, for judging whether the described data movement operations carried out according to the first strategy runs succeeded;
Second operational module, for when Predicated execution is failed, carries out data movement operations according to the second strategy, and described second strategy comprises employing Linux movement directive.
5. device as claimed in claim 4, it is characterized in that, described receiver module, comprising:
Receive submodule, for receiving the destination address of the data mobile of input.
6. device as claimed in claim 5, it is characterized in that, described second operational module, comprising:
Judge submodule, for judging whether the current address of described data is positioned at identical disk partition with described destination address;
Prompting submodule, for when judging that the current address of described data is positioned at identical disk partition with described destination address, exports information, and described information is used for pointing out described operation to perform unsuccessfully not caused by operating system failure to user;
Mover module, for when judging that the current address of described data is positioned at not identical disk partition with described destination address, carries out data movement operations according to the second strategy.
CN201510410432.4A 2015-07-13 2015-07-13 A kind of method and device of data movement Expired - Fee Related CN105045653B (en)

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 true CN105045653A (en) 2015-11-11
CN105045653B 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 (4)

* Cited by examiner, † Cited by third party
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
CN103562892A (en) * 2011-06-10 2014-02-05 国际商业机器公司 Configure storage class memory command
US20140283040A1 (en) * 2013-03-14 2014-09-18 Daniel Shawcross Wilkerson Hard Object: Lightweight Hardware Enforcement of Encapsulation, Unforgeability, and Transactionality

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN103562892A (en) * 2011-06-10 2014-02-05 国际商业机器公司 Configure storage class memory command
US20140283040A1 (en) * 2013-03-14 2014-09-18 Daniel Shawcross Wilkerson Hard Object: Lightweight Hardware Enforcement of Encapsulation, Unforgeability, and Transactionality

Also Published As

Publication number Publication date
CN105045653B (en) 2018-09-25

Similar Documents

Publication Publication Date Title
US20200186593A1 (en) Application Deployment Engine
US10551996B2 (en) Method and apparatus for starting an application in a screen-locked state
CN103473142B (en) Virtual machine migration method under a kind of cloud computing operating system and device
US20140007103A1 (en) Concurrent execution of a computer software application along multiple decision paths
US10097570B2 (en) Method for detecting real-time event and server using the same
CN110650503B (en) Network access method, device, system and computer readable storage medium
CN104113576A (en) Method and device for updating client
CN105224401A (en) Scheduled task control method and device
CN104978253A (en) Target file checking method and apparatus
CN103177104A (en) Searching method and device of application program
CN103616982A (en) Touch screen device and method of creating new folders on touch screen device
CN108563697B (en) Data processing method, device and storage medium
CN105224396A (en) A kind of business data processing method and device
CN109491646B (en) Message entry method and device, electronic equipment and readable medium
CN105005726A (en) Control method and device for menu item
CN103885798A (en) Data processing method and electronic device
US11740827B2 (en) Method, electronic device, and computer program product for recovering data
CN104035766A (en) Android system trimming method based on coverage rate test
CN105511273A (en) Client operation management method and client
CN105373415A (en) Virtualization based application storage method, execution method, apparatus and system
CN104506630A (en) Method, server and system for generating authority data on basis of user roles
US20220229689A1 (en) Virtualization platform control device, virtualization platform control method, and virtualization platform control program
CN105045653A (en) Data moving method and apparatus
CN111147585A (en) Equipment upgrading method, device, storage medium and system
CN103391246A (en) Message processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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