Linux File System 1---The introduction of VFS

Source: Internet
Author: User

1. Introduction

The series of articles on document management is mainly about the Chen Li of the Document System management Knowledge lecture by teacher June.

Linux can support different file systems, which originate from UNIX file systems and are a feature of UNIX file systems.

2. Introduction of Virtual File system

The file system supported by the diagram kernel

Cat/proc/filesystems can be used to view the current kernel running file system, file system not only as a file management mechanism, but also as a other mechanism to join the VFS, such as Cgroup, etc.

    

Figure File System directory structure

Linux files are unified, located in a directory tree, and process management is the concept of same strain.

Figure VFS File System architecture diagram

VFS provides a unified interface for user space, different file systems need to implement these interfaces, for the device files, the driver also to implement the corresponding interface, which embodies a mechanism and separation of the concept.

3.file_system_type Structural Body

Figure File_system_type Structural Body

    • The Linux kernel uses the VFS (Virtual Filesystem Switch) framework
    • Each filesystem needs to be registered in the VFS, which is populated with a struct file_system_type structure
    • This structure describes the name of the file system and a message that points to the address of the corresponding VFS super block read routine

  

The organizational structure of Figure File_system_type

    • The kernel uses the linked list to organize each registered file system, with the list header as File_systems
4. Example: printing file_system_type information

Linux File System 1---The introduction of VFS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.