Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for achieving copy-on-write file system

A file system and copy-on-write technology, applied in the direction of input/output to record carrier, etc., can solve problems such as file system inconsistency, data corruption, etc., and achieve the effect of reducing disk seek time

Active Publication Date: 2015-11-25
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] When modifying data, the ordinary Linux file system will modify the original data on the disk. If the system crashes during the modification process, such as a power failure, the data will be damaged, resulting in inconsistency of the file system.

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 device for achieving copy-on-write file system
  • Method and device for achieving copy-on-write file system
  • Method and device for achieving copy-on-write file system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0038] The embodiment of the invention discloses a method and device for implementing a copy-on-write file system, so as to ensure that the file system is always in a consistent state and reduce unnecessary disk seek time.

[0039] see figure 1 , a method for implementing a copy-on-write file system provided by an embodiment of the present invention includes:

[0040] S101. Search for the first metadata with a dirty data flag in the memory;

[0041] Preferably, t...

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 embodiment of the invention discloses a method and device for achieving a copy-on-write file system. The method includes the steps of searching an internal storage for first meta-data with dirt data identification, setting the lock identification of the first meta-data, distributing a new disk space for dirt data corresponding to the first meta-data, brushing the dirt data downwards to the new disk space, writing the first meta-data in a meta-data file adjacent to the position of the new disk space, writing second meta-data, corresponding to the dirt data, in a block map file, and brushing the dirt data downwards to the new disk space. By means of the method of not directly conducting modification on existing disk data, it is ensured that a file system is in the consistent state all the time, the meta-data are written in the meta-data file, and the unnecessary disk seeking time is shortened.

Description

technical field [0001] The invention relates to the fields of storage and file systems, and more specifically, to a method and device for realizing a copy-on-write file system. Background technique [0002] When the ordinary linux file system modifies the data, it will modify the original data on the disk. If the system crashes during the modification process, such as a power failure, the data will be damaged, resulting in the inconsistency of the file system. When the Linux file system writes data, the head will go back and forth between the inode data and data data stored in the fixed area of ​​​​the disk for multiple operations, which increases the unnecessary disk seeks for this "read-modify-write" process. time. [0003] Therefore, how to ensure that the file system is in a consistent state at all times and reduce unnecessary disk seek time is a problem that needs to be solved now. Contents of the invention [0004] The object of the present invention is to provide ...

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): G06F3/06
Inventor 苑忠科张会健李美欣
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More