CN103440204A - Method for updating file system and storage device - Google Patents

Method for updating file system and storage device Download PDF

Info

Publication number
CN103440204A
CN103440204A CN2013103800108A CN201310380010A CN103440204A CN 103440204 A CN103440204 A CN 103440204A CN 2013103800108 A CN2013103800108 A CN 2013103800108A CN 201310380010 A CN201310380010 A CN 201310380010A CN 103440204 A CN103440204 A CN 103440204A
Authority
CN
China
Prior art keywords
superblock
file
file system
updated
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013103800108A
Other languages
Chinese (zh)
Other versions
CN103440204B (en
Inventor
李洪武
孔晗
蒲贵友
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Haining Warp Knitting Industrial Park Development Co., Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310380010.8A priority Critical patent/CN103440204B/en
Publication of CN103440204A publication Critical patent/CN103440204A/en
Application granted granted Critical
Publication of CN103440204B publication Critical patent/CN103440204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a method for updating a file system and a storage device. The write-in efficiency of the storage device can be improved, meanwhile, the probability of data corruption caused by large-amplitude swinging of a magnetic head is reduced, and the reliability of data is improved. The method comprises the steps of receiving a file updating request sent by a client terminal, determining a physical address of the data to be updated in a magnetic disk according to a logic address, then, updating a file according to the data to be updated and the determined physical address, obtaining the transaction serial number to be updated and position information of the updated file in the file system which the file belongs to according to the updated file, and finally updating a first super block of the file system according to the transaction serial number to be updated and the position information of the updated file. The method is used for updating the file system in the storage device.

Description

A kind of method of updating file system and memory device
Technical field
The present invention relates to technical field of memory, relate in particular to a kind of method and memory device of updating file system.
Background technology
Current, superblock (super block) is the content of the beginning part in the data of disk storage, there is the file volume control information, the information that also has bundling resource table and the file bundling of disk, specifically for overall informations such as memory file system attribute and configuration information and file system real-time status information, be usually located at the fixed position of disk or subregion.In order to improve the security of superblock, usually in disk or subregion, can carry out redundancy backup to superblock, store a plurality of superblocks simultaneously.After the data in disk are upgraded, corresponding, also need the superblock to preserving file system in disk to be upgraded.When needs are upgraded superblock, the superblock of having stored is divided into groups according to the parity of sequence number, and the superblock of odd number group and even number set is carried out respectively to asynchronous refresh, thereby, in making at any time, have the superblock that is no less than to use.
But, in current storage organization, superblock often is stored in head and the afterbody of disk or subregion, when like this superblock being operated, need magnetic head significantly to move at short notice, can make the write efficiency decrease of memory device integral body, can more easily break down simultaneously, easily cause corrupted data.
Summary of the invention
Embodiments of the invention provide a kind of method and memory device of updating file system, can improve the write efficiency of memory device, reduce the probability that is caused corrupted data by the magnetic head amplitude swing simultaneously, improve the reliability of data.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provide a kind of method of updating file system, and described method comprises:
Receive the file update request that client sends, include data to be updated and data logical address hereof to be updated in described file update request;
Determine the described physical address of data in disk to be updated according to described logical address;
According to described data to be updated and definite physical address, described file is upgraded;
Obtain affairs numbering to be updated in the file system under described file and the positional information of the file after described renewal according to the file after upgrading;
The first superblock according to the positional information of the file after described affairs to be updated numbering and described renewal to described file system is upgraded, wherein, described the first superblock is for storing the current transaction information of described file system, and described the first superblock evenly is stored in described disk.
In conjunction with first aspect, in the first in possible implementation, described file system includes the first superblock and the second superblock, described the first superblock is for storing the current transaction information of described file system, the affairs numbering that comprises file system, described the second superblock, for storing the attribute information of described file system, comprises attribute and the configuration information of file system.
In conjunction with first aspect to any one in the possible implementation of the first of first aspect, at the second in possible implementation, the described positional information according to described affairs numbering to be updated and the file after described renewal is upgraded and is comprised the first superblock of described file system:
In the first superblock of described file system, determine with described renewal after nearest two the first superblocks of the physical location of file in disk;
According to described affairs numbering to be updated and the positional information of the file after described renewal, two the first superblocks determining are upgraded.
In conjunction with first aspect, at the third, in possible implementation, described method also comprises:
The quantity of determining described the first superblock is N, and wherein N is not less than 2 natural number;
Described N the first superblock evenly is stored in described disk.
Second aspect, provide a kind of memory device, and described memory device comprises:
The request receiving module, the file update request sent for receiving client, include data to be updated and data logical address hereof to be updated in described file update request;
The address determination module, for determining the physical address of described data to be updated at disk according to described logical address;
The first update module, for being upgraded described file according to described data to be updated and definite physical address;
The acquisition of information module, obtain file system under described file affairs numbering to be updated and the positional information of the file after described renewal for the file according to after upgrading;
The second update module, the first superblock for the positional information of the file according to after described affairs to be updated numbering and described renewal to described file system is upgraded, wherein, described the first superblock is for storing the current transaction information of described file system, and described the first superblock evenly is stored in disk.
In conjunction with second aspect, in the first in possible implementation, described file system includes the first superblock and the second superblock, described the first superblock is for storing the current transaction information of described file system, the affairs numbering that comprises file system, described the second superblock, for storing the attribute information of described file system, comprises attribute and the configuration information of file system.
In conjunction with second aspect, to any one in the possible implementation of the first of second aspect, at the second, in possible implementation, described the second update module comprises:
Superblock is selected module, for the first superblock in described file system determine with described renewal after nearest two the first superblocks of the physical location of file in disk;
The superblock update module, two the first superblocks determining for the positional information of the file to according to after described affairs to be updated numbering and described renewal are upgraded.
In conjunction with second aspect, at the third, in possible implementation, described equipment also comprises:
Module is set, and is N for the quantity of determining described the first superblock, and wherein N is not less than 2 natural number, and described N the first superblock evenly is stored in described disk.
Method and the memory device of a kind of updating file system that the embodiment of the present invention provides, determine the memory address of data to be updated by the file update request that receives the client transmission, and then according to the memory address obtained, the data of relevant position are upgraded, and obtain the affairs numbering of renewal, finally according to the affairs numbering of memory address to be updated and renewal, will in file system, for the first superblock of storing current transaction information, be upgraded.Thereby can improve the write efficiency of memory device, reduce the probability that is caused corrupted data by the magnetic head amplitude swing simultaneously, improve the reliability of data.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The typical application scenarios that Fig. 1 is the embodiment of the present invention;
The schematic flow sheet of the method for a kind of updating file system that Fig. 2 provides for the embodiment of the present invention;
The detailed process schematic diagram of the method for a kind of updating file system that Fig. 3 provides for the embodiment of the present invention;
Fig. 4 carries out superblock the distributed architecture figure after piecemeal for what the embodiment of the present invention provided;
The detailed process schematic diagram of the method for a kind of updating file system that Fig. 5 provides for the embodiment of the present invention;
A kind of schematic diagram of choosing the method for the second superblock that Fig. 6 provides for the embodiment of the present invention;
A kind of schematic diagram of choosing the method for the second superblock that Fig. 7 provides for the embodiment of the present invention;
A kind of schematic diagram of choosing the method for the second superblock that Fig. 8 provides for the embodiment of the present invention;
Fig. 9 provides a kind of structural representation of memory device for the embodiment of the present invention;
Figure 10 provides a kind of detailed construction schematic diagram of memory device for the embodiment of the present invention;
Figure 11 provides a kind of detailed construction schematic diagram of memory device for the embodiment of the present invention;
Figure 12 provides a kind of structural representation of memory storage for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
The typical scene of the present invention's application is at network attached storage (Network Attached Storage, NAS) in, concrete network connects as shown in Figure 1, in Fig. 1, client is the subscriber equipmenies such as desktop computer, the user sends update request by subscriber equipment to the network switch, the network switch is after receiving user's update request, this request is forwarded to NAS equipment, this NAS equipment resolves into the concrete operations to storage file/storage directory by the update request received, NAS is after executing update request, execution result is sent to client by the network switch.
Wherein, NAS is when carrying out concrete update request, can ask the data of storing in corresponding disk to be upgraded to this, after the Data Update by storage, obtain affairs numbering and the updating file address of this renewal, and then according to affairs numbering and the updating file address of this renewal obtained, the first superblock of the current transaction information of storage file is upgraded, thereby reach the purpose that file system is upgraded.
The embodiment of the present invention provides a kind of method of updating file system, and as shown in Figure 2, the method comprises:
101, receive the file update request that client sends, include data to be updated and data logical address hereof to be updated in the file update request.
102, determine data to be updated physical address in disk according to logical address.
103, according to data to be updated and definite physical address, file is upgraded.
104, according to affairs numbering to be updated in the file system under the file acquisition file after upgrading and the positional information of the file after renewal.
105, according to affairs to be updated numbering and the positional information of the file after upgrading the first superblock of file system is upgraded, wherein, the first superblock is for the current transaction information of memory file system, and the first superblock evenly is stored in described disk.
The method of a kind of updating file system that the embodiment of the present invention provides, determine the memory address of data to be updated by the file update request that receives the client transmission, and then according to the memory address obtained, the data of relevant position are upgraded, and obtain the affairs numbering of renewal, finally according to the affairs numbering of memory address to be updated and renewal, will in file system, for the first superblock of storing current transaction information, be upgraded.Thereby can improve the write efficiency of memory device, reduce the probability that is caused corrupted data by the magnetic head amplitude swing simultaneously, improve the reliability of data.
The embodiment of the present invention provides a kind of method of updating file system, and the method comprises:
201, receive the file update request that client sends, include data to be updated and data logical address hereof to be updated in described file update request.
202, determine the described physical address of data in disk to be updated according to described logical address.Wherein, the physical address of data to be updated is to determine according to the layout information of above-mentioned logical address and concrete file, the layout information of file includes the logical address of file data blocks and the mapping relations of physical address, thereby can obtain by the logical address of file data blocks the physical address of data to be updated thus.
203, according to described data to be updated and definite physical address, described file is upgraded.
204, obtain affairs numbering to be updated in the file system under described file and the positional information of the file after described renewal according to the file after upgrading.
205, according to the positional information of the file after described affairs to be updated numbering and described renewal, the first superblock to described file system is upgraded, wherein, described the first superblock is for storing the current transaction information of described file system, and described the first superblock evenly is stored in described disk.
Wherein, include superblock in file system, superblock is the content of the beginning part in the data of disk storage, the part that has the file volume control information, the information that also has bundling resource table and the file bundling of disk, in the present invention, superblock is divided into to the first superblock and the second superblock, described the first superblock is for storing the current transaction information of described file system, the message that comprises the real-time update such as transaction number that file system is up-to-date, and the first superblock, after file system modification data each time, all will be upgraded; Corresponding described the second superblock is for storing the attribute information of described file system, the attribute and the configuration information that comprise file system, the information such as size, disk block distribution and Operation Log such as disk, the overwhelming majority in the second superblock storage information is only carried out when the operation for the first time to disk, and it is much lower that the frequency of therefore upgrading is compared the first superblock.
Further, as shown in Figure 3, the method that evenly is stored in described disk about the first superblock in this method specifically comprises the steps:
206, the quantity of determining described the first superblock is N, and wherein N is not less than 2 natural number.
207, described N the first superblock evenly is stored in described disk.
Exemplary, at first according in actual conditions, the requirement of user to data reliability and memory device concrete operations performance, determine the piecemeal number of the first superblock.When the user is higher to the reliability requirement of data, it is large to adapt to the demand of high reliability that this piecemeal number can become.When improving the operating performance of memory device, can suitably reduce this piecemeal number, to improve performance, therefore, the final numerical value of this block count purpose is the numerical value considered after data reliability and memory device operating performance.And in consideration backup instances and practical operation,, to the selection problem of the first superblock, this piecemeal number is to be not less than 2 natural number.In the present embodiment, take the piecemeal number gets 5 and describes as example.
Exemplary, Fig. 4 is for carrying out superblock in the distributed architecture figure after piecemeal, the current affairs of T identification document system are partly the first superblock, because the value of N now is 5, namely now the first superblock is divided into 5 part T0~T4, and for reach by the first superblock all with the storage effect, whole zone between first P0 and tail piece P3 is divided into to i.e. 4 zones of N-1, and by T0~T4 totally five the first superblocks by the head and the tail order, be stored in successively on the node of decile, the concrete memory location of above-mentioned 5 the first superblocks is as shown in Figure 4.When the value of parameter N is other non-vanishing natural numbers, method and the above-mentioned steps of the first superblock being carried out to evenly storage are similar, repeat no more herein.
With above relative, in Fig. 4, left side is the head of disk, the afterbody that right side is disk.Wherein P is for identifying the second superblock of memory file system attribute information part.In order to prevent disk generation part sector corruption, therefore stored 4 parts of superblocks as backup at head and the afterbody of disk or subregion respectively, thereby even guaranteed that the arbitrary moment when superblock carries out the parity packet renewal all has at least two superblocks to use.4 altogether of P0~P3, P0/P1 is deployed in the head of disk or subregion, and P2/P3 is deployed in the afterbody of disk or subregion.
On this basis, as shown in Figure 5, step 205 specifically comprises:
2051, in the first superblock of described file system, determine with described renewal after nearest two the first superblocks of the physical location of file in disk.
2052, according to described affairs numbering to be updated and the positional information of the file after described renewal, two the first superblocks determining are upgraded.
When more new region comprises two or more the first superblock, from the first comprised superblock, choosing two is upgraded, why choosing two the first superblocks, is for the consideration that data are backed up equally, can improve like this security of data.
For the position relationship of new region and two the first superblocks more, below divide three kinds of situations to describe:
Detailed, as shown in Figure 6, the starting point of current more new region A position in the drawings, the more final position of new region B position in the drawings, can clearly find out from figure and include T2, two the first superblocks of T3 between A, B, now according to nearby principle, select T2, T3 to be upgraded.
As shown in Figure 7, the starting point of current more new region A position in the drawings, the final position of new region B position in the drawings more, can clearly find out the T district that is not used for recording transaction information between A, B from figure,, now according to nearby principle, nearest the first superblock T1, the T2 of chosen distance A, B upgraded as the first superblock to be updated.
As shown in Figure 8, current more new region starting point A position in the drawings, the final position of new region B position in the drawings more, can clearly find out from figure a T zone T1 is only arranged between A, B, now according to nearby principle, except the T1 comprised, also distance A, the nearest T2 of B are upgraded as superblock to be updated.
Therefore, according to the method in the present embodiment, determine the memory address of data to be updated by the file update request that receives the client transmission, and then according to the memory address obtained, the data of relevant position are upgraded, and obtain the affairs numbering of renewal, finally according to the affairs numbering of memory address to be updated and renewal, will in file system, for the first superblock of storing current transaction information, be upgraded.Thereby can improve the write efficiency of memory device, reduce the probability that is caused corrupted data by the magnetic head amplitude swing simultaneously, improve the reliability of data.。
The embodiment of the present invention provides a kind of memory device 1 of updating file system, and as shown in Figure 9, this memory device comprises:
Request receiving module 11, the file update request sent for receiving client, include data to be updated and data logical address hereof to be updated in described file update request;
Address determination module 12, for determining the physical address of described data to be updated at disk according to described logical address;
The first update module 13, for being upgraded described file according to described data to be updated and definite physical address;
Acquisition of information module 14, obtain file system under described file affairs numbering to be updated and the positional information of the file after described renewal for the file according to after upgrading;
The second update module 15, the first superblock for the positional information of the file according to after described affairs to be updated numbering and described renewal to described file system is upgraded, wherein, described the first superblock is for storing the current transaction information of described file system, and described the first superblock evenly is stored in described disk.
Wherein, described file system includes the first superblock and the second superblock, described the first superblock is for storing the current transaction information of described file system, the affairs numbering that specifically can comprise file system, described the second superblock, for storing the attribute information of described file system, specifically can comprise attribute and the configuration information of file system.
Further, as shown in figure 10, described the second update module 15 comprises:
Superblock is selected module 151, for the first superblock in described file system determine with described renewal after nearest two the first superblocks of the physical location of file in disk;
Superblock update module 152, for being upgraded two the first superblocks determining according to described affairs numbering to be updated and the positional information of the file after described renewal.
Further, as shown in figure 11, this memory device 1 also comprises:
Module 16 is set, and is N for the quantity of determining described the first superblock, and wherein N is not less than 2 natural number, and described N the first superblock evenly is stored in described disk.
The embodiment of the present invention provides a kind of memory device of updating file system, determine the memory address of data to be updated by the file update request that receives the client transmission, and then according to the memory address obtained, the data of relevant position are upgraded, and obtain the affairs numbering of renewal, finally according to the affairs numbering of memory address to be updated and renewal, the first superblock in file system is upgraded; Can improve the write efficiency of memory device, reduce the probability that is caused corrupted data by the magnetic head amplitude swing simultaneously, improve the reliability of data.
The embodiment of the present invention provides a kind of memory device 2 of updating file system.In the embodiment of the present invention, described file system includes the first superblock and the second superblock, and described the first superblock is for storing the current transaction information of described file system, and described the second superblock is for storing the attribute information of described file system.
As shown in figure 12, this device 2 comprises: bus 21; And be connected to processor 22, storer 23, transmitter 24 and the receiver 25 on bus 21, wherein:
Storer 23, for storing dependent instruction.
Processor 22, for carrying out this instruction, to realize:
Receive the file update request that client sends, include data to be updated and data logical address hereof to be updated in described file update request;
Determine the described physical address of data in disk to be updated according to described logical address;
According to described data to be updated and definite physical address, described file is upgraded;
Obtain affairs numbering to be updated in the file system under described file and the positional information of the file after described renewal according to the file after upgrading;
The first superblock according to the positional information of the file after described affairs to be updated numbering and described renewal to described file system is upgraded, wherein, described the first superblock is for storing the current transaction information of described file system, and described the first superblock evenly is stored in described disk.
Wherein, described file system includes the first superblock and the second superblock, described the first superblock is for storing the current transaction information of described file system, the affairs numbering that comprises file system, described the second superblock, for storing the attribute information of described file system, comprises attribute and the configuration information of file system.
In embodiments of the present invention, this processor 22 is carried out instructions and for the positional information according to described affairs numbering to be updated and the file after described renewal, the first superblock of described file system is upgraded and comprises:
In the first superblock of described file system, determine with described renewal after nearest two the first superblocks of the physical location of file in disk;
According to described affairs numbering to be updated and the positional information of the file after described renewal, two the first superblocks determining are upgraded.
In embodiments of the present invention, optional, this processor 22 carry out instructions also for:
The quantity of determining described the first superblock is N, and wherein N is not less than 2 natural number;
Described N the first superblock evenly is stored in described disk.
The embodiment of the present invention provides a kind of memory device of updating file system, determine the memory address of data to be updated by the file update request that receives the client transmission, and then according to the memory address obtained, the data of relevant position are upgraded, and obtain the affairs numbering of renewal, finally according to the affairs numbering of memory address to be updated and renewal, the first superblock in file system is upgraded; Can improve the write efficiency of memory device, reduce the probability that is caused corrupted data by the magnetic head amplitude swing simultaneously, improve the reliability of data.
In the several embodiment that provide in the application, should be understood that, disclosed method, device, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual the realization, other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as the separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed on a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the purpose of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit comprises, also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, the form that also can adopt hardware to add SFU software functional unit realizes.
The integrated unit that the above-mentioned form with SFU software functional unit realizes, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprise some instructions with so that computer equipment (can be personal computer, server, or the network equipment etc.) carry out the part steps of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (Read-Only Memory, abbreviation ROM), the various media that can be program code stored such as random access memory (Random Access Memory is called for short RAM), magnetic disc or CD.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (8)

1. the method for a updating file system, is characterized in that, described method comprises:
Receive the file update request that client sends, include data to be updated and data logical address hereof to be updated in described file update request;
Determine the described physical address of data in disk to be updated according to described logical address;
According to described data to be updated and definite physical address, described file is upgraded;
Obtain affairs numbering to be updated in the file system under described file and the positional information of the file after described renewal according to the file after upgrading;
The first superblock according to the positional information of the file after described affairs to be updated numbering and described renewal to described file system is upgraded, wherein, described the first superblock is for storing the current transaction information of described file system, and described the first superblock evenly is stored in described disk.
2. method according to claim 1, it is characterized in that, described file system includes the first superblock and the second superblock, described the first superblock is for storing the current transaction information of described file system, the affairs numbering that comprises file system, described the second superblock, for storing the attribute information of described file system, comprises attribute and the configuration information of file system.
3. according to the described method of claim 1 to 2 any one, it is characterized in that, the described positional information according to the file after described affairs to be updated numbering and described renewal is upgraded and is comprised the first superblock of described file system:
In the first superblock of described file system, determine with described renewal after nearest two the first superblocks of the physical location of file in disk;
According to described affairs numbering to be updated and the positional information of the file after described renewal, two the first superblocks determining are upgraded.
4. method according to claim 1, is characterized in that, described method also comprises:
The quantity of determining described the first superblock is N, and wherein N is not less than 2 natural number;
Described N the first superblock evenly is stored in described disk.
5. a memory device, is characterized in that, described memory device comprises:
The request receiving module, the file update request sent for receiving client, include data to be updated and data logical address hereof to be updated in described file update request;
The address determination module, for determining the physical address of described data to be updated at disk according to described logical address;
The first update module, for being upgraded described file according to described data to be updated and definite physical address;
The acquisition of information module, obtain file system under described file affairs numbering to be updated and the positional information of the file after described renewal for the file according to after upgrading;
The second update module, the first superblock for the positional information of the file according to after described affairs to be updated numbering and described renewal to described file system is upgraded, wherein, described the first superblock is for storing the current transaction information of described file system, and described the first superblock evenly is stored in described disk.
6. memory device according to claim 5, it is characterized in that, described file system includes the first superblock and the second superblock, described the first superblock is for storing the current transaction information of described file system, the affairs numbering that comprises file system, described the second superblock, for storing the attribute information of described file system, comprises attribute and the configuration information of file system.
7. according to the described method of claim 5 to 6 any one, it is characterized in that, described the second update module comprises:
Superblock is selected module, for the first superblock in described file system determine with described renewal after nearest two the first superblocks of the physical location of file in disk;
The superblock update module, for being upgraded two the first superblocks determining according to described affairs numbering to be updated and the positional information of the file after described renewal.
8. equipment according to claim 5, is characterized in that, described equipment also comprises:
Module is set, and is N for the quantity of determining described the first superblock, and wherein N is not less than 2 natural number, and described N the first superblock evenly is stored in described disk.
CN201310380010.8A 2013-08-28 2013-08-28 A kind of method of updating file system and memory device Active CN103440204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310380010.8A CN103440204B (en) 2013-08-28 2013-08-28 A kind of method of updating file system and memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310380010.8A CN103440204B (en) 2013-08-28 2013-08-28 A kind of method of updating file system and memory device

Publications (2)

Publication Number Publication Date
CN103440204A true CN103440204A (en) 2013-12-11
CN103440204B CN103440204B (en) 2016-01-27

Family

ID=49693895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310380010.8A Active CN103440204B (en) 2013-08-28 2013-08-28 A kind of method of updating file system and memory device

Country Status (1)

Country Link
CN (1) CN103440204B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095026A (en) * 2015-08-31 2015-11-25 小米科技有限责任公司 Superblock repair method and apparatus for EXT file system and intelligent device
WO2016206070A1 (en) * 2015-06-26 2016-12-29 华为技术有限公司 File updating method and storage device
CN110333883A (en) * 2019-05-31 2019-10-15 厦门网宿有限公司 A kind of method and device updating perdurable data
JP7316204B2 (en) 2019-12-16 2023-07-27 株式会社ソニー・インタラクティブエンタテインメント Information processing device and file access method
CN116909488A (en) * 2023-09-11 2023-10-20 苏州浪潮智能科技有限公司 Method, system, medium, equipment and disk array card for accessing disk array

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1661568A (en) * 2004-02-24 2005-08-31 中国科学院声学研究所 File system in device of recording and playing back sounds and images under embedded type environment
CN101038562A (en) * 2006-03-15 2007-09-19 联想(北京)有限公司 Memory device key data backup and recovering system and method thereof
JP2009048749A (en) * 2007-08-22 2009-03-05 Funai Electric Co Ltd File system management method, file system management device, and recording medium with file system management program recorded thereon
US7890469B1 (en) * 2002-12-30 2011-02-15 Symantec Operating Corporation File change log
CN103049539A (en) * 2012-12-25 2013-04-17 华为技术有限公司 Method and device for storing file data in file system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7890469B1 (en) * 2002-12-30 2011-02-15 Symantec Operating Corporation File change log
CN1661568A (en) * 2004-02-24 2005-08-31 中国科学院声学研究所 File system in device of recording and playing back sounds and images under embedded type environment
CN101038562A (en) * 2006-03-15 2007-09-19 联想(北京)有限公司 Memory device key data backup and recovering system and method thereof
JP2009048749A (en) * 2007-08-22 2009-03-05 Funai Electric Co Ltd File system management method, file system management device, and recording medium with file system management program recorded thereon
CN103049539A (en) * 2012-12-25 2013-04-17 华为技术有限公司 Method and device for storing file data in file system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016206070A1 (en) * 2015-06-26 2016-12-29 华为技术有限公司 File updating method and storage device
CN107430546A (en) * 2015-06-26 2017-12-01 华为技术有限公司 A kind of file updating method and storage device
CN107430546B (en) * 2015-06-26 2020-04-21 华为技术有限公司 File updating method and storage device
CN105095026A (en) * 2015-08-31 2015-11-25 小米科技有限责任公司 Superblock repair method and apparatus for EXT file system and intelligent device
CN110333883A (en) * 2019-05-31 2019-10-15 厦门网宿有限公司 A kind of method and device updating perdurable data
JP7316204B2 (en) 2019-12-16 2023-07-27 株式会社ソニー・インタラクティブエンタテインメント Information processing device and file access method
US11836367B2 (en) 2019-12-16 2023-12-05 Sony Interactive Entertainment Inc. Information processing device and file access method
CN116909488A (en) * 2023-09-11 2023-10-20 苏州浪潮智能科技有限公司 Method, system, medium, equipment and disk array card for accessing disk array
CN116909488B (en) * 2023-09-11 2024-01-26 苏州浪潮智能科技有限公司 Method, system, medium, equipment and disk array card for accessing disk array

Also Published As

Publication number Publication date
CN103440204B (en) 2016-01-27

Similar Documents

Publication Publication Date Title
US10795788B2 (en) Remote data replication method and system
CN107844268B (en) Data distribution method, data storage method, related device and system
CN103019888B (en) Backup method and device
CN103765373B (en) Date storage method, data storage device and memory device
CN103534688B (en) Data reconstruction method, memory device and storage system
CN109582213B (en) Data reconstruction method and device and data storage system
EP3404527B1 (en) Data updating technique
CN103649901A (en) Data transmission method, data receiving method and sotring equipment
CN103440204B (en) A kind of method of updating file system and memory device
CN104461390A (en) Method and device for writing data into imbricate magnetic recording SMR hard disk
CN103942112A (en) Magnetic disk fault-tolerance method, device and system
CN104750565A (en) NAND bad block processing method and NAND flash memory device
CN101482838A (en) Data write-in method and apparatus based on copy-on-write
CN105630632A (en) Virtual machine recovery method and virtual machine management device
CN105468302A (en) Data processing method, apparatus and system
CN103034566A (en) Method and device for restoring virtual machine
CN110147203B (en) File management method and device, electronic equipment and storage medium
US10572335B2 (en) Metadata recovery method and apparatus
CN103558998A (en) Data processing method and device
CN103810060A (en) Data backup method and system thereof based on distributed database
CN102902561A (en) Data storage method and data storage system
CN104424052A (en) Automatic redundant distributed storage system and method
CN103530206B (en) A kind of method and apparatus of date restoring
CN102629223B (en) Method and device for data recovery
CN104268097A (en) Metadata processing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191224

Address after: 314413 No.2, Fengshou Avenue, Haining Economic and knitting industrial park, Jiaxing City, Zhejiang Province

Patentee after: Zhejiang Haining Warp Knitting Industrial Park Development Co., Ltd

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.