Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

File system write state determination method and device, electronic equipment and medium

A technology for file system and determination method, applied in the direction of file system, file system function, electronic digital data processing, etc., can solve the problems of waste of time and computing resources, and achieve the effect of avoiding time and computing resources

Active Publication Date: 2020-01-03
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, in the existing storage management system, once an abnormal power failure or other abnormal event occurs on the server, all file systems will be detected or repaired indiscriminately, resulting in a waste of time and computing resources.

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
  • File system write state determination method and device, electronic equipment and medium
  • File system write state determination method and device, electronic equipment and medium
  • File system write state determination method and device, electronic equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] See figure 1 , figure 1 It is a flow chart of a method for determining a file system write status provided by an embodiment of the present application, which includes the following steps:

[0058] S101: Obtain the target time node where the abnormal event occurs;

[0059] This step aims to obtain the time node when the abnormal time occurs, and this time node is referred to as the target time node for short here and in the following text.

[0060] S102: Obtain the available storage space of the target file system before and after the target time node respectively, correspondingly obtaining the first available storage space and the second available storage space;

[0061] On the basis of S101, this step aims to obtain the available storage space of the target file system before and after the target time node, wherein the available storage space of the target file system before the target time node is called the first available storage space, corresponding to , the ava...

Embodiment 2

[0078] See figure 2 , figure 2 for figure 2 The flow chart of another method for determining the write state of a file system provided by the embodiment of the present application. This embodiment is based on the first embodiment, in order to reduce misjudgments as much as possible, so that it is accurately determined that the target file system is in the write state. On the basis of the difference in available storage space, it is also combined with the parameter of the number of inodes to verify whether it is in the writing state from the other hand, including the following steps:

[0079] S201: Calculate the difference between the second available storage space and the first available storage space to obtain the difference between the available storage space;

[0080] S202: Determine whether the difference in available storage space is greater than the first preset difference, if so, execute S207, otherwise execute S203;

[0081] On the basis of S201, this step aims t...

Embodiment 3

[0103] see below image 3 , image 3 A structural block diagram of an apparatus for determining a file system writing state provided in an embodiment of the present application, the apparatus may include:

[0104] An abnormal event occurrence node obtaining unit 100, configured to obtain a target time node at which the abnormal event occurs;

[0105] The available storage space acquiring unit 200 is configured to respectively acquire the available storage space of the target file system before and after the target time node, correspondingly obtaining the first available storage space and the second available storage space;

[0106] The storage space difference calculation unit 300 is configured to calculate the difference between the second available storage space and the first available storage space to obtain the available storage space difference;

[0107] The first write state determination and mark appending unit 400 is used to determine that the target file system is i...

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 discloses a method for determining a writing state of a file system. After a target time node when an abnormal event occurs is obtained, available storage spaces of a target file systembefore and after the target time node are obtained respectively, and whether available storage space change caused by a writing state exists or not is determined through comparison between a difference value of the two available storage spaces and a preset difference value. According to the method, the influence on the available storage space in the writing state is used as a basis for determiningwhether the storage space is in the writing state; according to the method, whether the file system is in the writing state or not when the abnormal event occurs can be judged, the file system whichis influenced by the abnormal event and needs to be repaired can be accurately positioned on the basis of the method, and therefore time and computing resources are prevented from being consumed on the file system which is not influenced by the abnormal event. The invention furthermore discloses a file system write state determination apparatus, an electronic device and a computer readable storagemedium, which have the above beneficial effects.

Description

technical field [0001] The present application relates to the technical field of data reading and writing, and in particular to a method, device, electronic equipment, and computer-readable storage medium for determining the writing state of a file system. Background technique [0002] In the existing storage management system, multiple logical volumes can be established on the storage pool, and a file system can be established on each logical volume. In other words, the storage management system includes multiple file systems. [0003] When the server serving as the hardware support of the storage management system experiences abnormal power outages or other abnormal events, it is often necessary to detect or repair the file system affected by the abnormal event, that is, it is necessary to locate the file system affected by the abnormal event in multiple file systems . It should be understood that when an abnormal event occurs, the file system in the read state will not b...

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 Applications(China)
IPC IPC(8): G06F16/17G06F16/172
CPCG06F16/17G06F16/172
Inventor 刘红泽
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products