Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for operating Sparse-format mirror image document

A technology of mirroring files and file locations, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as time-consuming, inability to identify, and inability to edit, and achieve the effect of improving operational efficiency

Active Publication Date: 2015-09-30
ACTIONS ZHUHAI TECH CO
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Based on these differences, after the file in Ext4 format on Linux is decomposed to Windows, the symbolic link will not correspond to the original file attribute when it is made into the file attribute of Ext4 format. As a result, it cannot be mounted or the file cannot be identify
[0011] 2) The actual application scenario is to modify or replace one or several files in the image. Sometimes the file size does not change, but the above process is for the entire image file in sparse format, and one of the file entries cannot be edited separately. Inefficient and time-consuming

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 operating Sparse-format mirror image document
  • Method and device for operating Sparse-format mirror image document
  • Method and device for operating Sparse-format mirror image document

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] The method and device for operating the image file in Sparse format provided by the present invention will be described in more detail below in conjunction with the accompanying drawings and embodiments.

[0068] The applicant's research found that the Ext4 format and the Sparse format have the following similarities and connections:

[0069] Ext4 file system format such as figure 2 As shown, it can be seen that the Ext4 format uses block as the allocation unit, generally 1024, 2048, 4096 bytes, etc., and the size of the block is specified by the super block. File location and directory information management is carried out through data block bitmap (data block bitmap), inode bitmap (inode bitmap), inode table (inode table), and file data is stored in data blocks (data blocks).

[0070] like image 3 As shown, a chunk is the basic data structure of the Sparse format, and a Sparse format image file contains at least one chunk, which is numbered sequentially from 0 to ...

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 invention provides a method and a device for operating a Sparse-format mirror image document. The method includes: analyzing the Sparse-format mirror image document, and creating a chunk index table for indexing every block in the Sparse-format mirror image document; determining the position of a document in an Ext4-format file and the serial number of a block of catalogue information when the Sparse-format mirror image file is converted into the Ext4 file, determining an address of the block with the serial number according to the chunk index table, and reading the position of the file and the catalogue information; calling an Ext4 file system operation module to determine the number of the block in which the file needing to be operated is positioned according to the read position of the file and the catalogue information, determining the address of the block with the number according to the chunk index table, and operating content in the corresponding address. The method and the device for operating the Sparse-format mirror image document have the advantages that no format conversion is needed, and file operation can be achieved in a quick and lossless manner.

Description

technical field [0001] The invention relates to the technical field of computer file systems, in particular to a method and device for operating image files in Sparse format. Background technique [0002] Ext4 is the file system format of the Linux system. For a file with discontinuous storage locations, the unoccupied disk space is "empty", but for the file system of the Ext4 format, these locations are filled with "0", and in During the transmission of the file, the data "0" filled in these positions is read out and transmitted. [0003] The file system in Sparse format is a variant of the file system in Ext4 format. The disk format of the file system in Sparse format is as follows: figure 1 shown. For the situation where space is allocated for the file system but not used, the Sparse file can make more efficient use of the file system space. It uses some short metadata to describe the "empty" disk space to reduce the disk size. Only when " Only when real file data is w...

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/30G06F12/02
Inventor 蔡海群李国斌杨敏
Owner ACTIONS ZHUHAI TECH CO
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