Method and equipment for executing renaming operation by distributed file system

A distributed file and renaming technology, applied in the computer field, to achieve the effect of reducing a large number of copy operations

Active Publication Date: 2017-10-10
ALIBABA GRP HLDG LTD
View PDF7 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of this application is to provide a method and device for performing renaming operations in a distr

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and equipment for executing renaming operation by distributed file system
  • Method and equipment for executing renaming operation by distributed file system
  • Method and equipment for executing renaming operation by distributed file system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] The application will be described in further detail below in conjunction with the accompanying drawings.

[0052] figure 1 A schematic flow chart showing a renaming operation performed by a distributed file system according to one aspect of the present application is shown. In a preferred embodiment, such as in the Pangu (Pangu) file system, the renaming operation is divided into renaming files and renaming directories, wherein, Pangu belongs to the master-slave node (Master-Slave) structure, and the meta information of the data is stored in the master On the node server, the real data is stored on the slave node server. Users can use the application programming interface (API) provided by Pangu to read and write data. For a file, only one client can write data at the same time. When renaming a file and renaming a directory is performed in the system, different APIs need to be called to complete it, the renaming file application program interface (RenameFile API) and ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The application aims at providing a method and equipment for executing a renaming operation by a distributed file system. The method comprises the following steps: resolving a renaming request of a file, determining whether the renaming request is in the same host node group list, if the renaming request is not in the same main host node group list, acquiring a file lock of a source file from a source host node group list, and creating a temporary file in a target host node group list and acquiring the file lock of the temporary file; performing a hard link operation and/or data copy operation on a slave node disk for storing the corresponding real data of the source file, thereby correspondingly associating the real data to the temporary file; finally, renaming the temporary file as the target file, and deleting the source file to accomplish the file renaming operation among different host node group lists, wherein the semantic of the original file system is maintained to the greatest extent, and the upper layer user can continuously use the file system without perception.

Description

technical field [0001] The present application relates to the computer field, and in particular to a technology for renaming operations performed by a distributed file system. Background technique [0002] With the continuous popularization and in-depth application of information technology, more and more people are accustomed to using computers to transmit and store files. In order to distinguish the difference of each file and facilitate the search for files, each file has its own name set. But usually, the same file name cannot be marked on two files, or in the case of file name conflicts, you need to use the rename function. In a stand-alone system or a distributed system, renaming includes the change of the file name and the change of the file path (ie, file movement). In the distributed system, the namespace is distributed to form a federation (Federation), so as to realize the scalability of the distributed system. The Rename operation in Federation only supports R...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
CPCG06F16/182
Inventor 刘俊峰姚文辉朱家稷
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products