XDBFS: Design and Implementation of the File System Based on Database Techniques

Author
LiQing
Advisor
YangGuoGui
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2006
Downloads
123
Citations
2

Request the full text

Abstract

File system is an important part of a modern operating system. It is essential for the file system to be reliable and fast. However, at present, traditional file system is facing many problems, such as exception recovery, low performance in desktop search and so on. On the other hand, databases also have similar tasks, but have better characteristics in data management. New file system based on database techniques tries to bring database techniques to the design of file system, and it has been a research focus.In this paper we make the effort to explore the philosophy of designing a file system based on database techniques. At present, there is no mature theory in this area, so many implementations are often limited to the specific specialized applications. After analyzing the design philosophy of traditional file system, we propound the design pattern and implementation strategies of the file system based on database techniques: kernel mode design pattern and user mode design pattern; Database-based and Database-centric implementation strategies. Based on the idea of macro-kernel and micro-kernel, the kernel mode implements the file system in the kernel, while the user mod implements it outside of the kernel. The database-based strategy builds a file system on top of a database, but the database-centric strategy introjects the both entirely. Together with the database tailorable techniques, we build preliminary theory architecture of the file system based database techniques.We design and implement a prototype file system named XDBFS. For data storage, XDBFS has ported the Berkeley DB into Linux kernel. For metadata storage and extensibility, XDBFS builds six Berkeley DB databases, including lookup.db, metadata.db, block.db, link.db, synlink.db and xattr.db. XDBFS supports standard file system operations, by the implementation of Linux VFS methods. Using the Berkeley DB transactions around its file operations, XDBFS has some ACID properties, which make the solution of traditional file system problems to be possible. The implementation of XDBFS proves the feasibility of our design philosophy, so it is a resultful try of database techniques based file system. XDBFS is a suitable integration of database and file system, and also it is a good transition from traditional file system to the new database techniques based file system.

Table of contents

Abstract 9-10 ABSTRACT 10-11 The first chapter 11-20 1.1 project background and purpose 11-13 1.2 related work 13-18 1.2.1 Log File System 13-14 1.2.2 Database Wrapper file systems research 14 1.2.3 file system-based database systems research 14-17 1.2.4 Fusion file system database system research 17-18 1.3 The main work 18-19 1.4 paper structure 19-20 The second chapter is based on database technology file system theory 20-38 2.1 file system design theory 20-29 2.1.1 macro kernel and microkernel 20-21 2.1.2 file system functionality and design 21-24 2.1.3 file system core elements 24-29 2.2 design patterns and implementation strategies 29-34 2.2.1 core state design pattern 30-31 2.2.2 User Mode Design Mode 31-33 2.2.3 design patterns and implementation strategies summarized 33-34 2.3 database reduction technology 34-36 2.4 summarizes key technologies 36-38 Chapter XDBFS design environment 38-49 3.1 Linux file system structure 38-41 3.1.1 Linux file system model 38-39 3.1.2 Linux Virtual File System 39-41 3.2 Berkeley DB Research 41-46 3.2.1 Berkeley DB technical characteristics 41-42 3.2.2 Berkeley DB architecture 42-44 3.2.3 Berkeley DB related concepts 44-45 3.2.4 Berkeley DB Summary 45-46 3.3 B-tree index mechanism 46-48 3.3.1 B tree basic concepts 46 3.3.2 B tree random search 46-47 3.3.3 B tree insertion, deletion 47-48 3.4 XDBFS design environment Summary 48-49 Chapter XDBFS File System Design 49-57 4.1 XDBFS architecture 49-51 4.1.1 XDBFS design ideas 49 4.1.2 XDBFS architecture 49-51 4.2 XDBFS database schema design 51-55 4.2.1 Find Database (lookup.db) 52 4.2.2 metadata database (meta.db) 52-53 4.2.3 Blocks database (block.db) 53 4.2.4 Link Database (link.db) 53-54 4.2.5 symbolic link database (symlink.db) 54 4.2.6 Extended attributes database (xattr.db) 54-55 4.3 XDBFS file system operations ACID properties 55 4.4 XBFS Design Summary 55-57 Chapter XDBFS File System 57-68 5.1 Berkeley DB to Linux kernel porting 57-58 5.1.1 for Berkeley DB cuts 57 5.1.2 Berkeley DB to Linux kernel porting 57-58 5.2 XDBFS critical data structures 58-61 5.2.1 XDBFS the Berkeley DB data structures 59-60 5.2.2 XDBFS memory data structures 60-61 5.3 XDBFS support VFS operation is achieved 61-66 5.3.1 XDBFS file system for registration and installation 61-63 5.3.2 XDBFS superblock and inode operations to achieve 63-65 5.3.3 XDBFS file operations to achieve 65-66 5.4 XDBFS user-level file system management implementation 66-67 5.5 XDBFS achieve summarize 67-68 Chapter XDBFS achieve evaluation 68-71 6.1 XDBFS performance test 68-70 6.1.1 PostMark test 68-69 6.1.2 Bonnie test 69-70 6.2 XDBFS experimental analysis 70-71 Chapter VII Conclusion 71-73 7.1 Work Summary 71 7.2 Research Prospects 71-73 Thanks 73-74 References 74-77 authors during the study period academic achievements 77

Related dissertations

  1. Terminal design of fault diagnosis system of intelligent equipment under a cloud service environment
  2. Implementation of Windows File System Virtualization Based on Sandbox Technology
  3. Design and Implementation of Cross-platform Website Anti-tamper System Based on File Filter Driver
    LinYiXin ·South China University of Technology ·2013 ·Master's thesis
  4. Research on Multi-attribute-based File Organization Mechanism
  5. The Design and Implementation of Distributed File System Based on Linux
  6. The Linux Kernel Porting, Profiling Driven Development and Cryptographic Applications Based on CK810
  7. Research on the Malicious Codes Monitoring Technology Based on the File System
    SunHaiPeng ·Northwest Normal University ·2013 ·Master's thesis
  8. Research Andapplication of FAT File System for Multimedia Storage
  9. Research on Storage System Experimental Datasets Construction Method
  10. Research on Cache Strategy for Distributed Object-Based File System
  11. The Design and Implementation of a De-duplication File System Based on Cloud Storage
  12. Design and Implementation of a PCM File System
  13. Research of Data Storage and Management on Huatu Online Library System Based on HDFS
    YangCan ·Central South University ·2013 ·Master's thesis
  14. The Design and Implementation of File System Based on PaaS Cloud Storage Service
    ChangCheng ·Hunan University ·2013 ·Master's thesis
  15. The Design and Realization of a Distribute System to Store Lots of Small Files
    LiuBoZuo ·Hunan University ·2013 ·Master's thesis
  16. The Design of the Secure-private-cloud-storage-based File System’s Data Organization Model
    YeYuPeng ·South China University of Technology ·2013 ·Master's thesis
  17. Design and implementation of one terminal based on GPS/GPRS.
  18. The Design and Application of New Packaging Printing Machine's Storage System
    JinXiangLu ·Liaoning Normal University ·2012 ·Master's thesis
  19. Design and Implementation of a New Type of Video Surveillance Data Storage System
    HuTianZuo ·Zhejiang Sci-Tech University ·2013 ·Master's thesis
  20. Design of Control Platform for Embedded Detection System Based on ARM9
    LiuYongLin ·University of North ·2012 ·Master's thesis