CN101727503A - Method for establishing disk file system - Google Patents

Method for establishing disk file system Download PDF

Info

Publication number
CN101727503A
CN101727503A CN201010103786A CN201010103786A CN101727503A CN 101727503 A CN101727503 A CN 101727503A CN 201010103786 A CN201010103786 A CN 201010103786A CN 201010103786 A CN201010103786 A CN 201010103786A CN 101727503 A CN101727503 A CN 101727503A
Authority
CN
China
Prior art keywords
disk
file system
disk partition
partition
file
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.)
Pending
Application number
CN201010103786A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201010103786A priority Critical patent/CN101727503A/en
Publication of CN101727503A publication Critical patent/CN101727503A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for establishing a disk file system. The method comprises the following steps of: uniformly storing identifications corresponding to disk partitions needing to be managed into other disk partitions; orderly formatting the disk partitions corresponding to the stored identifications; allocating a superblock object for the disk file system in a memory; initializing device fields in the superblock object into a linked list; and after orderly saving superblock information of the uniformly managed disk partitions into the linked list, mounting the disk file system on a catalog. By using the method, when the space of a certain disk partition managed uniformly by the disk file system is not enough, a file can be saved in other uniformly managed disk partition without remodifying the catalog in which the file is saved; therefore, the method can ensure that the file is saved correctly and reduce the workload required for managing the file at the same time.

Description

A kind of method of creating disk file system
Technical field
The present invention relates to computer file system administrative skill field, particularly a kind of method of creating disk file system.
Background technology
Disk file system is very important ingredient in the (SuSE) Linux OS, create a disk file system and mainly contain two aspects: the one, disk partition is formatd, promptly in disk file system of disk partition deploy, be specially, with the metadata information of the disk subregions such as operating position of the piece number, block size and the disk partition that comprise disk partition at least of disk partition, and the name of disk file system is saved in the superblock of disk partition; The 2nd, disk file system is carried out carry, be specially, all information in the superblock of disk partition are saved in the superblock object of internal memory, simultaneously, the sign of disk partition also is saved in accordingly in the device field (DFLD) of superblock object of internal memory, further, disk file system is mounted on some catalogues.So far, promptly finished the constructive process of existing disk file system.
By above-mentioned analysis as can be seen, the only corresponding disk partition of an existing disk file system, also just make each disk file system can only manage local some disk partition, thereby when storage file, also just define file and can only be stored in some disk partition, and the space of certain disk partition of determining is also determined.Therefore, for preserving file (as journal file) that need constantly append content or the disk partition that needs to preserve new file, continuous increase along with file size or number of files, this disk partition may not have enough spaces to continue to preserve them, these file contents or new file or be dropped like this, or be copied in other the disk partition.Yet, when these file contents or new file are dropped, may lose some very important information; In the time of in being copied into other disk partition, at first, need to select to copy to which disk partition, secondly, catalogue under these file contents or the new file also changes (because catalogue difference of each disk file system carry) thereupon, thereby operation, the program of these file contents of all-access or new file all will be made amendment, to arrive this document by new directory access.In addition, each disk partition in the system, each catalogue generally all are configured to manage the file of a certain class, if the catalogue that file is preserved is changed manyly, can make that file storage is relatively more chaotic in the system, locating file inefficiency or the like, also promptly needing increases extra configuration effort, thereby has increased the workload of management document.
Summary of the invention
In view of this, the invention provides a kind of method of creating disk file system, make a disk file system can manage a plurality of disk partition, thereby when guaranteeing that file is correctly preserved, reduced the required workload of management document.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of method of creating disk file system, this method comprises:
In other disk partition, pairing disk partition is formatd to the sign of described storage successively with the pairing sign storage and uniform of the disk partition that needs unified management;
In internal memory, distribute a superblock object for disk file system, device field (DFLD) in the described superblock object is initialized as a chained list, after being saved in the superblock information of the disk partition of described unified management in the chained list successively, described disk file system is mounted on the catalogue.
As seen from the above technical solutions, the method of establishment disk file system of the present invention, carry out storage and uniform by the pairing sign of the disk partition that will need unified management, and then can carry out consolidation formization and carry to the disk partition of described storage and uniform, thereby make a disk file system can manage a plurality of disk partition, also just make in the space of certain disk partition of disk file system unified management when not enough, also file can be saved in other disk partition of unified management, and do not need to remodify the catalogue that file is preserved, thereby when can guarantee that file is correctly preserved, reduce the required workload of management document.
Description of drawings
Fig. 1 is the workflow diagram of the subregion of formatting diskette of the present invention.
Fig. 2 is the workflow diagram of carry disk file system of the present invention.
Embodiment
In order to solve the problems of the prior art, the present invention proposes a kind of implementation method of brand-new disk file system, promptly carry out storage and uniform by the pairing sign of the disk partition that will need unified management, and then can carry out consolidation formization and carry to the disk partition of described storage and uniform, thereby make a disk file system can manage a plurality of disk partition, also just make in the space of certain disk partition of disk file system unified management when not enough, also file can be saved in other disk partition of unified management, and do not need to remodify the catalogue that file is preserved, thereby when can guarantee that file is correctly preserved, reduce the required workload of management document.
Based on above-mentioned introduction, the specific implementation of scheme of the present invention comprises:
A kind of method of creating disk file system, this method comprises:
In other disk partition, pairing disk partition is formatd to the sign of described storage successively with the pairing sign storage and uniform of the disk partition that needs unified management;
In internal memory, distribute a superblock object for disk file system, device field (DFLD) in the described superblock object is initialized as a chained list, after being saved in the superblock information of the disk partition of described unified management in the chained list successively, described disk file system is mounted on the catalogue.
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
Fig. 1 is the workflow diagram of the subregion of formatting diskette of the present invention.As shown in Figure 1, this flow process may further comprise the steps:
Step 101: the sign storage and uniform of disk partition that will need unified management is in other disk partition.
Need to prove that in this step, described disk partition can also comprise the disk partition in other computing machine in the network.
Step 102: with described storage first the sign as current sign.
Step 103: pairing disk partition is formatd to current sign.
In this step, described disk partition is formatd also promptly in described disk partition deploy disk file system of the present invention, concrete formative process repeats no more here with existing the same.
Step 104: judge whether described current sign is last sign of described storage, if then finish whole workflow; Otherwise execution in step 105 is until described current last sign that is designated described storage.
Step 105: the next one of current sign is identified as after the current sign, return execution in step 103.
So far, promptly finished the whole workflow of the subregion of formatting diskette of the present invention.
After having formatd disk partition, for the disk partition after can using formization, further, also need and will carry out carry in the disk file system of the disk partition deploy after the described format, Fig. 2 has provided the workflow diagram of carry disk file system of the present invention.As shown in Figure 2, this flow process may further comprise the steps:
Step 201: in internal memory, distribute a superblock object for disk file system.
Step 202: the device field (DFLD) of superblock object is initialized as a chained list, and with storage and uniform in the step 101 first the sign as current sign.
Similarly, in this step, described disk partition also can comprise the disk partition in other computing machine in the network.
Need to prove that in this step, described chained list is the superblock information that is used for linking the disk partition of step 101 storage and uniform.Concrete how the device field (DFLD) of superblock object to be initialized as a chained list be prior art, repeats no more here.
Step 203: the superblock information of the pairing disk partition of current sign is saved in the chained list.
In this step, the superblock information of disk partition has comprised the metadata information of disk subregions such as operating position of piece number, block size and the disk partition of disk partition at least, concrete how the superblock information of disk partition to be saved in chained list be prior art, repeats no more here.
Step 204: judge whether current sign is last sign of described storage, if, execution in step 206; Otherwise, execution in step 205, until current last sign that is designated described storage, execution in step 206 again.
Step 205: the next one of current sign is identified as current sign, return execution in step 203 again.
Step 206: disk file system is mounted on the catalogue.
In this step, the same prior art of the detailed process of carry disk file system repeats no more here.
So far, promptly finished whole workflow of disk file system being carried out carry of the present invention.
After having finished the described all working flow process of Fig. 1 and Fig. 2, promptly obtained disk file system of the present invention.When using disk file system of the present invention, because disk file system of the present invention can be managed a plurality of disk partition, therefore, at first need to choose certain disk partition that this disk file system is managed in use, then, in the described disk file system of choosing, choose concrete piece number again.
Need to prove, in the present embodiment, in disk partition, choose the same prior art of detailed process of piece number, repeat no more here.
Also it should be noted that, because disk file system of the present invention is to be mounted on the same catalogue, therefore, when certain disk partition of managing in this disk file system does not have enough spaces to continue to preserve new file, new file directly can be stored in other disk partition that this disk file system manages, simultaneously, because the catalogue of all disk partition under this disk file system all is the same, just do not need to remodify catalogue yet, thereby reduced the workload of management document.
In a word, the method of establishment disk file system of the present invention, carry out storage and uniform by the pairing sign of the disk partition that will need unified management, and then can carry out consolidation formization and carry to the disk partition of described storage and uniform, thereby make a disk file system can manage a plurality of disk partition simultaneously, also just make in the space of certain disk partition of disk file system unified management when not enough, also file can be saved in other disk partition of unified management, and do not need to remodify the catalogue that file is preserved, thereby when can guarantee that file is correctly preserved, reduce the required workload of management document.
In sum, more than be preferred embodiment of the present invention only, be not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. a method of creating disk file system is characterized in that, this method comprises:
In other disk partition, pairing disk partition is formatd to the sign of described storage successively with the pairing sign storage and uniform of the disk partition that needs unified management;
In internal memory, distribute a superblock object for disk file system, device field (DFLD) in the described superblock object is initialized as a chained list, after being saved in the superblock information of the disk partition of described unified management in the chained list successively, described disk file system is mounted on the catalogue.
2. the method for claim 1 is characterized in that, described disk partition is formatd comprises: with the metadata information of disk partition, and the name of disk file system is saved in the superblock of disk partition.
3. method as claimed in claim 2 is characterized in that, the metadata information of described disk partition comprises the operating position of piece number, block size and the disk partition of disk partition at least.
4. method as claimed in claim 3 is characterized in that, described disk partition can also be the disk partition in other computing machine in the network.
CN201010103786A 2010-01-29 2010-01-29 Method for establishing disk file system Pending CN101727503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010103786A CN101727503A (en) 2010-01-29 2010-01-29 Method for establishing disk file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010103786A CN101727503A (en) 2010-01-29 2010-01-29 Method for establishing disk file system

Publications (1)

Publication Number Publication Date
CN101727503A true CN101727503A (en) 2010-06-09

Family

ID=42448389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010103786A Pending CN101727503A (en) 2010-01-29 2010-01-29 Method for establishing disk file system

Country Status (1)

Country Link
CN (1) CN101727503A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184211A (en) * 2011-05-03 2011-09-14 成都市华为赛门铁克科技有限公司 File system, and method and device for retrieving, writing, modifying or deleting file
CN103412822A (en) * 2013-07-26 2013-11-27 华为技术有限公司 Operation method of non-volatile RAM, data operation method and relevant device
CN103858163B (en) * 2011-10-14 2016-03-09 国际商业机器公司 Band driving data change detection method and file system
CN107580232A (en) * 2017-09-28 2018-01-12 郑州云海信息技术有限公司 A kind of video living transmission system and method
CN109284270A (en) * 2018-11-14 2019-01-29 郑州云海信息技术有限公司 A kind of disposition optimization method and device of distributed file system memory module
CN111506262A (en) * 2020-03-25 2020-08-07 华为技术有限公司 Storage system, file storage and reading method and terminal equipment
CN113126893A (en) * 2020-01-16 2021-07-16 深圳市万普拉斯科技有限公司 Method, device, storage medium and computer equipment for expanding system partition
CN113238712A (en) * 2021-04-23 2021-08-10 深圳市智微智能软件开发有限公司 Disk space utilization method, device, terminal and storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184211A (en) * 2011-05-03 2011-09-14 成都市华为赛门铁克科技有限公司 File system, and method and device for retrieving, writing, modifying or deleting file
CN102184211B (en) * 2011-05-03 2014-08-06 华为数字技术(成都)有限公司 File system, and method and device for retrieving, writing, modifying or deleting file
CN103858163B (en) * 2011-10-14 2016-03-09 国际商业机器公司 Band driving data change detection method and file system
US9406334B2 (en) 2011-10-14 2016-08-02 International Business Machines Corporation Method of detecting tampering of data in tape drive, and file system
US9753664B2 (en) 2011-10-14 2017-09-05 International Business Machines Corporation Method of detecting tampering of data in tape drive, and file system
CN103412822A (en) * 2013-07-26 2013-11-27 华为技术有限公司 Operation method of non-volatile RAM, data operation method and relevant device
CN107580232A (en) * 2017-09-28 2018-01-12 郑州云海信息技术有限公司 A kind of video living transmission system and method
CN109284270A (en) * 2018-11-14 2019-01-29 郑州云海信息技术有限公司 A kind of disposition optimization method and device of distributed file system memory module
CN109284270B (en) * 2018-11-14 2021-09-17 郑州云海信息技术有限公司 Deployment optimization method and device for distributed file system storage module
CN113126893A (en) * 2020-01-16 2021-07-16 深圳市万普拉斯科技有限公司 Method, device, storage medium and computer equipment for expanding system partition
WO2021143845A1 (en) * 2020-01-16 2021-07-22 深圳市万普拉斯科技有限公司 Extended system partitioning method and apparatus, storage medium, and computer device
CN113126893B (en) * 2020-01-16 2023-06-16 深圳市万普拉斯科技有限公司 Method, device, storage medium and computer equipment for expanding system partition
CN111506262A (en) * 2020-03-25 2020-08-07 华为技术有限公司 Storage system, file storage and reading method and terminal equipment
CN113238712A (en) * 2021-04-23 2021-08-10 深圳市智微智能软件开发有限公司 Disk space utilization method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN101727503A (en) Method for establishing disk file system
CN111427841B (en) Data management method, device, computer equipment and storage medium
US9727268B2 (en) Management of storage in a storage network
US10048865B2 (en) Disk partition stitching and rebalancing using a partition table
KR101994021B1 (en) File manipulation method and apparatus
CN105100146B (en) Date storage method, apparatus and system
US8682874B2 (en) Information processing system
CN105868286A (en) Parallel adding method and system for merging small files on basis of distributed file system
CN105868421A (en) Data management method and data management device
CN102843403A (en) File processing method based on distributed file system, system, and client
CN108196787B (en) Quota management method of cluster storage system and cluster storage system
US9973564B2 (en) Determining variable chunk size for transfer of a file
EP3432132B1 (en) Data storage method and device
CN104238962A (en) Method and device for writing data into cache
DE602007007820D1 (en) METHOD AND DEVICE FOR DEBATING THE STORAGE OF USER DATA IN DIGITAL CELLULAR 3G TELECOMMUNICATIONS SYSTEMS
CN104461685A (en) Virtual machine processing method and virtual computer system
CN101983376A (en) Access device, information recording device, information recording system, file management method, and program
CN102202087A (en) Method for identifying storage equipment and system thereof
CN103714013A (en) Method and device for allocating storage space of file system
CN105404691A (en) File storage method and apparatus
CN108255989A (en) Picture storage method, device, terminal device and computer storage media
CN105320676A (en) Customer data query service method and device
CN102609492A (en) Metadata management method supporting variable table modes
CN106790489B (en) Parallel data loading method and system
US10430400B1 (en) User controlled file synchronization limits

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20100609