A file migration method, device and storage device

A storage device and file migration technology, applied in the storage field, can solve problems such as fragmentation of disk storage space

Active Publication Date: 2017-06-20
HUAWEI TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, with the continuous writing of new data, new storage space is continuously allocated on the storage device, and at the same time, the storage space of old data is continuously released, and the storage space of the released old data is also discrete and cannot be written again. If new data is entered, it will cause the problem of fragmentation of the storage space on the disk.

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
  • A file migration method, device and storage device
  • A file migration method, device and storage device
  • A file migration method, device and storage device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] Embodiments of the present invention provide a file migration method, a file migration device and a storage device, capable of migrating a target file into a continuous storage space, so as to achieve the purpose of defragmenting the storage space of a disk.

[0055] In the prior art, when defragmenting the storage space in units of files, the files often need to be locked during the migration process to prevent users from modifying the files. Since the file contains several data blocks, in the prior art, the file cannot be unlocked until each data block has been migrated sequentially, which will affect the user's access to the file. However, the embodiment of the present invention can not only achieve the purpose of defragmentation, but also can not lock the file during the migration process of the file, but obtain a snapshot of the metadata of the file that has not been modified after the snapshot. The data blocks are migrated to the pre-allocated continuous storage s...

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

Embodiments of the present invention provide a file migration method, device and storage device. Wherein, the method includes: the storage device obtains a snapshot of the metadata of the target file, the snapshot includes the logical addresses of the multiple data blocks and the first writing time of the multiple data blocks; from the Among the logical addresses of multiple data blocks and the first write time of the multiple data blocks, determine the logical address of the target data block and the first write time of the target data block; according to the logic of the target data block The address obtains the second write time corresponding to the logical address of the target data block from the metadata of the target file, wherein the metadata of the target file includes the logical address of the target data block and the second write time When determining that the first writing time is the same as the second writing time, migrating the target data block to a pre-allocated continuous storage space. The target file can be migrated to the pre-allocated continuous storage space, thereby achieving the purpose of disk defragmentation.

Description

technical field [0001] Embodiments of the present invention relate to the field of storage technology, in particular to a file migration method, device and storage device. Background technique [0002] A file system is a data structure that stores and organizes user data, providing users with easy and convenient data access. For a storage device with a file system, the storage space on the disk is transparent to the user. The user does not need to care about the specific location of the data stored in the disk, and can access the data only by accessing the directory or file. [0003] Write redirection (full name: Redirection On Write, abbreviation: ROW) file system refers to a file system that uses redirection on write to write data. When new user data is written or the original user data is modified, the new data will not overwrite the original old data, but allocate new space on the storage device to write the data, and release it after the new data is successfully writte...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/06
CPCG06F12/06G06F3/061G06F3/0643G06F3/1204G06F3/1222G06F3/1236G06F3/1238G06F3/1258G06F3/1285G06F3/1292G06F16/1724G06F16/128G06F16/214G06F3/0647G06F3/067G06F3/0619G06F3/065
Inventor 夏锋
Owner HUAWEI TECH CO 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